summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith.bostic@mongodb.com>2017-03-29 16:26:57 -0400
committerAlex Gorrod <alexander.gorrod@mongodb.com>2017-03-29 16:26:57 -0400
commit0a0bfa94d912933bede4f2550ac34a69916cb416 (patch)
tree901f572bf66204ae674d8461dce0fdcf33a7bada
parentebff498af45a3e64fab05cd6360b117c010634b9 (diff)
downloadmongo-0a0bfa94d912933bede4f2550ac34a69916cb416.tar.gz
WT-3244 Turn off in-memory cache-full checks on the metadata file (#3359)
This avoids metadata operations failing in in-memory configurations.
-rw-r--r--src/btree/bt_handle.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/btree/bt_handle.c b/src/btree/bt_handle.c
index f2bffee06da..57e0a3422f2 100644
--- a/src/btree/bt_handle.c
+++ b/src/btree/bt_handle.c
@@ -359,6 +359,14 @@ __btree_conf(WT_SESSION_IMPL *session, WT_CKPT *ckpt)
} else
F_CLR(btree, WT_BTREE_IGNORE_CACHE);
+ /*
+ * The metadata isn't blocked by in-memory cache limits because metadata
+ * "unroll" is performed by updates that are potentially blocked by the
+ * cache-full checks.
+ */
+ if (WT_IS_METADATA(btree->dhandle))
+ F_SET(btree, WT_BTREE_IGNORE_CACHE);
+
WT_RET(__wt_config_gets(session, cfg, "log.enabled", &cval));
if (cval.val)
F_CLR(btree, WT_BTREE_NO_LOGGING);