diff options
author | dan <dan@noemail.net> | 2011-02-02 19:17:39 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2011-02-02 19:17:39 +0000 |
commit | d42892ebaf0060bc9c8651cd6b9cd9f86f641bd6 (patch) | |
tree | 17122ebc3dc480b0d1587f0ebf26fc9ad773cf15 /src/wal.c | |
parent | 20d5f354e99304c9a5cd4777b0289c83c9234dd6 (diff) | |
download | sqlite-d42892ebaf0060bc9c8651cd6b9cd9f86f641bd6.tar.gz sqlite-d42892ebaf0060bc9c8651cd6b9cd9f86f641bd6.zip |
Fix minor problems with the output of "PRAGMA wal_checkpoint". In both code and tests.
FossilOrigin-Name: aef61036b31963e4c3ff4e8acf8c1734dc9394af
Diffstat (limited to 'src/wal.c')
-rw-r--r-- | src/wal.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1641,6 +1641,7 @@ static int walCheckpoint( testcase( szPage<=32768 ); testcase( szPage>=65536 ); pInfo = walCkptInfo(pWal); + if( pnCkpt ) *pnCkpt = pInfo->nBackfill; if( pInfo->nBackfill>=pWal->hdr.mxFrame ) return SQLITE_OK; /* Allocate the iterator */ @@ -1650,9 +1651,7 @@ static int walCheckpoint( } assert( pIter ); - pInfo = walCkptInfo(pWal); mxPage = pWal->hdr.nPage; - if( pnCkpt ) *pnCkpt = pInfo->nBackfill; if( eMode!=SQLITE_CHECKPOINT_PASSIVE ) xBusy = xBusyCall; /* Compute in mxSafeFrame the index of the last frame of the WAL that is |