Skip to content

Commit

Permalink
raft: add learner field to progress stringer
Browse files Browse the repository at this point in the history
  • Loading branch information
jingyih committed Apr 12, 2019
1 parent c7c6894 commit 30034e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion raft/progress.go
Expand Up @@ -185,7 +185,8 @@ func (pr *Progress) needSnapshotAbort() bool {
}

func (pr *Progress) String() string {
return fmt.Sprintf("next = %d, match = %d, state = %s, waiting = %v, pendingSnapshot = %d", pr.Next, pr.Match, pr.State, pr.IsPaused(), pr.PendingSnapshot)
return fmt.Sprintf("next = %d, match = %d, state = %s, waiting = %v, pendingSnapshot = %d, recentActive = %v, isLearner = %v",
pr.Next, pr.Match, pr.State, pr.IsPaused(), pr.PendingSnapshot, pr.RecentActive, pr.IsLearner)
}

type inflights struct {
Expand Down

0 comments on commit 30034e5

Please sign in to comment.