1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Reinstate an assert() by adding an "|| CORRUPT_DB" term.

FossilOrigin-Name: 95ce20348d9b868a0407adccdb222a0e4c762945
This commit is contained in:
drh
2014-12-29 11:50:39 +00:00
parent 277b4e446c
commit 622a53d54a
3 changed files with 8 additions and 8 deletions

View File

@@ -2412,7 +2412,7 @@ int sqlite3WalFindFrame(
for(iKey=walHash(pgno); aHash[iKey]; iKey=walNextHash(iKey)){
u32 iFrame = aHash[iKey] + iZero;
if( iFrame<=iLast && aPgno[aHash[iKey]]==pgno ){
/* assert( iFrame>iRead ); -- not true if there is corruption */
assert( iFrame>iRead || CORRUPT_DB );
iRead = iFrame;
}
if( (nCollide--)==0 ){