From 479818af02f4983b5abed2c5ba43fb86d9c3df0f Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Tue, 1 Dec 2015 18:29:20 -0500 Subject: [PATCH] WT-2553: If a leaf or internal page's read generation is set to WT_READGEN_OLDEST, prioritize it for eviction. --- src/evict/evict_lru.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/evict/evict_lru.c b/src/evict/evict_lru.c index f2784890ab7..3d5a79de82d 100644 --- a/src/evict/evict_lru.c +++ b/src/evict/evict_lru.c @@ -36,6 +36,10 @@ __evict_read_gen(const WT_EVICT_ENTRY *entry) page = entry->ref->page; + /* Any page set to the oldest generation should be discarded. */ + if (page->read_gen == WT_READGEN_OLDEST) + return (WT_READGEN_OLDEST); + /* Any empty page (leaf or internal), is a good choice. */ if (__wt_page_is_empty(page)) return (WT_READGEN_OLDEST);