feat(ha-repl-hardening): wire config push from decision loop (task 3.3)

ha_dispatch_repl_action_for_standby() calls push_config_to_standbys()
when PUSH_CONFIG decision. Hook seam for unit tests. Wired into
repl_ack_decode_and_dispatch after ha_process_standby_state.
oldest_wal_lsn=0 placeholder documented for task 3.4.
This commit is contained in:
Rongsong Shen 2026-06-04 17:23:46 +00:00
parent a475ef621f
commit d1c7872d73
4 changed files with 258 additions and 1 deletions

View file

@ -90,7 +90,7 @@
- _Boundary: Primary Heartbeat Handler (ha.c)_
- _Depends: 3.1_
- [ ] 3.3 Trigger per-standby config push from decision loop
- [x] 3.3 Trigger per-standby config push from decision loop
- When `standby_tag < committed_tag`, call `push_config_to_standbys()` targeting the specific standby
- Reuse existing config push path; trigger is now heartbeat decision loop instead of `handle_ctrlhello`
- After config push, primary skips further decisions for this standby until the next heartbeat reply confirms the updated tag