mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Slight refactor of the boundary between the node db and its backend(s).
This commit is contained in:
@@ -24,18 +24,6 @@ public:
|
||||
return mName;
|
||||
}
|
||||
|
||||
bool store(NodeObject::ref object)
|
||||
{
|
||||
ScopedLock sl(mDb->getDBLock());
|
||||
static SqliteStatement pSt(mDb->getDB()->getSqliteDB(),
|
||||
"INSERT OR IGNORE INTO CommittedObjects "
|
||||
"(Hash,ObjType,LedgerIndex,Object) VALUES (?, ?, ?, ?);");
|
||||
bind(pSt, object);
|
||||
pSt.step();
|
||||
pSt.reset();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool bulkStore(const std::vector< NodeObject::pointer >& objects)
|
||||
{
|
||||
ScopedLock sl(mDb->getDBLock());
|
||||
|
||||
Reference in New Issue
Block a user