mirror of
https://github.com/monero-project/monero.git
synced 2025-12-11 17:41:28 +09:00
Merge pull request #1128
d2e11f3 db_lmdb: do not error if dropping a non existent hard fork table (moneromooo-monero)
This commit is contained in:
commit
995dde4f95
@ -1132,7 +1132,7 @@ void BlockchainLMDB::open(const std::string& filename, const int mdb_flags)
|
|||||||
if (!(mdb_flags & MDB_RDONLY))
|
if (!(mdb_flags & MDB_RDONLY))
|
||||||
{
|
{
|
||||||
result = mdb_drop(txn, m_hf_starting_heights, 1);
|
result = mdb_drop(txn, m_hf_starting_heights, 1);
|
||||||
if (result)
|
if (result && result != MDB_NOTFOUND)
|
||||||
throw0(DB_ERROR(lmdb_error("Failed to drop m_hf_starting_heights: ", result).c_str()));
|
throw0(DB_ERROR(lmdb_error("Failed to drop m_hf_starting_heights: ", result).c_str()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user