Skip to main content

RefCommitter

Trait RefCommitter 

Source
pub trait RefCommitter: Send + Sync {
    // Required method
    fn commit_records(
        &self,
        records: &[OpRecord],
        scope: Option<&str>,
    ) -> Result<()>;
}
Expand description

The write-side dual of RefReconciler (heddle#330 §2.2 “The write chokepoint”): commits the caller’s ref-carrying oplog record batch (phase 4) before the canonical publish (phase 5), so no ref is published without a preceding replayable record. The records are typed (OpRecord lives in object-model, which refs already names). Injected via RefManager::with_committer.

Required Methods§

Source

fn commit_records( &self, records: &[OpRecord], scope: Option<&str>, ) -> Result<()>

Append the ref-carrying OpRecord batch under the oplog write lock — phase 4, the commit point.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§