db_lmdb: errors dropping hf starting height db on reset are not fatal

This db is now dropped unconditionally, so may or may not be there
in the first place.
This commit is contained in:
moneromooo-monero 2016-08-10 10:50:17 +01:00
parent 0fbe9cfcdb
commit 240864f529
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -1242,8 +1242,7 @@ void BlockchainLMDB::reset()
throw0(DB_ERROR(lmdb_error("Failed to drop m_output_amounts: ", result).c_str())); throw0(DB_ERROR(lmdb_error("Failed to drop m_output_amounts: ", result).c_str()));
if (auto result = mdb_drop(txn, m_spent_keys, 0)) if (auto result = mdb_drop(txn, m_spent_keys, 0))
throw0(DB_ERROR(lmdb_error("Failed to drop m_spent_keys: ", result).c_str())); throw0(DB_ERROR(lmdb_error("Failed to drop m_spent_keys: ", result).c_str()));
if (auto result = mdb_drop(txn, m_hf_starting_heights, 0)) (void)mdb_drop(txn, m_hf_starting_heights, 0); // this one is dropped in new code
throw0(DB_ERROR(lmdb_error("Failed to drop m_hf_starting_heights: ", result).c_str()));
if (auto result = mdb_drop(txn, m_hf_versions, 0)) if (auto result = mdb_drop(txn, m_hf_versions, 0))
throw0(DB_ERROR(lmdb_error("Failed to drop m_hf_versions: ", result).c_str())); throw0(DB_ERROR(lmdb_error("Failed to drop m_hf_versions: ", result).c_str()));
if (auto result = mdb_drop(txn, m_properties, 0)) if (auto result = mdb_drop(txn, m_properties, 0))