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

In WAL mode, ignore any error returned by an xFileControl(FCNTL_SIZE_HINT) call. This matches the behaviour in rollback mode.

FossilOrigin-Name: 158a309737bd4cdc033cd504a6d0cc43c15b6e17
This commit is contained in:
dan
2010-08-09 07:07:37 +00:00
parent 73d66fdb22
commit 7a76197f40
3 changed files with 8 additions and 8 deletions

View File

@@ -1582,7 +1582,7 @@ static int walCheckpoint(
nReq = ((i64)mxPage * szPage);
rc = sqlite3OsFileSize(pWal->pDbFd, &nSize);
if( rc==SQLITE_OK && nSize<nReq ){
rc = sqlite3OsFileControl(pWal->pDbFd, SQLITE_FCNTL_SIZE_HINT, &nReq);
sqlite3OsFileControl(pWal->pDbFd, SQLITE_FCNTL_SIZE_HINT, &nReq);
}
/* Iterate through the contents of the WAL, copying data to the db file. */