mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
db_lmdb: do not propagate exceptions in dtor
Not much we can do here Coverity 161875
This commit is contained in:
parent
1b0afeeb1c
commit
0749a8bd3c
1 changed files with 4 additions and 1 deletions
|
@ -1145,7 +1145,10 @@ BlockchainLMDB::~BlockchainLMDB()
|
||||||
|
|
||||||
// batch transaction shouldn't be active at this point. If it is, consider it aborted.
|
// batch transaction shouldn't be active at this point. If it is, consider it aborted.
|
||||||
if (m_batch_active)
|
if (m_batch_active)
|
||||||
batch_abort();
|
{
|
||||||
|
try { batch_abort(); }
|
||||||
|
catch (...) { /* ignore */ }
|
||||||
|
}
|
||||||
if (m_open)
|
if (m_open)
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue