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

Fix a failing assert() in wal.c.

FossilOrigin-Name: 8745530b9a877db77fe2ca3ea9c6bc99ce033055
This commit is contained in:
dan
2012-10-15 11:28:24 +00:00
parent 4e40ab5c85
commit 7eb0575287
4 changed files with 100 additions and 9 deletions

View File

@ -2518,7 +2518,7 @@ int sqlite3WalUndo(Wal *pWal, int (*xUndo)(void *, Pgno), void *pUndoCtx){
assert( walFramePgno(pWal, iFrame)!=1 );
rc = xUndo(pUndoCtx, walFramePgno(pWal, iFrame));
}
walCleanupHash(pWal);
if( iMax!=pWal->hdr.mxFrame ) walCleanupHash(pWal);
}
assert( rc==SQLITE_OK );
return rc;