forked from lei.chen/myxce
docs(ha-single-leader-role): sync steering + contributor docs to three-state model + own-term gate (task 6.1)
This commit is contained in:
parent
93dfc02717
commit
dbc631664d
6 changed files with 9 additions and 11 deletions
|
|
@ -37,7 +37,7 @@ The file `raft/raft.tla` contains Diego Ongaro's TLA+ specification of the Raft
|
|||
| TLA+ Variable | XCE Code | Location |
|
||||
|--------------|----------|----------|
|
||||
| `currentTerm[i]` | `ha->term` (_Atomic uint64_t) | `ha.h:139` |
|
||||
| `state[i]` ∈ {Follower,Candidate,Leader} | `ha->role` ∈ {INIT,ELECTING,PRIMARY_COMMITTING,PRIMARY,STANDBY} | `ha.h:139` |
|
||||
| `state[i]` ∈ {Follower,Candidate,Leader} | `ha->role` ∈ {INIT,ELECTING,PRIMARY,STANDBY} | `ha.h:139` |
|
||||
| `votedFor[i]` | `ha->voted_for_name[XCE_MAXNAME_LEN]` | `ha.h:161` |
|
||||
| `log[i]` | WAL segments in `persist->wal_path` | `persist.c` |
|
||||
| `commitIndex[i]` | `persist->committed_lsn` (_Atomic uint64_t) | `persist.h` |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue