summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@mongodb.com>2015-12-02 13:23:10 +1100
committerMichael Cahill <michael.cahill@mongodb.com>2015-12-02 13:23:10 +1100
commit97b549e75f64fe915019057cf42a572e89d49fa9 (patch)
tree15f2e23a3a5ed2a0b0e34653230971e82f8f2743 /src
parent5fe8c70e33731e0a6d5d25d2883faa52916f8dcf (diff)
parentc70b0973e1b4a74f80ef3e95aa730def002fcd7e (diff)
downloadmongo-97b549e75f64fe915019057cf42a572e89d49fa9.tar.gz
Merge branch 'develop' into SERVER-21553-free-deleted-blocks
Diffstat (limited to 'src')
-rw-r--r--src/evict/evict_lru.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/evict/evict_lru.c b/src/evict/evict_lru.c
index 4ec59853b7e..b5cb850d83c 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);