diff options
author | drh <drh@noemail.net> | 2013-03-25 23:09:28 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2013-03-25 23:09:28 +0000 |
commit | 0d0614bdc6e59c1cb52bc79fdf8dafbbc78f57f9 (patch) | |
tree | 409fd2a1a127c4019c63da08d0d182db3d76a9be /src/btree.c | |
parent | d1ab8065c1039db43eb413702cafb3baa500d69a (diff) | |
download | sqlite-0d0614bdc6e59c1cb52bc79fdf8dafbbc78f57f9.tar.gz sqlite-0d0614bdc6e59c1cb52bc79fdf8dafbbc78f57f9.zip |
Memory-mapped I/O is now on by default. The "PRAGMA mmap_limit(N)" can be
used to issue a hint to the VFS to limit mmap space to N bytes. The VFS
is free to ignore that hint if desired. However, if "PRAGMA mmap_limit(0)"
is used, xFetch is never called.
FossilOrigin-Name: 1b37c4effdd03aa2ea938a71b4f22ed27391689b
Diffstat (limited to 'src/btree.c')
-rw-r--r-- | src/btree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/btree.c b/src/btree.c index 59970ded7..04cc20d5c 100644 --- a/src/btree.c +++ b/src/btree.c @@ -2134,11 +2134,11 @@ int sqlite3BtreeSetCacheSize(Btree *p, int mxPage){ ** Change the limit on the amount of the database file that may be ** memory mapped. */ -int sqlite3BtreeSetMmapSize(Btree *p, int nMap){ +int sqlite3BtreeSetMmapLimit(Btree *p, sqlite3_int64 mxMmap){ BtShared *pBt = p->pBt; assert( sqlite3_mutex_held(p->db->mutex) ); sqlite3BtreeEnter(p); - sqlite3PagerSetMmapsize(pBt->pPager, nMap); + sqlite3PagerSetMmapLimit(pBt->pPager, mxMmap); sqlite3BtreeLeave(p); return SQLITE_OK; } |