diff options
author | Keith Bostic <keith@wiredtiger.com> | 2015-09-22 12:06:45 -0400 |
---|---|---|
committer | Keith Bostic <keith@wiredtiger.com> | 2015-09-22 12:06:45 -0400 |
commit | f0e3d32e59288bdac9414e9b381ebc9c2a5b07c1 (patch) | |
tree | 98c0e8494e1a2c9e2477e5042a59b284403f8930 /src/evict | |
parent | 4af12cbd6a755c15b42bed05e18b7dfe26d58529 (diff) | |
download | mongo-f0e3d32e59288bdac9414e9b381ebc9c2a5b07c1.tar.gz |
The WT_PAGE_MODIFY flags field isn't really a set of flags, it's an enum
with 4 cases; get rid of the flags masking for clarity/simplicity.
Diffstat (limited to 'src/evict')
-rw-r--r-- | src/evict/evict_page.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/evict/evict_page.c b/src/evict/evict_page.c index e32488a92a6..b09ceb691d5 100644 --- a/src/evict/evict_page.c +++ b/src/evict/evict_page.c @@ -106,7 +106,7 @@ __wt_evict(WT_SESSION_IMPL *session, WT_REF *ref, bool closing) conn->cache->evict_max_page_size = page->memory_footprint; /* Update the reference and discard the page. */ - if (mod == NULL || !F_ISSET(mod, WT_PM_REC_MASK)) { + if (mod == NULL || mod->recon_result == 0) { if (__wt_ref_is_root(ref)) __wt_ref_out(session, ref); else @@ -184,7 +184,7 @@ __evict_page_dirty_update(WT_SESSION_IMPL *session, WT_REF *ref, bool closing) parent = ref->home; mod = ref->page->modify; - switch (F_MASK(mod, WT_PM_REC_MASK)) { + switch (mod->recon_result) { case WT_PM_REC_EMPTY: /* Page is empty */ /* Discard the parent's address. */ if (ref->addr != NULL && __wt_off_page(parent, ref->addr)) { |