diff options
author | Alex Gorrod <alexg@wiredtiger.com> | 2015-03-13 05:21:49 +0000 |
---|---|---|
committer | Alex Gorrod <alexg@wiredtiger.com> | 2015-03-13 05:21:49 +0000 |
commit | 2cd4cb092298bc77d590933888c8a7b8f4dac45a (patch) | |
tree | 7aa15b497a5e277b718335fef0c1da7a518d105f /src/include/txn.i | |
parent | 408c0c3ad07ebfdd4018ea1bdf1d97e5fb3962d2 (diff) | |
download | mongo-2cd4cb092298bc77d590933888c8a7b8f4dac45a.tar.gz |
Don't dereference a NULL btree, update the oldest ID if there
is a snapshot.
Diffstat (limited to 'src/include/txn.i')
-rw-r--r-- | src/include/txn.i | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/txn.i b/src/include/txn.i index d0d82f36e04..e36c8126ce1 100644 --- a/src/include/txn.i +++ b/src/include/txn.i @@ -125,7 +125,7 @@ __wt_txn_visible_all(WT_SESSION_IMPL *session, uint64_t id) */ oldest_id = checkpoint_id; - if (checkpoint_id != WT_TXN_NONE) { + if (btree != NULL && checkpoint_id != WT_TXN_NONE) { if (btree->checkpoint_gen != txn_global->checkpoint_gen) WT_STAT_FAST_CONN_INCR( session, txn_not_visible_checkpoint); |