Skip to main content

cancel_carried_reconfiguration

Function cancel_carried_reconfiguration 

Source
fn cancel_carried_reconfiguration(
    config: &mut ClusterConfig,
) -> Option<ReconfigurationAudit>
Expand description

Retains a stale in-progress reconfiguration record carried by a legacy-path config write as cancelled, returning the audit intent to declare with the write.

The legacy ALTER paths (controller gate off) change the realized config directly and know nothing about reconfiguration records. Nothing on those paths ever settles a record, and carrying an in-progress one forward invites a bogus revival, up to a forced cut-over to an obsolete target, if the gate is turned back on later. A record can only be in progress here if it was written while the gate was on.