From 510dd048ba01fe8d9250c6102231c18750bfa6dd Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Fri, 19 Apr 2013 01:57:40 -0700 Subject: [PATCH] Sorry, I broke the unit tests. --- src/cpp/ripple/HashedObject.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/cpp/ripple/HashedObject.cpp b/src/cpp/ripple/HashedObject.cpp index 95ad26374f..8fa64cf331 100644 --- a/src/cpp/ripple/HashedObject.cpp +++ b/src/cpp/ripple/HashedObject.cpp @@ -94,11 +94,11 @@ void HashedObjectStore::bulkWrite() { Database* db = theApp->getHashNodeDB()->getDB(); - static SqliteStatement pStB(db->getSqliteDB(), "BEGIN TRANSACTION;", true); - static SqliteStatement pStE(db->getSqliteDB(), "END TRANSACTION;", true); + static SqliteStatement pStB(db->getSqliteDB(), "BEGIN TRANSACTION;", !theConfig.RUN_STANDALONE); + static SqliteStatement pStE(db->getSqliteDB(), "END TRANSACTION;", !theConfig.RUN_STANDALONE); static SqliteStatement pSt(db->getSqliteDB(), "INSERT OR IGNORE INTO CommittedObjects " - "(Hash,ObjType,LedgerIndex,Object) VALUES (?, ?, ?, ?);", true); + "(Hash,ObjType,LedgerIndex,Object) VALUES (?, ?, ?, ?);", !theConfig.RUN_STANDALONE); pStB.step(); pStB.reset(); @@ -170,7 +170,6 @@ void HashedObjectStore::bulkWrite() HashedObject::pointer HashedObjectStore::retrieve(const uint256& hash) { - HashedObject::pointer obj = mCache.fetch(hash); if (obj) return obj;