MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / append

Method append

nodedb/src/engine/array/store/manifest.rs:125–128  ·  view source on GitHub ↗
(&mut self, seg: SegmentRef)

Source from the content-addressed store, hash-verified

123 }
124
125 pub fn append(&mut self, seg: SegmentRef) {
126 self.durable_lsn = self.durable_lsn.max(seg.flush_lsn);
127 self.segments.push(seg);
128 }
129
130 /// Replace `removed` ids with the new `added` segments. Used by the
131 /// compaction merger after it has produced a replacement segment.

Callers 5

install_segmentMethod · 0.45
drainMethod · 0.45

Calls 1

pushMethod · 0.45