Skip to main content

fire_phase_triggers

Function fire_phase_triggers 

Source
pub fn fire_phase_triggers(
    registry: &TriggerRegistry,
    phase: &str,
    diff: TriggerDiff,
    reader: &dyn GraphReader,
    writer: &dyn GraphWriter,
    procedures: &ProcedureRegistry,
)
Expand description

Fire every registered trigger of phase against the given diff. Errors are logged and swallowed — the original tx has already committed (for after / afterAsync / rollback) or already aborted (for rollback), so a failing trigger can’t undo anything. Used as the workhorse for the three non-blocking phases; before has its own entry point with abort semantics.