summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2015-01-21 06:47:33 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2015-01-21 06:47:33 +1100
commit5fc6e41d36a26eb1fc5d5f5d600d525864c0322f (patch)
tree657d5c5b5976cf833aafd11dc44578fc388ca231
parente2de971061abea9451e92d60f0870136c9c0af42 (diff)
downloadmongo-5fc6e41d36a26eb1fc5d5f5d600d525864c0322f.tar.gz
We can have a tree of empty pages when closing a tree, and that's fine.
-rw-r--r--src/evict/evict_page.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/evict/evict_page.c b/src/evict/evict_page.c
index 63a07d63941..99e2a6751be 100644
--- a/src/evict/evict_page.c
+++ b/src/evict/evict_page.c
@@ -357,12 +357,11 @@ __evict_review(WT_SESSION_IMPL *session, WT_REF *ref,
if (WT_PAGE_IS_INTERNAL(page)) {
/*
* Quit if we're trying to push out a "tree", an internal page
- * with internal pages as children, it's not likely to succeed.
+ * with live internal pages as children, it's not likely to
+ * succeed.
*/
- if (!top) {
- WT_ASSERT(session, exclusive == 0);
+ if (!top && !exclusive)
return (EBUSY);
- }
WT_WITH_PAGE_INDEX(session, ret = __evict_review_subtree(
session, ref, exclusive, inmem_splitp, istreep));