diff options
author | Alex Gorrod <alexander.gorrod@mongodb.com> | 2017-11-24 11:46:57 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-24 11:46:57 +1100 |
commit | bc0337ed0085ea2d7b00f73deb2f726b4ffbee1b (patch) | |
tree | 9e78374f0ec10436b13e10fb0492111ada1b9515 | |
parent | dbe8848669f0d959e95bd0959eb23e88ba995161 (diff) | |
download | mongo-bc0337ed0085ea2d7b00f73deb2f726b4ffbee1b.tar.gz |
WT-3761 Don't immediately evict pages even if they look clean (#3805)
It is an optimization that tickles a corner case with checkpoints
and the fast truncate path.
-rw-r--r-- | src/include/btree.i | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/include/btree.i b/src/include/btree.i index dd80401cd18..19b300908b1 100644 --- a/src/include/btree.i +++ b/src/include/btree.i @@ -1428,8 +1428,7 @@ __wt_page_release(WT_SESSION_IMPL *session, WT_REF *ref, uint32_t flags) if (WT_READGEN_EVICT_SOON(page->read_gen) && btree->evict_disabled == 0 && __wt_page_can_evict(session, ref, &inmem_split)) { - if (__wt_page_is_modified(page) && - (LF_ISSET(WT_READ_NO_SPLIT) || (!inmem_split && + if ((LF_ISSET(WT_READ_NO_SPLIT) || (!inmem_split && F_ISSET(session, WT_SESSION_NO_RECONCILE)))) __wt_page_evict_urgent(session, ref); else { |