aboutsummaryrefslogtreecommitdiff
path: root/src/wal.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2020-01-16 16:32:57 +0000
committerdan <dan@noemail.net>2020-01-16 16:32:57 +0000
commit1d7d8c8f74b44fb54fb15539a4191ea68110f471 (patch)
treec8f1a2efbc55886a6ab5a66ea569677aa150d9d4 /src/wal.c
parent39df24a3f02495e5ef6bb5ea8ce029a2c1e377e6 (diff)
downloadsqlite-1d7d8c8f74b44fb54fb15539a4191ea68110f471.tar.gz
sqlite-1d7d8c8f74b44fb54fb15539a4191ea68110f471.zip
Add the SQLITE_FCNTL_CKPT_DONE file-control for the use of custom VFSs.
FossilOrigin-Name: 3cc39e5069c8a6a32ecc49c571593615c0f347cadcd3e0325b7f9a11ddc1f546
Diffstat (limited to 'src/wal.c')
-rw-r--r--src/wal.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wal.c b/src/wal.c
index 3d4a541d5..9873f8bf0 100644
--- a/src/wal.c
+++ b/src/wal.c
@@ -1914,6 +1914,10 @@ static int walCheckpoint(
}
}
if( rc==SQLITE_OK ){
+ rc = sqlite3OsFileControl(pWal->pDbFd, SQLITE_FCNTL_CKPT_DONE, 0);
+ if( rc==SQLITE_NOTFOUND ) rc = SQLITE_OK;
+ }
+ if( rc==SQLITE_OK ){
pInfo->nBackfill = mxSafeFrame;
}
}