summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2014-03-11 22:02:04 +1100
committerMichael Cahill <michael.cahill@wiredtiger.com>2014-03-11 22:02:04 +1100
commit2bad6fba854f95dc63da312396d976bd2a20ad42 (patch)
tree0a3eaa77cf31e0e765fbc0f98ba5b1799ac78934 /src
parentd8d170dd8d4b310a20f08d93b4dda0aeb4249143 (diff)
downloadmongo-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.c3
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));