mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-27 01:42:27 +00:00
db_lmdb: check hard fork info drop succeeded
Coverity 136364
This commit is contained in:
parent
ed67e5c001
commit
1aabd14c21
1 changed files with 6 additions and 2 deletions
|
@ -3140,8 +3140,12 @@ void BlockchainLMDB::drop_hard_fork_info()
|
|||
|
||||
TXN_PREFIX(0);
|
||||
|
||||
mdb_drop(*txn_ptr, m_hf_starting_heights, 1);
|
||||
mdb_drop(*txn_ptr, m_hf_versions, 1);
|
||||
auto result = mdb_drop(*txn_ptr, m_hf_starting_heights, 1);
|
||||
if (result)
|
||||
throw1(DB_ERROR(lmdb_error("Error dropping hard fork starting heights db: ", result).c_str()));
|
||||
result = mdb_drop(*txn_ptr, m_hf_versions, 1);
|
||||
if (result)
|
||||
throw1(DB_ERROR(lmdb_error("Error dropping hard fork versions db: ", result).c_str()));
|
||||
|
||||
TXN_POSTFIX_SUCCESS();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue