feat(ha-term-safety): on_commit_advanced barrier trigger + commit-gate ownership (task 2.4)
This commit is contained in:
parent
2c5d298cb5
commit
3470bdfb71
6 changed files with 363 additions and 9 deletions
|
|
@ -803,6 +803,15 @@ int ha_cb_send_append_entries_for_test(ha_state_t *ha, int peer_idx,
|
|||
uint64_t prev_log_index,
|
||||
uint64_t prev_log_term,
|
||||
uint64_t leader_commit, int n_entries);
|
||||
|
||||
/*
|
||||
* ha_cb_commit_advanced_for_test (ha-term-safety task 2.4): invoke the WIRED
|
||||
* on_commit_advanced callback directly so a unit test exercises the real
|
||||
* commit-source trigger — feeding the raft library's current-term-gated
|
||||
* commit_index into the cluster's synchronous commit barrier as the commit
|
||||
* source. TEST-ONLY.
|
||||
*/
|
||||
void ha_cb_commit_advanced_for_test(ha_state_t *ha, uint64_t commit_index);
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue