Skip to main content

finish_commit

Function finish_commit 

Source
pub fn finish_commit(
    guard: CommitGuard,
    apply: impl FnOnce(&mut CommitGuard) -> Result<(), InternalError>,
) -> Result<(), InternalError>
Expand description

Apply commit ops and clear the marker regardless of outcome.

The apply closure performs mechanical marker application only. Any in-process rollback guard used by the closure is non-authoritative transitional cleanup; durable authority remains the commit marker protocol.