feat(ha-config-bootstrap): implement committed_config_tag and config quorum commit (task 8.1)

This commit is contained in:
Rongsong Shen 2026-05-28 14:52:29 +00:00
parent 684d3b6608
commit c0cfc1cf83
3 changed files with 20 additions and 3 deletions

View file

@ -156,6 +156,7 @@ typedef struct {
_Atomic uint64_t last_known_committed_lsn; /* Req 5: from primary heartbeats */
sem_t heartbeat_seen; /* Req 1: posted by heartbeat handler during CTRL_INIT */
uint64_t last_known_committed_config_tag; /* Req 8: from primary heartbeats */
_Atomic uint64_t committed_config_tag; /* Req 8.1: set on quorum ACK */
} ha_state_t;
/* ── Public API ────────────────────────────────────────────── */