feat(raft-library): task 6.1 — raft_state_t field in ha_state_t, raft_init with no-op stubs
This commit is contained in:
parent
6bdf7edacf
commit
b77525deb0
3 changed files with 54 additions and 1 deletions
|
|
@ -140,7 +140,7 @@
|
|||
|
||||
- [ ] 6. (P) Controller adapter: wire raft.h into ha.c
|
||||
_Depends: 3_
|
||||
- [ ] 6.1 Add raft_state_t to ha_state_t and initialize at startup
|
||||
- [x] 6.1 Add raft_state_t to ha_state_t and initialize at startup
|
||||
- Add `#include "raft/raft.h"` to `ha.h`; add `raft_state_t raft` field to `ha_state_t`
|
||||
- In the ha initialization path, call `raft_init(&ha->raft, &cfg)` with term/voted_for loaded from `ha_persist_load()`, all ha-implemented callbacks, and `ha_state_t*` as context
|
||||
- `/xce-build controller` compiles without errors after the change
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue