Skip to content

Commit 8a30810

Browse files
committed
bundled changes with new flag
1 parent 856fb21 commit 8a30810

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

libsql-ffi/bundled/src/sqlite3.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67677,10 +67677,18 @@ static int walCheckpoint(
6767767677

6767867678
/* If work was actually accomplished... */
6767967679
if( rc==SQLITE_OK ){
67680+
#ifdef LIBSQL_CHECKPOINT_CALLBACK_ON_ANY_FRAME_WRITTEN
67681+
if (xCb) {
67682+
rc = (xCb)(pCbData, mxSafeFrame, NULL, 0, 0, 0);
67683+
}
67684+
#endif
67685+
6768067686
if( mxSafeFrame==walIndexHdr(pWal)->mxFrame ){
67687+
#ifndef LIBSQL_CHECKPOINT_CALLBACK_ON_ANY_FRAME_WRITTEN
6768167688
if (xCb) {
6768267689
rc = (xCb)(pCbData, mxSafeFrame, NULL, 0, 0, 0);
6768367690
}
67691+
#endif
6768467692
if( rc==SQLITE_OK ){
6768567693
i64 szDb = pWal->hdr.nPage*(i64)szPage;
6768667694
testcase( IS_BIG_INT(szDb) );

0 commit comments

Comments
 (0)