From 2d0e768a6c24e846863d0c8b6555a98ab201ea4a Mon Sep 17 00:00:00 2001 From: Michael Cahill Date: Fri, 22 Mar 2013 14:34:33 +1100 Subject: Fix an assertion failure if we try to do eviction without ever having done an update. closes #488 --- src/txn/txn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.1