mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Sorry, I broke the unit tests.
This commit is contained in:
@@ -94,11 +94,11 @@ void HashedObjectStore::bulkWrite()
|
|||||||
|
|
||||||
{
|
{
|
||||||
Database* db = theApp->getHashNodeDB()->getDB();
|
Database* db = theApp->getHashNodeDB()->getDB();
|
||||||
static SqliteStatement pStB(db->getSqliteDB(), "BEGIN TRANSACTION;", true);
|
static SqliteStatement pStB(db->getSqliteDB(), "BEGIN TRANSACTION;", !theConfig.RUN_STANDALONE);
|
||||||
static SqliteStatement pStE(db->getSqliteDB(), "END TRANSACTION;", true);
|
static SqliteStatement pStE(db->getSqliteDB(), "END TRANSACTION;", !theConfig.RUN_STANDALONE);
|
||||||
static SqliteStatement pSt(db->getSqliteDB(),
|
static SqliteStatement pSt(db->getSqliteDB(),
|
||||||
"INSERT OR IGNORE INTO CommittedObjects "
|
"INSERT OR IGNORE INTO CommittedObjects "
|
||||||
"(Hash,ObjType,LedgerIndex,Object) VALUES (?, ?, ?, ?);", true);
|
"(Hash,ObjType,LedgerIndex,Object) VALUES (?, ?, ?, ?);", !theConfig.RUN_STANDALONE);
|
||||||
|
|
||||||
pStB.step();
|
pStB.step();
|
||||||
pStB.reset();
|
pStB.reset();
|
||||||
@@ -170,7 +170,6 @@ void HashedObjectStore::bulkWrite()
|
|||||||
|
|
||||||
HashedObject::pointer HashedObjectStore::retrieve(const uint256& hash)
|
HashedObject::pointer HashedObjectStore::retrieve(const uint256& hash)
|
||||||
{
|
{
|
||||||
|
|
||||||
HashedObject::pointer obj = mCache.fetch(hash);
|
HashedObject::pointer obj = mCache.fetch(hash);
|
||||||
if (obj)
|
if (obj)
|
||||||
return obj;
|
return obj;
|
||||||
|
|||||||
Reference in New Issue
Block a user