(&mut self, seg: SegmentRef)
| 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. |