1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Fix a cut-and-paste bug causing the library to fail to report database corruption in a few cases.

FossilOrigin-Name: f921df59560d536f5b80eef8c995cbe3ff591bae
This commit is contained in:
dan
2013-02-23 19:11:47 +00:00
parent b88e24fd59
commit 22d2730047
3 changed files with 7 additions and 8 deletions

View File

@@ -3041,7 +3041,6 @@ static Pgno finalDbSize(BtShared *pBt, Pgno nOrig, Pgno nFree){
while( PTRMAP_ISPAGE(pBt, nFin) || nFin==PENDING_BYTE_PAGE(pBt) ){
nFin--;
}
if( nFin>nOrig ) return SQLITE_CORRUPT_BKPT;
return nFin;
}