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

Method set_epoch

crates/commitlog/src/segment.rs:188–190  ·  view source on GitHub ↗

Update the epoch. The caller must ensure that: - The new epoch is greater than the current epoch. - [`Self::commit`] has been called as appropriate.

(&mut self, epoch: u64)

Source from the content-addressed store, hash-verified

186 /// - [`Self::commit`] has been called as appropriate.
187 ///
188 pub fn set_epoch(&mut self, epoch: u64) {
189 self.commit.epoch = epoch;
190 }
191
192 /// The smallest transaction offset in this segment.
193 pub fn min_tx_offset(&self) -> u64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected