aboutsummaryrefslogtreecommitdiff
path: root/src/pager.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-11-19 19:40:40 +0000
committerdrh <drh@noemail.net>2015-11-19 19:40:40 +0000
commit769dc6e2a22b3104583ad357b01f31a22e146a5c (patch)
treef88612242437ec891ead4c010c94a20b1d4587ee /src/pager.c
parent98a0e0083f33ae62a8104be5c074daa123cffc84 (diff)
parent18f8e73453be7c7a2394824739e890a4d4e8cad0 (diff)
downloadsqlite-769dc6e2a22b3104583ad357b01f31a22e146a5c.tar.gz
sqlite-769dc6e2a22b3104583ad357b01f31a22e146a5c.zip
Merge the latest enhancements from trunk.
FossilOrigin-Name: 7d6cfc79e7e5534ebacd980479917bc528a638f7
Diffstat (limited to 'src/pager.c')
-rw-r--r--src/pager.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/pager.c b/src/pager.c
index b537e9e93..f633a7792 100644
--- a/src/pager.c
+++ b/src/pager.c
@@ -3392,13 +3392,22 @@ static int pagerPlaybackSavepoint(Pager *pPager, PagerSavepoint *pSavepoint){
}
/*
-** Change the maximum number of in-memory pages that are allowed.
+** Change the maximum number of in-memory pages that are allowed
+** before attempting to recycle clean and unused pages.
*/
void sqlite3PagerSetCachesize(Pager *pPager, int mxPage){
sqlite3PcacheSetCachesize(pPager->pPCache, mxPage);
}
/*
+** Change the maximum number of in-memory pages that are allowed
+** before attempting to spill pages to journal.
+*/
+int sqlite3PagerSetSpillsize(Pager *pPager, int mxPage){
+ return sqlite3PcacheSetSpillsize(pPager->pPCache, mxPage);
+}
+
+/*
** Invoke SQLITE_FCNTL_MMAP_SIZE based on the current value of szMmap.
*/
static void pagerFixMaplimit(Pager *pPager){