summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/btree/bt_split.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/btree/bt_split.c b/src/btree/bt_split.c
index 99817eb4d04..2723813a043 100644
--- a/src/btree/bt_split.c
+++ b/src/btree/bt_split.c
@@ -147,6 +147,9 @@ static int
__split_safe_free(WT_SESSION_IMPL *session,
uint64_t split_gen, int exclusive, void *p, size_t s)
{
+ /* We should only call safe free if we aren't pinning the memory. */
+ WT_ASSERT(session, session->split_gen != split_gen);
+
/*
* We have swapped something in a page: if we don't have exclusive
* access, check whether there are other threads in the same tree.