diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2014-03-11 22:02:04 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2014-03-11 22:02:04 +1100 |
commit | 2bad6fba854f95dc63da312396d976bd2a20ad42 (patch) | |
tree | 0a3eaa77cf31e0e765fbc0f98ba5b1799ac78934 /src | |
parent | d8d170dd8d4b310a20f08d93b4dda0aeb4249143 (diff) | |
download | mongo-2bad6fba854f95dc63da312396d976bd2a20ad42.tar.gz |
If a page is awaiting forced eviction, and LRU eviction fails, don't bump the read generation.
Diffstat (limited to 'src')
-rw-r--r-- | src/btree/bt_evict.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/btree/bt_evict.c b/src/btree/bt_evict.c index 73839215199..d5f01bc4c22 100644 --- a/src/btree/bt_evict.c +++ b/src/btree/bt_evict.c @@ -1241,7 +1241,8 @@ __wt_evict_lru_page(WT_SESSION_IMPL *session, int is_app) * the page and some other thread may have evicted it by the time we * look at it. */ - page->read_gen = __wt_cache_read_gen_set(session); + if (page->read_gen != WT_READGEN_OLDEST) + page->read_gen = __wt_cache_read_gen_set(session); WT_WITH_BTREE(session, btree, ret = __wt_evict_page(session, page)); |