Fix standalone mode.

This commit is contained in:
JoelKatz
2013-03-06 17:04:56 -08:00
parent 253485e3db
commit 813e75bdb5

View File

@@ -502,7 +502,8 @@ void Ledger::saveAcceptedLedger(Job&, bool fromConsensus)
db->executeSQL("COMMIT TRANSACTION;");
}
theApp->getHashedObjectStore().waitWrite(); // wait until all nodes are written
if (!theConfig.RUN_STANDALONE)
theApp->getHashedObjectStore().waitWrite(); // wait until all nodes are written
{
ScopedLock sl(theApp->getLedgerDB()->getDBLock());