summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2015-02-17 22:47:47 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2015-02-17 22:47:47 +1100
commit2de864a1a95dc2b68d6e072ffddcbb247e2bead9 (patch)
treeea554c9745f7368c16020b5d53484c32372b2ed8
parentfd450bdc0ae008c64d75171bc0c6fb321ec4c980 (diff)
downloadmongo-2de864a1a95dc2b68d6e072ffddcbb247e2bead9.tar.gz
If we have exclusive access to a file being evicted, don't check each page.
-rw-r--r--src/evict/evict_page.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evict/evict_page.c b/src/evict/evict_page.c
index 180e30a924d..fc007e69cb6 100644
--- a/src/evict/evict_page.c
+++ b/src/evict/evict_page.c
@@ -368,7 +368,7 @@ __evict_review(WT_SESSION_IMPL *session, WT_REF *ref,
}
/* Check whether the page can be evicted. */
- if (!__wt_page_can_evict(session, page, 0))
+ if (!exclusive && !__wt_page_can_evict(session, page, 0))
return (EBUSY);
/*