From b08187d2e034af66b48203682ecd3737f64545a2 Mon Sep 17 00:00:00 2001 From: Michael Cahill Date: Thu, 6 Apr 2017 11:58:40 +1000 Subject: Revert "WT-3265 Allow eviction of recently split pages when tree is locked." This reverts commit 455cd74ad9718ca1b1b64e1c28b23ca1717220a0. --- src/include/btree.i | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') 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); -- cgit v1.2.1