summaryrefslogtreecommitdiff
path: root/src/btree/bt_discard.c
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2014-02-24 10:01:32 -0500
committerKeith Bostic <keith@wiredtiger.com>2014-02-24 10:01:32 -0500
commitbbd014f5e01796f5e747337a151fb0faaa652184 (patch)
tree961532b00ddd1800fd6814523c6ca04ea184ddb0 /src/btree/bt_discard.c
parent065a244a93b9f64f85c3bd6d5e5250efaa1886ce (diff)
parent92fadfed66a8cc764ebc9a8bbce378eef38c9723 (diff)
downloadmongo-bbd014f5e01796f5e747337a151fb0faaa652184.tar.gz
Merge branch 'develop' into new-split
Diffstat (limited to 'src/btree/bt_discard.c')
-rw-r--r--src/btree/bt_discard.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/btree/bt_discard.c b/src/btree/bt_discard.c
index 7355751c565..c55250cbe9e 100644
--- a/src/btree/bt_discard.c
+++ b/src/btree/bt_discard.c
@@ -354,6 +354,10 @@ __free_update_list(WT_SESSION_IMPL *session, WT_UPDATE *upd)
do {
next = upd->next;
+ /* Everything we free should be visible to everyone. */
+ WT_ASSERT(session,
+ upd->txnid == WT_TXN_ABORTED ||
+ __wt_txn_visible_all(session, upd->txnid));
__wt_free(session, upd);
} while ((upd = next) != NULL);
}