aboutsummaryrefslogtreecommitdiff
path: root/src/wal.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-11-18 02:44:32 +0000
committerdrh <drh@noemail.net>2014-11-18 02:44:32 +0000
commit4429c20b866e038b155d17a347686abc6102d455 (patch)
tree920da9a6fd67440c9546eefe345e059f92a1a76a /src/wal.c
parentc5352b996a590c7a9ab8233545c3cb40d3ce125c (diff)
downloadsqlite-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wal.c b/src/wal.c
index 24540a2cd..d134a8b52 100644
--- a/src/wal.c
+++ b/src/wal.c
@@ -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