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

Method existing_segment_offsets

crates/commitlog/src/lib.rs:359–361  ·  view source on GitHub ↗

Get a list of segment offsets, sorted in ascending order.

(&self)

Source from the content-addressed store, hash-verified

357
358 /// Get a list of segment offsets, sorted in ascending order.
359 pub fn existing_segment_offsets(&self) -> io::Result<Vec<u64>> {
360 self.inner.read().unwrap().repo.existing_offsets()
361 }
362
363 /// Compress the segments at the offsets provided, marking them as immutable.
364 ///

Callers 2

compressionFunction · 0.45

Calls 3

existing_offsetsMethod · 0.45
unwrapMethod · 0.45
readMethod · 0.45

Tested by 1

compressionFunction · 0.36