From f0e3d32e59288bdac9414e9b381ebc9c2a5b07c1 Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Tue, 22 Sep 2015 12:06:45 -0400 Subject: 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. --- src/evict/evict_page.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/evict') 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)) { -- cgit v1.2.1