Skip to content

Commit

Permalink
db_lmdb: do not propagate exceptions in dtor
Browse files Browse the repository at this point in the history
Not much we can do here

Coverity 161875
  • Loading branch information
moneromooo-monero committed Sep 27, 2018
1 parent 1b0afee commit 0749a8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/blockchain_db/lmdb/db_lmdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1145,7 +1145,10 @@ BlockchainLMDB::~BlockchainLMDB()

// batch transaction shouldn't be active at this point. If it is, consider it aborted.
if (m_batch_active)
batch_abort();
{
try { batch_abort(); }
catch (...) { /* ignore */ }
}
if (m_open)
close();
}
Expand Down

0 comments on commit 0749a8b

Please sign in to comment.