diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-02-21 09:52:30 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-02-21 09:52:30 +0000 |
commit | 85088d9f85d6764e70f3d00a7b173ad7f5a29b33 (patch) | |
tree | 5f6c8a3a4e5e0786801c3d07fef73bf8e77a5fa8 /src/blockchain_db | |
parent | Merge pull request #4988 (diff) | |
download | monero-85088d9f85d6764e70f3d00a7b173ad7f5a29b33.tar.xz |
db_lmdb: fix missing mdb_dbi_close in migration
Fixed by hyc
Diffstat (limited to 'src/blockchain_db')
-rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp index 8a1303be9..19e007b60 100644 --- a/src/blockchain_db/lmdb/db_lmdb.cpp +++ b/src/blockchain_db/lmdb/db_lmdb.cpp @@ -4748,6 +4748,7 @@ void BlockchainLMDB::migrate_2_3() throw0(DB_ERROR(lmdb_error("Failed to delete old block_info table: ", result).c_str())); RENAME_DB("block_infn"); + mdb_dbi_close(m_env, m_block_info); lmdb_db_open(txn, "block_info", MDB_INTEGERKEY | MDB_CREATE | MDB_DUPSORT | MDB_DUPFIXED, m_block_info, "Failed to open db handle for block_infn"); mdb_set_dupsort(txn, m_block_info, compare_uint64); |