From 8b1202c52c4d8f42c23b02a4cfdb097663e6e7b0 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Mon, 14 May 2012 12:39:29 -0400 Subject: Remove unused nested BDB transaction support --- src/db.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/db.cpp') diff --git a/src/db.cpp b/src/db.cpp index 988c10caa..21b1e0ae8 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -170,9 +170,9 @@ void CDB::Close() { if (!pdb) return; - if (!vTxn.empty()) - vTxn.front()->abort(); - vTxn.clear(); + if (activeTxn) + activeTxn->abort(); + activeTxn = NULL; pdb = NULL; // Flush database activity from memory pool to disk log -- cgit v1.2.3