From 864e6270a21e8e4d9abb8f780dc49c3e56441724 Mon Sep 17 00:00:00 2001 From: Yoni Fogel Date: Wed, 17 Apr 2013 00:00:55 -0400 Subject: [PATCH] refs #5153 fix typo made during cleanup git-svn-id: file:///svn/toku/tokudb@45059 c7de825b-a66e-492c-adef-691d508d4ae1 --- src/ydb_txn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ydb_txn.c b/src/ydb_txn.c index 65358a1834a..676b665f406 100644 --- a/src/ydb_txn.c +++ b/src/ydb_txn.c @@ -48,7 +48,7 @@ toku_txn_release_locks(DB_TXN* txn) { static void toku_txn_destroy(DB_TXN *txn) { int32_t open_txns = __sync_sub_and_fetch(&txn->mgrp->i->open_txns, 1); - invariant(open-txns > 0); + invariant(open-txns >= 0); toku_txn_destroy_txn(db_txn_struct_i(txn)->tokutxn); toku_mutex_destroy(&db_txn_struct_i(txn)->txn_mutex); #if !TOKUDB_NATIVE_H