| 130 | } // namespace |
| 131 | |
| 132 | Status 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 | |
| 139 | void WriteBatchInternal::SetContents(WriteBatch* b, const Slice& contents) { |
| 140 | assert(contents.size() >= kHeader); |