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

Method try_seek_to_initial_offset

crates/commitlog/src/commitlog.rs:952–956  ·  view source on GitHub ↗

If we're still looking for the initial commit, try to use the offset index to advance the segment reader.

(&self, segment: &mut segment::Reader<R::SegmentReader>)

Source from the content-addressed store, hash-verified

950 /// If we're still looking for the initial commit, try to use the offset
951 /// index to advance the segment reader.
952 fn try_seek_to_initial_offset(&self, segment: &mut segment::Reader<R::SegmentReader>) {
953 if let CommitInfo::Initial { next_offset } = &self.last_commit {
954 try_seek_using_offset_index(&self.segments.repo, segment, *next_offset);
955 }
956 }
957}
958
959impl<R: Repo> Iterator for Commits<R> {

Callers 1

nextMethod · 0.80

Calls 1

Tested by

no test coverage detected