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

Method allocate_segment_id

nodedb/src/engine/array/store/catalog.rs:137–141  ·  view source on GitHub ↗

Allocate the next segment file name and bump the sequence.

(&mut self)

Source from the content-addressed store, hash-verified

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;

Callers 2

prepare_flushMethod · 0.80
rewrite_segmentFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected