- Add ha_compute_safe_committed_lsn() in ha.c: collects LSNs from granted voters (self + peers), sorts descending, picks index floor(n_granted/2) for majority-threshold value - Wire into raft_cb_become_leader: compute safe_lsn/safe_tag from ha->elect_ctx after winning election, call persist_truncate_wal_above - Four unit tests in test_ha_evaluate_committing.c: voters [99,100]+self=100 → 100; voters [50,51]+self=100 → 51; single-node → 0; denied voter excluded → self-only |
||
|---|---|---|
| .. | ||
| settings | ||
| specs | ||
| steering | ||