diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2015-02-17 22:47:47 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2015-02-17 22:47:47 +1100 |
commit | 2de864a1a95dc2b68d6e072ffddcbb247e2bead9 (patch) | |
tree | ea554c9745f7368c16020b5d53484c32372b2ed8 | |
parent | fd450bdc0ae008c64d75171bc0c6fb321ec4c980 (diff) | |
download | mongo-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.c | 2 |
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); /* |