mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-30 07:55:51 +00:00
Fix NodeObject retrieve in KeyvaDB backend
This commit is contained in:
@@ -33,19 +33,17 @@ public:
|
||||
return m_path.toStdString ();
|
||||
}
|
||||
|
||||
void writeObject (NodeObject const& object)
|
||||
void writeObject (NodeObject::ref object)
|
||||
{
|
||||
m_db->put (
|
||||
object.getHash ().begin (),
|
||||
&object.getData () [0],
|
||||
object.getData ().size ());
|
||||
Blob blob (toBlob (object));
|
||||
m_db->put (object->getHash ().begin (), &blob [0], blob.size ());
|
||||
}
|
||||
|
||||
bool bulkStore (std::vector <NodeObject::pointer> const& objs)
|
||||
{
|
||||
for (size_t i = 0; i < objs.size (); ++i)
|
||||
{
|
||||
writeObject (*objs [i]);
|
||||
writeObject (objs [i]);
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user