mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Fix a problem with the output of "PRAGMA wal_checkpoint" introduced long ago by [63483e22c775183e].
FossilOrigin-Name: c5f7bba8683a9aa503750abb7fd937566983dc1ca08361eca8b9b185294b909a
This commit is contained in:
@@ -5175,8 +5175,6 @@ int sqlite3WalCheckpoint(
|
||||
|
||||
/* Copy data from the log to the database file. */
|
||||
if( rc==SQLITE_OK ){
|
||||
int iCkpt = walidxGetFile(&pWal->hdr);
|
||||
|
||||
if( (walPagesize(pWal)!=nBuf)
|
||||
&& ((pWal->hdr.mxFrame2 & 0x7FFFFFFF) || pWal->hdr.mxFrame)
|
||||
){
|
||||
@@ -5195,7 +5193,7 @@ int sqlite3WalCheckpoint(
|
||||
if( pnCkpt ){
|
||||
if( isWalMode2(pWal) ){
|
||||
if( (int)(walCkptInfo(pWal)->nBackfill) ){
|
||||
*pnCkpt = walidxGetMxFrame(&pWal->hdr, iCkpt);
|
||||
*pnCkpt = walidxGetMxFrame(&pWal->hdr,!walidxGetFile(&pWal->hdr));
|
||||
}else{
|
||||
*pnCkpt = 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user