diff options
author | drh <drh@noemail.net> | 2011-08-23 12:50:09 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-08-23 12:50:09 +0000 |
commit | 2dd9b60c3589a86355d2d414e2a6bee6312ce5fb (patch) | |
tree | 9b33160b8fd8f3ee252e8c6f4195cdf12e0f8263 /src/os_unix.c | |
parent | 06199d84e850c13851c3bc7de9b0847e871c9e22 (diff) | |
parent | da04ea4f88214821c197a17b800d1f29e49843d5 (diff) | |
download | sqlite-2dd9b60c3589a86355d2d414e2a6bee6312ce5fb.tar.gz sqlite-2dd9b60c3589a86355d2d414e2a6bee6312ce5fb.zip |
Merge the PAGECACHE_BLOCKALLOC changes into trunk.
FossilOrigin-Name: 768c1846d48a555054f07edeabdae8817a2c0a8e
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 83bf7b142..2f068dc58 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3510,7 +3510,11 @@ static int unixFileControl(sqlite3_file *id, int op, void *pArg){ return SQLITE_OK; } case SQLITE_FCNTL_SIZE_HINT: { - return fcntlSizeHint(pFile, *(i64 *)pArg); + int rc; + SimulateIOErrorBenign(1); + rc = fcntlSizeHint(pFile, *(i64 *)pArg); + SimulateIOErrorBenign(0); + return rc; } case SQLITE_FCNTL_PERSIST_WAL: { int bPersist = *(int*)pArg; |