diff options
author | drh <drh@noemail.net> | 2014-11-18 02:44:32 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-11-18 02:44:32 +0000 |
commit | 4429c20b866e038b155d17a347686abc6102d455 (patch) | |
tree | 920da9a6fd67440c9546eefe345e059f92a1a76a /src/wal.c | |
parent | c5352b996a590c7a9ab8233545c3cb40d3ce125c (diff) | |
download | sqlite-4429c20b866e038b155d17a347686abc6102d455.tar.gz sqlite-4429c20b866e038b155d17a347686abc6102d455.zip |
Add an ALWAYS() to an always-true conditional in the WAL rollback logic.
FossilOrigin-Name: c5eae8a60d474131fbfa4d0c2b459005267e8be4
Diffstat (limited to 'src/wal.c')
-rw-r--r-- | src/wal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2506,7 +2506,7 @@ int sqlite3WalUndo(Wal *pWal, int (*xUndo)(void *, Pgno), void *pUndoCtx){ memcpy(&pWal->hdr, (void *)walIndexHdr(pWal), sizeof(WalIndexHdr)); for(iFrame=pWal->hdr.mxFrame+1; - rc==SQLITE_OK && iFrame<=iMax; + ALWAYS(rc==SQLITE_OK) && iFrame<=iMax; iFrame++ ){ /* This call cannot fail. Unless the page for which the page number |