Remove all entries pointing to a given segment (used when dropping a segment).
(&mut self, segment_id: u64)
| 136 | |
| 137 | /// Remove all entries pointing to a given segment (used when dropping a segment). |
| 138 | pub fn remove_segment(&mut self, segment_id: u64) { |
| 139 | self.inner.retain(|_, loc| loc.segment_id != segment_id); |
| 140 | } |
| 141 | |
| 142 | /// Serialize the index to bytes for checkpoint persistence. |
| 143 | pub fn to_bytes(&self) -> Result<Vec<u8>, ColumnarError> { |
no outgoing calls