mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 01:07:57 +00:00
waitWrite could cause a deadlock.
This commit is contained in:
@@ -500,9 +500,6 @@ void Ledger::saveAcceptedLedger(Job&, bool fromConsensus)
|
|||||||
db->executeSQL("COMMIT TRANSACTION;");
|
db->executeSQL("COMMIT TRANSACTION;");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!theConfig.RUN_STANDALONE)
|
|
||||||
theApp->getHashedObjectStore().waitWrite(); // wait until all nodes are written
|
|
||||||
|
|
||||||
{
|
{
|
||||||
ScopedLock sl(theApp->getLedgerDB()->getDBLock());
|
ScopedLock sl(theApp->getLedgerDB()->getDBLock());
|
||||||
theApp->getLedgerDB()->getDB()->executeSQL(boost::str(addLedger %
|
theApp->getLedgerDB()->getDB()->executeSQL(boost::str(addLedger %
|
||||||
|
|||||||
Reference in New Issue
Block a user