1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Improved testability.

FossilOrigin-Name: e83d3a2a4e06665e8a056f63063bd6df03f063b9
This commit is contained in:
drh
2016-01-11 00:52:32 +00:00
parent b7c2f86b85
commit 8997087a00
3 changed files with 9 additions and 9 deletions

View File

@@ -3056,8 +3056,8 @@ int sqlite3WalFrames(
** checksums must be recomputed when the transaction is committed. */
if( iFirst && (p->pDirty || isCommit==0) ){
u32 iWrite = 0;
rc = sqlite3WalFindFrame(pWal, p->pgno, &iWrite);
if( rc ) return rc;
VVA_ONLY(rc =) sqlite3WalFindFrame(pWal, p->pgno, &iWrite);
assert( rc==SQLITE_OK || iWrite==0 );
if( iWrite>=iFirst ){
i64 iOff = walFrameOffset(iWrite, szPage) + WAL_FRAME_HDRSIZE;
if( pWal->iReCksum==0 || iWrite<pWal->iReCksum ){