MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / reset

Method reset

crates/commitlog/src/segment.rs:327–331  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

325 }
326
327 fn reset(&mut self) {
328 self.candidate_byte_offset = 0;
329 self.candidate_min_tx_offset = TxOffset::default();
330 self.bytes_since_last_index = 0;
331 }
332
333 /// Either append to index or save offsets to append at future fsync
334 pub fn append_after_commit(

Callers 2

append_internalMethod · 0.45
ftruncateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected