diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2016-01-11 09:39:36 +1100 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2016-01-11 09:45:29 +1100 |
commit | 6b51e483b434c863d45e84b53136706750cc8ea6 (patch) | |
tree | 7555b26582365a196806321eb6fe79181c2fd241 | |
parent | 969f94051159083f5ab22f72e9449ac49e458e7c (diff) | |
download | mongo-6b51e483b434c863d45e84b53136706750cc8ea6.tar.gz |
Merge pull request #2351 from wiredtiger/wt-2253-readgen-oldest-eviction
(cherry picked from commit c70b097)
WT-2553 Backport to 3.0. Prioritize WT_READGEN_OLDEST pages for eviction.
-rw-r--r-- | src/evict/evict_lru.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evict/evict_lru.c b/src/evict/evict_lru.c index 1d92fca8549..2ae3dd6b9a5 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); |