aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2013-03-14 18:34:37 +0000
committerdan <dan@noemail.net>2013-03-14 18:34:37 +0000
commitb2d3de3bf47b7eaf5bb6bf68de5946895bd943af (patch)
tree73a9c5cd3824fe04ad469366bbefc2406686e77b /src/os_unix.c
parent27e6df4e41f832921c92028e88e58f3c287bfd25 (diff)
downloadsqlite-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.c4
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