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

Add the SQLITE_FCNTL_CKPT_DONE file-control for the use of custom VFSs.

FossilOrigin-Name: 3cc39e5069c8a6a32ecc49c571593615c0f347cadcd3e0325b7f9a11ddc1f546
This commit is contained in:
dan
2020-01-16 16:32:57 +00:00
parent 39df24a3f0
commit 1d7d8c8f74
4 changed files with 21 additions and 9 deletions

View File

@@ -1913,6 +1913,10 @@ static int walCheckpoint(
rc = sqlite3OsSync(pWal->pDbFd, CKPT_SYNC_FLAGS(sync_flags));
}
}
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;
}