Allocate the next segment file name and bump the sequence.
(&mut self)
| 135 | |
| 136 | /// Allocate the next segment file name and bump the sequence. |
| 137 | pub fn allocate_segment_id(&mut self) -> String { |
| 138 | let seq = self.next_segment_seq; |
| 139 | self.next_segment_seq += 1; |
| 140 | format!("{seq:010}.ndas") |
| 141 | } |
| 142 | |
| 143 | /// Register a freshly-flushed (or freshly-merged) segment. The file |
| 144 | /// must already exist on disk. Updates the manifest in-memory only; |
no outgoing calls
no test coverage detected