From af9f352fe377b73155241d47ba6e15ff4f9096b0 Mon Sep 17 00:00:00 2001 From: Jonathan Boulle Date: Fri, 11 Dec 2015 15:06:11 -0800 Subject: [PATCH] raft: update RecentActive name in comments Noticed when retrospectively reviewing #3976 that a couple of places were missed when the variable was renamed. --- raft/progress.go | 4 ++-- raft/raft.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/raft/progress.go b/raft/progress.go index 8a1fd9527..33cc5dafd 100644 --- a/raft/progress.go +++ b/raft/progress.go @@ -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. diff --git a/raft/raft.go b/raft/raft.go index 5a4f52319..d26b9a830 100644 --- a/raft/raft.go +++ b/raft/raft.go @@ -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