diff options
author | Michael Cahill <michael.cahill@wiredtiger.com> | 2013-03-22 14:34:33 +1100 |
---|---|---|
committer | Michael Cahill <michael.cahill@wiredtiger.com> | 2013-03-22 14:34:33 +1100 |
commit | 2d0e768a6c24e846863d0c8b6555a98ab201ea4a (patch) | |
tree | dad1687052403ad4a44d197dda58cb0fb7b41070 | |
parent | 098dafb29487c863d2ccef2d2cf4ec68140bd1a8 (diff) | |
download | mongo-2d0e768a6c24e846863d0c8b6555a98ab201ea4a.tar.gz |
Fix an assertion failure if we try to do eviction without ever having done an update.
closes #488
-rw-r--r-- | src/txn/txn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txn/txn.c b/src/txn/txn.c index f3bf4831d46..ae88a19a478 100644 --- a/src/txn/txn.c +++ b/src/txn/txn.c @@ -39,7 +39,7 @@ __txn_sort_snapshot(WT_SESSION_IMPL *session, txn->snapshot_count = n; txn->snap_min = (n == 0) ? id : txn->snapshot[0]; txn->snap_max = id; - WT_ASSERT(session, txn->snap_min != WT_TXN_NONE); + WT_ASSERT(session, n == 0 || txn->snap_min != WT_TXN_NONE); txn->oldest_snap_min = TXNID_LT(oldest_snap_min, txn->snap_min) ? oldest_snap_min : txn->snap_min; } |