mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 23:15:52 +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;");
|
||||
}
|
||||
|
||||
if (!theConfig.RUN_STANDALONE)
|
||||
theApp->getHashedObjectStore().waitWrite(); // wait until all nodes are written
|
||||
|
||||
{
|
||||
ScopedLock sl(theApp->getLedgerDB()->getDBLock());
|
||||
theApp->getLedgerDB()->getDB()->executeSQL(boost::str(addLedger %
|
||||
|
||||
Reference in New Issue
Block a user