summaryrefslogtreecommitdiff
path: root/src/conn/conn_cache.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2016-03-06 19:18:56 -0500
committerKeith Bostic <keith@wiredtiger.com>2016-03-06 19:18:56 -0500
commit66d3dc3ca9ef18c37264291dc1ebca1468751abf (patch)
tree8fc5d62740a7fef6033446928e66c64caef0cf5f /src/conn/conn_cache.c
parent34c29af1c992a435a382b973787a5760f4d95c71 (diff)
downloadmongo-66d3dc3ca9ef18c37264291dc1ebca1468751abf.tar.gz
WT-2391: De-prioritize eviction from indexes
Create a new #define for the starting page read generation value, instead of a magic constant in the code.
Diffstat (limited to 'src/conn/conn_cache.c')
-rw-r--r--src/conn/conn_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conn/conn_cache.c b/src/conn/conn_cache.c
index 9e8daaf9f7e..8a7064cbb35 100644
--- a/src/conn/conn_cache.c
+++ b/src/conn/conn_cache.c
@@ -143,7 +143,7 @@ __wt_cache_create(WT_SESSION_IMPL *session, const char *cfg[])
* The lowest possible page read-generation has a special meaning, it
* marks a page for forcible eviction; don't let it happen by accident.
*/
- cache->read_gen = 10;
+ cache->read_gen = WT_READGEN_START_VALUE;
/*
* The target size must be lower than the trigger size or we will never