*
* There is a vanishingly small chance that a change will
* not be detected. The chance of an undetected change is so
* small that it can be neglected.
*/
ISqlJetMemoryPointer dbFileVers = SqlJetUtility.allocatePtr(this.dbFileVers.remaining());
getPageCount();
if (null != errCode) {
throw new SqlJetException(errCode);
}
assert (dbSizeValid);
if (dbSize > 0) {
PAGERTRACE("CKVERS %s %d\n", PAGERID(), dbFileVers.remaining());
fd.read(dbFileVers, dbFileVers.remaining(), 24);
} else {
SqlJetUtility.memset(dbFileVers, (byte) 0, dbFileVers.remaining());
}
if (SqlJetUtility.memcmp(this.dbFileVers, dbFileVers, dbFileVers.remaining()) != 0) {
reset();
}
}
assert (SqlJetPagerLockingMode.EXCLUSIVE == lockingMode || SqlJetPagerState.SHARED == state);