aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <dan@noemail.net>2010-08-09 07:07:37 +0000
committerdan <dan@noemail.net>2010-08-09 07:07:37 +0000
commit7a76197f40df894de9d0ff64324013b22233d6ee (patch)
tree5d9039fd9fba20106e1e1ce3785517f4b0ed2cdf /src
parent73d66fdb223a696b65c0a6c3ff12641fde1462af (diff)
downloadsqlite-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wal.c b/src/wal.c
index 57d8e462d..792a65662 100644
--- a/src/wal.c
+++ b/src/wal.c
@@ -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. */