MCPcopy Create free account
hub / github.com/ElementsProject/elements / InsertInto

Method InsertInto

src/leveldb/db/write_batch.cc:132–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130} // namespace
131
132Status WriteBatchInternal::InsertInto(const WriteBatch* b, MemTable* memtable) {
133 MemTableInserter inserter;
134 inserter.sequence_ = WriteBatchInternal::Sequence(b);
135 inserter.mem_ = memtable;
136 return b->Iterate(&inserter);
137}
138
139void WriteBatchInternal::SetContents(WriteBatch* b, const Slice& contents) {
140 assert(contents.size() >= kHeader);

Callers

nothing calls this directly

Calls 1

IterateMethod · 0.45

Tested by

no test coverage detected