diff options
author | dan <dan@noemail.net> | 2010-08-09 07:07:37 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2010-08-09 07:07:37 +0000 |
commit | 7a76197f40df894de9d0ff64324013b22233d6ee (patch) | |
tree | 5d9039fd9fba20106e1e1ce3785517f4b0ed2cdf /src | |
parent | 73d66fdb223a696b65c0a6c3ff12641fde1462af (diff) | |
download | sqlite-7a76197f40df894de9d0ff64324013b22233d6ee.tar.gz sqlite-7a76197f40df894de9d0ff64324013b22233d6ee.zip |
In WAL mode, ignore any error returned by an xFileControl(FCNTL_SIZE_HINT) call. This matches the behaviour in rollback mode.
FossilOrigin-Name: 158a309737bd4cdc033cd504a6d0cc43c15b6e17
Diffstat (limited to 'src')
-rw-r--r-- | src/wal.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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. */ |