aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-04-01 22:38:06 +0000
committerdrh <drh@noemail.net>2013-04-01 22:38:06 +0000
commita1f42c7c32b7326568305f64cf5c592910928a3e (patch)
treeaad28cddf765011947ef33c44e24359505556685 /src/os_unix.c
parenta539c8a4642c91fed157ee48ddf60f92985c5ac9 (diff)
downloadsqlite-a1f42c7c32b7326568305f64cf5c592910928a3e.tar.gz
sqlite-a1f42c7c32b7326568305f64cf5c592910928a3e.zip
Add the SQLITE_CONFIG_MMAP_LIMIT configuration option for overriding the
SQLITE_DEFAULT_MMAP_LIMIT compile-time setting. Enhance "PRAGMA mmap_limit" so that without a specific database name, it sets the limit on all database files and changes the default for any future databases that might be added using ATTACH. FossilOrigin-Name: 78141d0a16dd1d56b575fccd149de7fa789cb06c
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index e92c7cc4a..c10841abf 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -3711,6 +3711,7 @@ static int unixFileControl(sqlite3_file *id, int op, void *pArg){
}
case SQLITE_FCNTL_MMAP_LIMIT: {
pFile->mmapLimit = *(i64*)pArg;
+printf("MMAP-LIMIT(%s) -> %lld\n", pFile->zPath, pFile->mmapLimit);
return SQLITE_OK;
}
#ifdef SQLITE_DEBUG