diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-09-24 16:15:50 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-09-24 16:15:50 +0100 |
commit | d2e11f374a191f8331c65e30f2b623a44b8668de (patch) | |
tree | 608cee240701c156df0a24c16552127e6efd3eb1 /src/blockchain_db | |
parent | Merge pull request #1102 (diff) | |
download | monero-d2e11f374a191f8331c65e30f2b623a44b8668de.tar.xz |
db_lmdb: do not error if dropping a non existent hard fork table
Diffstat (limited to 'src/blockchain_db')
-rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp index 8ad875fc8..0a9a901a4 100644 --- a/src/blockchain_db/lmdb/db_lmdb.cpp +++ b/src/blockchain_db/lmdb/db_lmdb.cpp @@ -1132,7 +1132,7 @@ void BlockchainLMDB::open(const std::string& filename, const int mdb_flags) if (!(mdb_flags & MDB_RDONLY)) { 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())); } |