aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-01-26 19:46:22 +0000
committerdrh <drh@noemail.net>2011-01-26 19:46:22 +0000
commit0b52b7d0cd6cca25a4fc1838a3de6e6584c33aaf (patch)
tree59e73b79ce0438638e8b90bbd446e80f0745fcf4 /src/os_unix.c
parentb69577d3b8fbf944ba032f39b4b6d5eb3ff99c85 (diff)
downloadsqlite-0b52b7d0cd6cca25a4fc1838a3de6e6584c33aaf.tar.gz
sqlite-0b52b7d0cd6cca25a4fc1838a3de6e6584c33aaf.zip
Update all built-in VFSes to return SQLITE_OK for the
SQLITE_FCNTL_SYNC_OMITTED file-control operation. Also change the xFileControl methods to return SQLITE_NOTFOUND for unrecognized operation codes. FossilOrigin-Name: 6f2c72a0f6579db3f40c079436ca40e3e52bd6d9
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index edc716c98..fa200ae80 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -3135,8 +3135,11 @@ static int unixFileControl(sqlite3_file *id, int op, void *pArg){
return proxyFileControl(id,op,pArg);
}
#endif /* SQLITE_ENABLE_LOCKING_STYLE && defined(__APPLE__) */
+ case SQLITE_FCNTL_SYNC_OMITTED: {
+ return SQLITE_OK; /* A no-op */
+ }
}
- return SQLITE_ERROR;
+ return SQLITE_NOTFOUND;
}
/*