mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdserver: intentionally set the memberID as 0 in corruption alarm
Signed-off-by: Benjamin Wang <wachao@vmware.com>
This commit is contained in:
@@ -207,8 +207,12 @@ func (s *EtcdServer) checkHashKV() error {
|
||||
return
|
||||
}
|
||||
alarmed = true
|
||||
// It isn't clear which member's data is corrupted, so we
|
||||
// intentionally set the memberID as 0. We will identify
|
||||
// the corrupted members using quorum in 3.6. Please see
|
||||
// discussion in https://github.com/etcd-io/etcd/pull/14828.
|
||||
a := &pb.AlarmRequest{
|
||||
MemberID: uint64(id),
|
||||
MemberID: 0,
|
||||
Action: pb.AlarmRequest_ACTIVATE,
|
||||
Alarm: pb.AlarmType_CORRUPT,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user