diff options
author | drh <drh@noemail.net> | 2010-08-16 14:17:59 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2010-08-16 14:17:59 +0000 |
commit | 7e9e70b17039c89133bcc707bddc5c0ac41b9523 (patch) | |
tree | 35a1b23c89a27b2c98b21a29cbcb894eadca915c /src | |
parent | 9b78f7918369b9439bd2c3972e93fe7530ee82fb (diff) | |
download | sqlite-7e9e70b17039c89133bcc707bddc5c0ac41b9523.tar.gz sqlite-7e9e70b17039c89133bcc707bddc5c0ac41b9523.zip |
Add ALWAYS() macros in wal.c to cover branches that are no longer reachable
following the pager refactoring.
FossilOrigin-Name: 24f24c927c77bb3bb4d26a23dd5d94f964db8033
Diffstat (limited to 'src')
-rw-r--r-- | src/wal.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2188,7 +2188,7 @@ int sqlite3WalRead( ** Return the size of the database in pages (or zero, if unknown). */ Pgno sqlite3WalDbsize(Wal *pWal){ - if( pWal && pWal->readLock>=0 ){ + if( pWal && ALWAYS(pWal->readLock>=0) ){ return pWal->hdr.nPage; } return 0; @@ -2267,7 +2267,7 @@ int sqlite3WalEndWriteTransaction(Wal *pWal){ */ int sqlite3WalUndo(Wal *pWal, int (*xUndo)(void *, Pgno), void *pUndoCtx){ int rc = SQLITE_OK; - if( pWal->writeLock ){ + if( ALWAYS(pWal->writeLock) ){ Pgno iMax = pWal->hdr.mxFrame; Pgno iFrame; |