aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2013-05-17 12:10:52 +0000
committerdan <dan@noemail.net>2013-05-17 12:10:52 +0000
commitede01a97d392534127cd166c9a29cc14c013c95a (patch)
tree25846e3ba33d0187577d7565db228807083dfa56 /src/os_unix.c
parent4c5aeecc907f4cb36247322fd181eec9d578e9db (diff)
downloadsqlite-ede01a97d392534127cd166c9a29cc14c013c95a.tar.gz
sqlite-ede01a97d392534127cd166c9a29cc14c013c95a.zip
In os_unix.c and os_win.c, initialize the default mmap-limit of a new file descriptor to the current global default mmap-limit, not the current global maximum allowable mmap-limit.
FossilOrigin-Name: 1def4ea3a02afc19648f4cd928b247f8fa55da80
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 30d79f0c5..abc23a452 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -5153,7 +5153,7 @@ static int fillInUnixFile(
pNew->pVfs = pVfs;
pNew->zPath = zFilename;
pNew->ctrlFlags = (u8)ctrlFlags;
- pNew->mmapSizeMax = sqlite3GlobalConfig.mxMmap;
+ pNew->mmapSizeMax = sqlite3GlobalConfig.szMmap;
if( sqlite3_uri_boolean(((ctrlFlags & UNIXFILE_URI) ? zFilename : 0),
"psow", SQLITE_POWERSAFE_OVERWRITE) ){
pNew->ctrlFlags |= UNIXFILE_PSOW;