summaryrefslogtreecommitdiff
path: root/src/btree/bt_discard.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2013-09-12 06:49:01 -0400
committerKeith Bostic <keith@wiredtiger.com>2013-09-12 06:49:43 -0400
commit453c0c148921a79e47f1854dbc6acca8f63fb75d (patch)
tree53bd4e0144609202d5e4c68837b55dda742a4bd2 /src/btree/bt_discard.c
parent0eceed435e1d82461c71d1e9356c970470da7489 (diff)
downloadmongo-453c0c148921a79e47f1854dbc6acca8f63fb75d.tar.gz
If we're discrading a page with a hazard pointer, assert failure in
DIAGNOSTIC mode.
Diffstat (limited to 'src/btree/bt_discard.c')
-rw-r--r--src/btree/bt_discard.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/btree/bt_discard.c b/src/btree/bt_discard.c
index 04b30c2cc16..7a123b6f0a1 100644
--- a/src/btree/bt_discard.c
+++ b/src/btree/bt_discard.c
@@ -51,6 +51,7 @@ __wt_page_out(WT_SESSION_IMPL *session, WT_PAGE **pagep)
__wt_errx(session,
"discarded page has hazard pointer: (%p: %s, line %d)",
hp->page, hp->file, hp->line);
+ WT_ASSERT(session, hp == NULL);
}
#endif
/* Update the cache's information. */