|
|
@@ -600,7 +600,7 @@ func stepLeader(r *raft, m pb.Message) {
|
|
|
}
|
|
|
switch m.Type {
|
|
|
case pb.MsgAppResp:
|
|
|
- pr.recentActive = true
|
|
|
+ pr.RecentActive = true
|
|
|
|
|
|
if m.Reject {
|
|
|
r.logger.Debugf("%x received msgApp rejection(lastindex: %d) from %x for index %d",
|
|
|
@@ -635,7 +635,7 @@ func stepLeader(r *raft, m pb.Message) {
|
|
|
}
|
|
|
}
|
|
|
case pb.MsgHeartbeatResp:
|
|
|
- pr.recentActive = true
|
|
|
+ pr.RecentActive = true
|
|
|
|
|
|
// free one slot for the full inflights window to allow progress.
|
|
|
if pr.State == ProgressStateReplicate && pr.ins.full() {
|
|
|
@@ -867,11 +867,11 @@ func (r *raft) checkQuorumActive() bool {
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
- if r.prs[id].recentActive {
|
|
|
+ if r.prs[id].RecentActive {
|
|
|
act += 1
|
|
|
}
|
|
|
|
|
|
- r.prs[id].recentActive = false
|
|
|
+ r.prs[id].RecentActive = false
|
|
|
}
|
|
|
|
|
|
return act >= r.q()
|