Skip to main content

run_commit_phase

Function run_commit_phase 

Source
pub fn run_commit_phase(
    root: &Path,
    branch: &str,
    epoch_before: &GitOid,
    epoch_candidate: &GitOid,
) -> Result<CommitResult, CommitError>
Expand description

Run COMMIT phase:

  1. CAS move refs/manifold/epoch/current old->new
  2. CAS move refs/heads/<branch> old->new
  3. Persist merge-state at each transition (atomic write + fsync)