diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2012-05-14 12:39:29 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-05-19 20:45:39 -0400 |
commit | 8b1202c52c4d8f42c23b02a4cfdb097663e6e7b0 (patch) | |
tree | 4243f6bb29d39a4ddd701e75e20054900ba0f88d /src/db.cpp | |
parent | 24b57e3c6a1e5c00e10ee19803dd86d821ffebb2 (diff) |
Remove unused nested BDB transaction support
Diffstat (limited to 'src/db.cpp')
-rw-r--r-- | src/db.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db.cpp b/src/db.cpp index 988c10caa2..21b1e0ae8e 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 |