feat(ha-config-bootstrap): wire repl_wait_majority_ack into persist_wal_sync_append (task 7.6)
This commit is contained in:
parent
85c8565957
commit
684d3b6608
2 changed files with 21 additions and 8 deletions
|
|
@ -181,7 +181,7 @@ Dependency order: startup validation (D) unblocks vtaskmgr before election (A);
|
|||
- _Requirements: 5.6, 5.7_
|
||||
- _Boundary: Persistence Layer (persist.c, persist.h)_
|
||||
|
||||
- [ ] 7.6 Wire majority-commit into persist_wal_sync_append()
|
||||
- [x] 7.6 Wire majority-commit into persist_wal_sync_append()
|
||||
- In `persist_wal_sync_append()`: after local write + fsync for `WAL_JOB_SUBMIT`, `WAL_JOB_START`, `WAL_JOB_FINISH`, `WAL_QUEUE_CHANGE` → call `repl_broadcast(c, OP_walAck, payload, len)` + `repl_wait_majority_ack(c, commit_timeout_ms, OP_walAck)` → on quorum advance `committed_lsn`
|
||||
- `WAL_HOST_STATE`, `WAL_CHECKPOINT_REF` bypass to `persist_wal_async()` (unchanged)
|
||||
- `make test` passes; integration test verifies committed WAL entries survive failover
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue