aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-04-03 10:50:02 +0000
committerdrh <drh@noemail.net>2013-04-03 10:50:02 +0000
commit2b8246e3e23cb98b6d7339de019d446aa3bc3bb8 (patch)
tree598b47f2d824fdaf8ba75a5170335c60024e54d7 /src/os_unix.c
parent7e36962e6c152768483b9282149ff975359d7ed4 (diff)
downloadsqlite-2b8246e3e23cb98b6d7339de019d446aa3bc3bb8.tar.gz
sqlite-2b8246e3e23cb98b6d7339de019d446aa3bc3bb8.zip
Initialize the mmap_limit of temporary files to the configured mmap_limit.
FossilOrigin-Name: 24bab7596bb7385981a5d331df5eeb05353547f7
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 6ca99fa53..39a31cb18 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -5060,7 +5060,7 @@ static int fillInUnixFile(
pNew->pVfs = pVfs;
pNew->zPath = zFilename;
pNew->ctrlFlags = (u8)ctrlFlags;
- pNew->mmapLimit = SQLITE_DEFAULT_MMAP_LIMIT;
+ pNew->mmapLimit = sqlite3GlobalConfig.mxMmap;
if( sqlite3_uri_boolean(((ctrlFlags & UNIXFILE_URI) ? zFilename : 0),
"psow", SQLITE_POWERSAFE_OVERWRITE) ){
pNew->ctrlFlags |= UNIXFILE_PSOW;