aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2010-08-16 14:17:59 +0000
committerdrh <drh@noemail.net>2010-08-16 14:17:59 +0000
commit7e9e70b17039c89133bcc707bddc5c0ac41b9523 (patch)
tree35a1b23c89a27b2c98b21a29cbcb894eadca915c /src
parent9b78f7918369b9439bd2c3972e93fe7530ee82fb (diff)
downloadsqlite-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wal.c b/src/wal.c
index 19fc53cbc..07c1e2d2e 100644
--- a/src/wal.c
+++ b/src/wal.c
@@ -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;