diff options
author | Michael Cahill <michael.cahill@mongodb.com> | 2015-12-02 12:30:39 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@mongodb.com> | 2015-12-02 12:30:39 +1100 |
commit | 5ebfd9211956d794795c0be293c76e8dd22d3f4d (patch) | |
tree | 5b39cb55325b5c7e57f52525bfd8b8099e08f8bd | |
parent | fa28552449d81f24a2c666934d508c525e752bd5 (diff) | |
download | mongo-5ebfd9211956d794795c0be293c76e8dd22d3f4d.tar.gz |
SERVER-21553 Review feedback.
-rw-r--r-- | src/reconcile/rec_write.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reconcile/rec_write.c b/src/reconcile/rec_write.c index dca6de964d6..21cc68ed119 100644 --- a/src/reconcile/rec_write.c +++ b/src/reconcile/rec_write.c @@ -1371,8 +1371,9 @@ __rec_child_deleted(WT_SESSION_IMPL *session, * read into this part of the name space again, the cache read function * instantiates an entirely new page.) */ - if (page_del == NULL || - __wt_txn_visible_all(session, page_del->txnid)) + if (ref->addr != NULL && + (page_del == NULL || + __wt_txn_visible_all(session, page_del->txnid))) WT_RET(__wt_ref_block_free(session, ref)); /* |