Expand description
Legacy → new-protocol cutover machinery.
Three concerns live here:
extract_pre_cutover_seedwalks a live legacySystemContextHandleand produces aPreCutoverSeed.CutoverGatelatches once legacy has crossed into the new version, extracts the seed, and dispatches it into the new coordinator.forward_legacy_timeout_votesandforward_legacy_epoch_changestail the legacy event stream and bridge those events into the coordinator’s client API so the new protocol can form TC2s and refresh its peer set at epoch boundaries.
Structs§
- Cutover
Gate - Latches once legacy crosses into the new protocol. The single API
production and tests share: poll
checkon every coordinator loop iteration; once it returnstruethe cutover has happened and subsequent calls short-circuit.
Functions§
- extract_
pre_ cutover_ seed - Walk legacy state to produce a
PreCutoverSeed;Noneon a broken walk. - forward_
legacy_ epoch_ changes - Forward legacy epoch transitions into
bump_network_epoch.epoch_height == 0disables forwarding. - forward_
legacy_ timeout_ votes - Forward legacy
TimeoutVote2events into the new-protocol timeout collectors so the first new leader can form TC2 at the boundary.