summaryrefslogtreecommitdiff
path: root/src/btree/bt_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/btree/bt_read.c')
-rw-r--r--src/btree/bt_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btree/bt_read.c b/src/btree/bt_read.c
index 90188498535..39f9e1159cb 100644
--- a/src/btree/bt_read.c
+++ b/src/btree/bt_read.c
@@ -324,7 +324,7 @@ __evict_force_check(WT_SESSION_IMPL *session, WT_REF *ref)
* If this session has more than one hazard pointer, eviction will fail
* and there is no point trying.
*/
- if (__wt_hazard_count(session, page) > 1)
+ if (__wt_hazard_count(session, ref) > 1)
return (false);
/* If we can do an in-memory split, do it. */