Skip to main content

record_inverse_applied

Function record_inverse_applied 

Source
fn record_inverse_applied(
    state: &AppState,
    saga: &UnresolvedSaga,
    step: &UnresolvedStep,
    next_idx: u32,
    inv_name: &str,
    inverse: &Command,
    events: &[Event],
)
Expand description

The inverse ran: record it, then mark the ORIGINAL forward step compensated so a second crash-recovery startup doesn’t re-replay its inverse. Idempotent: the UPDATE only fires on rows currently in succeeded state.