Skip to main content

BatchCommit

Trait BatchCommit 

Source
pub trait BatchCommit {
    // Required method
    fn commit_batch(&self, ops: Vec<RedoOp>, snapshot_ts: u64) -> Result<u64>;
}
Expand description

Per-batch commit sink for CALL { … } IN TRANSACTIONS (ADR-0210). Called by the executor after each successful batch with the batch’s drained redo ops and the snapshot timestamp they were built against; the implementation commits them durably (WAL + apply) before the next batch starts, so live scratch state stays bounded by one batch. Returns the commit timestamp the batch was applied at — the caller rebases its scratch onto it, so only the sink (which owns the commit) ever reads the base graph’s clock.

Required Methods§

Source

fn commit_batch(&self, ops: Vec<RedoOp>, snapshot_ts: u64) -> Result<u64>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§