diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2017-04-06 11:58:40 +1000 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2017-04-06 11:58:40 +1000 |
commit | b08187d2e034af66b48203682ecd3737f64545a2 (patch) | |
tree | 7680c20c261b4e61c83a1270e4f33e1525cdc870 /src | |
parent | 455cd74ad9718ca1b1b64e1c28b23ca1717220a0 (diff) | |
download | mongo-b08187d2e034af66b48203682ecd3737f64545a2.tar.gz |
Revert "WT-3265 Allow eviction of recently split pages when tree is locked."
This reverts commit 455cd74ad9718ca1b1b64e1c28b23ca1717220a0.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/btree.i | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/include/btree.i b/src/include/btree.i index c9aee73ced6..dcc73f51f1b 100644 --- a/src/include/btree.i +++ b/src/include/btree.i @@ -1354,13 +1354,8 @@ __wt_page_can_evict( * the original parent page's index, because evicting an internal page * discards its WT_REF array, and a thread traversing the original * parent page index might see a freed WT_REF. - * - * One special case where we know this is safe is if the handle is - * locked exclusive (e.g., when the whole tree is being evicted). In - * that case, no readers can be looking at an old index. */ - if (!F_ISSET(session->dhandle, WT_DHANDLE_EXCLUSIVE) && - WT_PAGE_IS_INTERNAL(page) && + if (WT_PAGE_IS_INTERNAL(page) && page->pg_intl_split_gen >= __wt_gen_oldest(session, WT_GEN_SPLIT)) return (false); |