diff options
author | Sulabh Mahajan <sulabh.mahajan@mongodb.com> | 2016-07-06 14:23:25 +1000 |
---|---|---|
committer | Alex Gorrod <alexander.gorrod@mongodb.com> | 2016-07-06 14:23:25 +1000 |
commit | 67d614b0b6faec17b8396b8dfce4acd50958d7ef (patch) | |
tree | 08120259fa6e05da0d6eabb84f2ea81f4643a98c /src/evict/evict_page.c | |
parent | 1b6a9220c3ce948f902c6bc44660b76982c7e621 (diff) | |
download | mongo-67d614b0b6faec17b8396b8dfce4acd50958d7ef.tar.gz |
WT-2026 Allow forced eviction to split pages when BTREE_NO_EVICTION set (#2840)
Previously getting exclusive access for a checkpoint was blocking page splits, which allows pages to grow larger than the configured memory_page_max.
Diffstat (limited to 'src/evict/evict_page.c')
-rw-r--r-- | src/evict/evict_page.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evict/evict_page.c b/src/evict/evict_page.c index f5c900684a3..e661f27637e 100644 --- a/src/evict/evict_page.c +++ b/src/evict/evict_page.c @@ -467,6 +467,10 @@ __evict_review( */ if (LF_ISSET(WT_EVICT_INMEM_SPLIT)) return (__wt_split_insert(session, ref)); + + /* We are done if reconciliation is disabled. */ + if (F_ISSET(S2BT(session), WT_BTREE_NO_RECONCILE)) + return (EBUSY); } /* If the page is clean, we're done and we can evict. */ |