waitWrite could cause a deadlock.

This commit is contained in:
JoelKatz
2013-03-12 11:30:23 -07:00
parent e9324204ef
commit c9161b9b1c

View File

@@ -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 %