raft: support quorum check when raft is leader
If quorum check fails, the leader will step down to follower.
This commit is contained in:
@ -47,7 +47,7 @@ func max(a, b uint64) uint64 {
|
||||
}
|
||||
|
||||
func IsLocalMsg(m pb.Message) bool {
|
||||
return m.Type == pb.MsgHup || m.Type == pb.MsgBeat || m.Type == pb.MsgUnreachable || m.Type == pb.MsgSnapStatus
|
||||
return m.Type == pb.MsgHup || m.Type == pb.MsgBeat || m.Type == pb.MsgUnreachable || m.Type == pb.MsgSnapStatus || m.Type == pb.MsgCheckQuorum
|
||||
}
|
||||
|
||||
func IsResponseMsg(m pb.Message) bool {
|
||||
|
Reference in New Issue
Block a user