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

Method same_offset_as

crates/commitlog/src/commitlog.rs:793–798  ·  view source on GitHub ↗

`true` if the last seen commit in self and the provided one have the same `min_tx_offset`.

(&self, commit: &StoredCommit)

Source from the content-addressed store, hash-verified

791 /// `true` if the last seen commit in self and the provided one have the
792 /// same `min_tx_offset`.
793 fn same_offset_as(&self, commit: &StoredCommit) -> bool {
794 let Self::LastSeen { tx_range, .. } = self else {
795 return false;
796 };
797 tx_range.start == commit.min_tx_offset
798 }
799
800 /// `true` if the last seen commit in self and the provided one have the
801 /// same `checksum`.

Callers 1

next_commitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected