summaryrefslogtreecommitdiff
path: root/src/btree/bt_page.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/btree/bt_page.c')
-rw-r--r--src/btree/bt_page.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/btree/bt_page.c b/src/btree/bt_page.c
index ea86db9aeac..ed3d1caf8ee 100644
--- a/src/btree/bt_page.c
+++ b/src/btree/bt_page.c
@@ -49,7 +49,8 @@ __wt_page_in_func(
* can't get a hazard reference is because the page is
* being evicted; yield and try again.
*/
- if (__wt_hazard_set(session, ref
+ if (F_ISSET(ref->page, WT_PAGE_PINNED) ||
+ __wt_hazard_set(session, ref
#ifdef HAVE_DIAGNOSTIC
, file, line
#endif