diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2015-03-11 03:50:05 +0000 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2015-03-11 03:50:05 +0000 |
commit | 7ee20176acc77aef2c74eec2e4259b9929fb6dc5 (patch) | |
tree | a4913f4877512131f2c5bfcc42534f21f0e070a1 /src/include | |
parent | 4d0b4093e3d3c9fa0be2bbb01467579f05deddc5 (diff) | |
download | mongo-7ee20176acc77aef2c74eec2e4259b9929fb6dc5.tar.gz |
Update evictable check for pages to use checkpoint visibility.
refs #1745
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/btree.i | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/btree.i b/src/include/btree.i index a3b0cdc10d2..9ab8778436b 100644 --- a/src/include/btree.i +++ b/src/include/btree.i @@ -971,7 +971,7 @@ __wt_page_can_evict(WT_SESSION_IMPL *session, WT_PAGE *page, int check_splits) * evict the created page. */ if (WT_PAGE_IS_INTERNAL(page) && - !__wt_txn_visible_all(session, mod->mod_split_txn)) + !__wt_txn_visible_checkpoint(session, mod->mod_split_txn)) return (0); /* @@ -1007,7 +1007,7 @@ __wt_page_can_evict(WT_SESSION_IMPL *session, WT_PAGE *page, int check_splits) * is blocked by the exclusive lock. */ if (page->read_gen != WT_READGEN_OLDEST && - !__wt_txn_visible_all(session, __wt_page_is_modified(page) ? + !__wt_txn_visible_checkpoint(session, __wt_page_is_modified(page) ? mod->update_txn : mod->rec_max_txn)) return (0); @@ -1016,7 +1016,7 @@ __wt_page_can_evict(WT_SESSION_IMPL *session, WT_PAGE *page, int check_splits) * hope eviction will find it first. */ if (check_splits && - !__wt_txn_visible_all(session, mod->inmem_split_txn)) + !__wt_txn_visible_checkpoint(session, mod->inmem_split_txn)) return (0); return (1); |