feat(raft-library): task 6.2 — real raft callbacks in ha.c; fix double-free + dead stubs

This commit is contained in:
Rongsong Shen 2026-05-31 07:53:00 +00:00
parent b77525deb0
commit 8f0d2d55c3
3 changed files with 552 additions and 82 deletions

View file

@ -147,7 +147,7 @@
- _Requirements: 9.1, 9.2_
- _Boundary: ha.h, ha.c adapter init_
- [ ] 6.2 Implement all raft_callbacks_t callbacks in ha.c
- [x] 6.2 Implement all raft_callbacks_t callbacks in ha.c
- `on_send_vote_request`: encode capnp `VoteRequest` and send via existing `endpoint_t`/iomgr path
- `on_become_leader`: invoke existing ha leadership promotion path (phase2 trigger)
- `on_become_follower`: invoke existing ha standby transition path