1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Fix minor problems with the output of "PRAGMA wal_checkpoint". In both code and tests.

FossilOrigin-Name: aef61036b31963e4c3ff4e8acf8c1734dc9394af
This commit is contained in:
dan
2011-02-02 19:17:39 +00:00
parent 20d5f354e9
commit d42892ebaf
5 changed files with 16 additions and 17 deletions

View File

@@ -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