diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2015-08-11 17:31:44 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2015-08-11 17:31:44 +1000 |
commit | dad41f4825fddd6de15cb64e91fbe85b811d283d (patch) | |
tree | 3f8f3027a5ec513a03d6e15245d610930c1b52a6 /src/btree/bt_handle.c | |
parent | c48eb75860350fa62be4508cee75fb0a89d065a0 (diff) | |
download | mongo-dad41f4825fddd6de15cb64e91fbe85b811d283d.tar.gz |
Don't constrain page size based on the cache size in shared caches.
Diffstat (limited to 'src/btree/bt_handle.c')
-rw-r--r-- | src/btree/bt_handle.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/btree/bt_handle.c b/src/btree/bt_handle.c index c1a8ab61054..4205187a908 100644 --- a/src/btree/bt_handle.c +++ b/src/btree/bt_handle.c @@ -663,9 +663,11 @@ __btree_page_sizes(WT_SESSION_IMPL *session) WT_RET(__wt_config_gets(session, cfg, "memory_page_max", &cval)); btree->maxmempage = WT_MAX((uint64_t)cval.val, 50 * (uint64_t)btree->maxleafpage); - cache_size = S2C(session)->cache_size; - if (cache_size > 0) - btree->maxmempage = WT_MIN(btree->maxmempage, cache_size / 4); + if (!F_ISSET(S2C(session), WT_CONN_CACHE_POOL)) { + if ((cache_size = S2C(session)->cache_size) > 0) + btree->maxmempage = + WT_MIN(btree->maxmempage, cache_size / 4); + } /* * Get the split percentage (reconciliation splits pages into smaller |