Fix missing lock (#837)

This commit is contained in:
Sergey Kuznetsov
2023-09-11 16:19:57 +01:00
committed by GitHub
parent d783edd57a
commit 59cd2ce5aa

View File

@@ -69,7 +69,7 @@ LedgerCache::getSuccessor(ripple::uint256 const& key, uint32_t seq) const
{
if (!full_)
return {};
std::shared_lock{mtx_};
std::shared_lock lck{mtx_};
successorReqCounter_++;
if (seq != latestSeq_)
return {};