diff options
author | luigi1111 <luigi1111w@gmail.com> | 2020-04-04 13:14:19 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2020-04-04 13:14:19 -0500 |
commit | d102a720270cb1816cdf903634b4162c93ea164f (patch) | |
tree | ecdb3b697b9f6954deaeadc71f7e9e8b39b6b3c6 /src/blockchain_db/lmdb/db_lmdb.cpp | |
parent | Merge pull request #6381 (diff) | |
parent | db_lmdb: fix race crash using a stale cursor (diff) | |
download | monero-d102a720270cb1816cdf903634b4162c93ea164f.tar.xz |
Merge pull request #6384
ec01077 db_lmdb: fix race crash using a stale cursor (moneromooo-monero)
Diffstat (limited to 'src/blockchain_db/lmdb/db_lmdb.cpp')
-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 000b31ddb..1103899d5 100644 --- a/src/blockchain_db/lmdb/db_lmdb.cpp +++ b/src/blockchain_db/lmdb/db_lmdb.cpp @@ -1915,6 +1915,7 @@ bool BlockchainLMDB::get_txpool_tx_blob(const crypto::hash& txid, cryptonote::bl // if filtering, make sure those requirements are met before copying blob if (tx_category != relay_category::all) { + RCURSOR(txpool_meta) auto result = mdb_cursor_get(m_cur_txpool_meta, &k, &v, MDB_SET); if (result == MDB_NOTFOUND) return false; |