From c9161b9b1cc21fc87ccbb34378a12760d60f2878 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Tue, 12 Mar 2013 11:30:23 -0700 Subject: [PATCH] waitWrite could cause a deadlock. --- src/cpp/ripple/Ledger.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/cpp/ripple/Ledger.cpp b/src/cpp/ripple/Ledger.cpp index 484c4e617..3a8187fe6 100644 --- a/src/cpp/ripple/Ledger.cpp +++ b/src/cpp/ripple/Ledger.cpp @@ -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 %