Skip to content

Commit

Permalink
cli: fix cluster raft failed when the first node in list fails #74
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkernel authored and BohuTANG committed Aug 5, 2019
1 parent 4092751 commit 850c7d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cli/cmd/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ func clusterRaftCommandFn(cmd *cobra.Command, args []string) {
if rsp, err := callx.GetRaftStatusRPC(node); err == nil {
raft = rsp.State
stats = rsp.Stats
} else {
stats = &model.RaftStats{}
}
}

Expand Down

0 comments on commit 850c7d2

Please sign in to comment.