mirror of
https://github.com/monero-project/monero.git
synced 2024-11-17 08:17:37 +00:00
Merge pull request #6384
ec01077
db_lmdb: fix race crash using a stale cursor (moneromooo-monero)
This commit is contained in:
commit
d102a72027
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue