aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/os_unix.c2
-rw-r--r--src/os_win.c2
2 files changed, 2 insertions, 2 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;
diff --git a/src/os_win.c b/src/os_win.c
index a978613e2..74aede570 100644
--- a/src/os_win.c
+++ b/src/os_win.c
@@ -4116,7 +4116,7 @@ static int winOpen(
pFile->pMapRegion = 0;
pFile->mmapSize = 0;
pFile->mmapOrigsize = 0;
- pFile->mmapLimit = SQLITE_DEFAULT_MMAP_LIMIT;
+ pFile->mmapLimit = sqlite3GlobalConfig.mxMmap;
OpenCounter(+1);
return rc;