summaryrefslogtreecommitdiff
path: root/src/evict/evict_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evict/evict_file.c')
-rw-r--r--src/evict/evict_file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/evict/evict_file.c b/src/evict/evict_file.c
index c5e04806062..bcc5b86ecc2 100644
--- a/src/evict/evict_file.c
+++ b/src/evict/evict_file.c
@@ -81,7 +81,7 @@ __wt_evict_file(WT_SESSION_IMPL *session, int syncop)
case WT_SYNC_DISCARD:
WT_ASSERT(session,
__wt_page_can_evict(session, page, 0, NULL));
- __wt_evict_page_clean_update(session, ref);
+ WT_ERR(__wt_evict_page_clean_update(session, ref));
break;
case WT_SYNC_DISCARD_FORCE:
/*
@@ -97,8 +97,9 @@ __wt_evict_file(WT_SESSION_IMPL *session, int syncop)
}
F_SET(session, WT_SESSION_DISCARD_FORCE);
- __wt_evict_page_clean_update(session, ref);
+ ret = __wt_evict_page_clean_update(session, ref);
F_CLR(session, WT_SESSION_DISCARD_FORCE);
+ WT_ERR(ret);
break;
WT_ILLEGAL_VALUE_ERR(session);
}