Merge pull request #6384
ec01077
db_lmdb: fix race crash using a stale cursor (moneromooo-monero)
This commit is contained in:
commit
d102a72027
@ -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 filtering, make sure those requirements are met before copying blob
|
||||||
if (tx_category != relay_category::all)
|
if (tx_category != relay_category::all)
|
||||||
{
|
{
|
||||||
|
RCURSOR(txpool_meta)
|
||||||
auto result = mdb_cursor_get(m_cur_txpool_meta, &k, &v, MDB_SET);
|
auto result = mdb_cursor_get(m_cur_txpool_meta, &k, &v, MDB_SET);
|
||||||
if (result == MDB_NOTFOUND)
|
if (result == MDB_NOTFOUND)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user