feat(ha-term-safety): route AppendEntries intake through library + leaderCommit wire (task 3.2)

This commit is contained in:
Rongsong Shen 2026-06-22 08:42:35 +00:00
parent 6a519a928b
commit 754e586f8f
10 changed files with 508 additions and 168 deletions

View file

@ -360,6 +360,10 @@ struct wal_catchup_entry {
uint64_t term;
uint64_t prev_log_index;
uint64_t prev_log_term;
/* ha-term-safety task 3.2 (Req 2.5/4.1): the leader's commit index carried on
* the AppendEntries so the standby intake passes it into
* raft_on_append_entries_request. Wire field leaderCommit @7. */
uint64_t leader_commit;
};
/* ── Persistence Cap'n Proto mapped types (P0-9) ─────────────────────