diff options
author | dan <dan@noemail.net> | 2013-03-14 18:34:37 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2013-03-14 18:34:37 +0000 |
commit | b2d3de3bf47b7eaf5bb6bf68de5946895bd943af (patch) | |
tree | 73a9c5cd3824fe04ad469366bbefc2406686e77b /src/os_unix.c | |
parent | 27e6df4e41f832921c92028e88e58f3c287bfd25 (diff) | |
download | sqlite-b2d3de3bf47b7eaf5bb6bf68de5946895bd943af.tar.gz sqlite-b2d3de3bf47b7eaf5bb6bf68de5946895bd943af.zip |
Use mmap() to read from the database file in rollback mode. This branch is unix only for now.
FossilOrigin-Name: 6f21d9cbf5d457e63a7282015a89ae785526cf6d
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 8f094bdc1..89326783d 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3623,6 +3623,10 @@ static int unixFileControl(sqlite3_file *id, int op, void *pArg){ } return SQLITE_OK; } + case SQLITE_FCNTL_GETFD: { + *(int*)pArg = pFile->h; + return SQLITE_OK; + } #ifdef SQLITE_DEBUG /* The pager calls this method to signal that it has done ** a rollback and that the database is therefore unchanged and |