mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
raft: update RecentActive name in comments
Noticed when retrospectively reviewing #3976 that a couple of places were missed when the variable was renamed.
This commit is contained in:
parent
8eaa8f9e0b
commit
af9f352fe3
@ -56,9 +56,9 @@ type Progress struct {
|
||||
// is reported to be failed.
|
||||
PendingSnapshot uint64
|
||||
|
||||
// recentActive is true if the progress is recently active. Receiving any messages
|
||||
// RecentActive is true if the progress is recently active. Receiving any messages
|
||||
// from the corresponding follower indicates the progress is active.
|
||||
// recentActive can be reset to false after an election timeout.
|
||||
// RecentActive can be reset to false after an election timeout.
|
||||
RecentActive bool
|
||||
|
||||
// inflights is a sliding window for the inflight messages.
|
||||
|
@ -862,7 +862,7 @@ func (r *raft) isElectionTimeout() bool {
|
||||
// checkQuorumActive returns true if the quorum is active from
|
||||
// the view of the local raft state machine. Otherwise, it returns
|
||||
// false.
|
||||
// checkQuorumActive also reset all recentActive to false.
|
||||
// checkQuorumActive also resets all RecentActive to false.
|
||||
func (r *raft) checkQuorumActive() bool {
|
||||
var act int
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user