* @param b
* @throws SqlJetException
*/
private void incrChangeCounter() throws SqlJetException {
ISqlJetPage page;
int change_counter;
if (!changeCountDone && dbSize > 0) {
/* Open page 1 of the file for writing. */
page = getPage(1);
try {
page.write();
} catch (SqlJetException e) {
page.unref();
throw e;
}
/* Increment the value just read and write it back to byte 24. */
change_counter = SqlJetUtility.get4byte(dbFileVers);
change_counter++;
put32bits(page.getData(), 24, change_counter);
/* Release the page reference. */
page.unref();
changeCountDone = true;
}
}