diff --git a/pkg/pdpb/pdpb.pb.go b/pkg/pdpb/pdpb.pb.go index 6eda98061..ca0c89fee 100644 --- a/pkg/pdpb/pdpb.pb.go +++ b/pkg/pdpb/pdpb.pb.go @@ -74,7 +74,7 @@ func (x ErrorType) String() string { return proto.EnumName(ErrorType_name, int32(x)) } func (ErrorType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{0} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{0} } type CheckPolicy int32 @@ -100,7 +100,7 @@ func (x CheckPolicy) String() string { return proto.EnumName(CheckPolicy_name, int32(x)) } func (CheckPolicy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{1} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{1} } type OperatorStatus int32 @@ -132,7 +132,7 @@ func (x OperatorStatus) String() string { return proto.EnumName(OperatorStatus_name, int32(x)) } func (OperatorStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{2} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{2} } type QueryKind int32 @@ -185,7 +185,7 @@ func (x QueryKind) String() string { return proto.EnumName(QueryKind_name, int32(x)) } func (QueryKind) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{3} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{3} } type WatchGlobalConfigRequest struct { @@ -198,7 +198,7 @@ func (m *WatchGlobalConfigRequest) Reset() { *m = WatchGlobalConfigReque func (m *WatchGlobalConfigRequest) String() string { return proto.CompactTextString(m) } func (*WatchGlobalConfigRequest) ProtoMessage() {} func (*WatchGlobalConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{0} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{0} } func (m *WatchGlobalConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -238,7 +238,7 @@ func (m *WatchGlobalConfigResponse) Reset() { *m = WatchGlobalConfigResp func (m *WatchGlobalConfigResponse) String() string { return proto.CompactTextString(m) } func (*WatchGlobalConfigResponse) ProtoMessage() {} func (*WatchGlobalConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{1} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{1} } func (m *WatchGlobalConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -285,7 +285,7 @@ func (m *StoreGlobalConfigRequest) Reset() { *m = StoreGlobalConfigReque func (m *StoreGlobalConfigRequest) String() string { return proto.CompactTextString(m) } func (*StoreGlobalConfigRequest) ProtoMessage() {} func (*StoreGlobalConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{2} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{2} } func (m *StoreGlobalConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -332,7 +332,7 @@ func (m *StoreGlobalConfigResponse) Reset() { *m = StoreGlobalConfigResp func (m *StoreGlobalConfigResponse) String() string { return proto.CompactTextString(m) } func (*StoreGlobalConfigResponse) ProtoMessage() {} func (*StoreGlobalConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{3} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{3} } func (m *StoreGlobalConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -379,7 +379,7 @@ func (m *LoadGlobalConfigRequest) Reset() { *m = LoadGlobalConfigRequest func (m *LoadGlobalConfigRequest) String() string { return proto.CompactTextString(m) } func (*LoadGlobalConfigRequest) ProtoMessage() {} func (*LoadGlobalConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{4} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{4} } func (m *LoadGlobalConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -426,7 +426,7 @@ func (m *LoadGlobalConfigResponse) Reset() { *m = LoadGlobalConfigRespon func (m *LoadGlobalConfigResponse) String() string { return proto.CompactTextString(m) } func (*LoadGlobalConfigResponse) ProtoMessage() {} func (*LoadGlobalConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{5} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{5} } func (m *LoadGlobalConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -475,7 +475,7 @@ func (m *GlobalConfigItem) Reset() { *m = GlobalConfigItem{} } func (m *GlobalConfigItem) String() string { return proto.CompactTextString(m) } func (*GlobalConfigItem) ProtoMessage() {} func (*GlobalConfigItem) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{6} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{6} } func (m *GlobalConfigItem) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -539,7 +539,7 @@ func (m *RequestHeader) Reset() { *m = RequestHeader{} } func (m *RequestHeader) String() string { return proto.CompactTextString(m) } func (*RequestHeader) ProtoMessage() {} func (*RequestHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{7} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{7} } func (m *RequestHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -595,7 +595,7 @@ func (m *ResponseHeader) Reset() { *m = ResponseHeader{} } func (m *ResponseHeader) String() string { return proto.CompactTextString(m) } func (*ResponseHeader) ProtoMessage() {} func (*ResponseHeader) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{8} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{8} } func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -650,7 +650,7 @@ func (m *Error) Reset() { *m = Error{} } func (m *Error) String() string { return proto.CompactTextString(m) } func (*Error) ProtoMessage() {} func (*Error) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{9} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{9} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -706,7 +706,7 @@ func (m *TsoRequest) Reset() { *m = TsoRequest{} } func (m *TsoRequest) String() string { return proto.CompactTextString(m) } func (*TsoRequest) ProtoMessage() {} func (*TsoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{10} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{10} } func (m *TsoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -771,7 +771,7 @@ func (m *Timestamp) Reset() { *m = Timestamp{} } func (m *Timestamp) String() string { return proto.CompactTextString(m) } func (*Timestamp) ProtoMessage() {} func (*Timestamp) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{11} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{11} } func (m *Timestamp) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -834,7 +834,7 @@ func (m *TsoResponse) Reset() { *m = TsoResponse{} } func (m *TsoResponse) String() string { return proto.CompactTextString(m) } func (*TsoResponse) ProtoMessage() {} func (*TsoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{12} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{12} } func (m *TsoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -897,7 +897,7 @@ func (m *BootstrapRequest) Reset() { *m = BootstrapRequest{} } func (m *BootstrapRequest) String() string { return proto.CompactTextString(m) } func (*BootstrapRequest) ProtoMessage() {} func (*BootstrapRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{13} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{13} } func (m *BootstrapRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -959,7 +959,7 @@ func (m *BootstrapResponse) Reset() { *m = BootstrapResponse{} } func (m *BootstrapResponse) String() string { return proto.CompactTextString(m) } func (*BootstrapResponse) ProtoMessage() {} func (*BootstrapResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{14} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{14} } func (m *BootstrapResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1013,7 +1013,7 @@ func (m *IsBootstrappedRequest) Reset() { *m = IsBootstrappedRequest{} } func (m *IsBootstrappedRequest) String() string { return proto.CompactTextString(m) } func (*IsBootstrappedRequest) ProtoMessage() {} func (*IsBootstrappedRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{15} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{15} } func (m *IsBootstrappedRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1061,7 +1061,7 @@ func (m *IsBootstrappedResponse) Reset() { *m = IsBootstrappedResponse{} func (m *IsBootstrappedResponse) String() string { return proto.CompactTextString(m) } func (*IsBootstrappedResponse) ProtoMessage() {} func (*IsBootstrappedResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{16} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{16} } func (m *IsBootstrappedResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1115,7 +1115,7 @@ func (m *AllocIDRequest) Reset() { *m = AllocIDRequest{} } func (m *AllocIDRequest) String() string { return proto.CompactTextString(m) } func (*AllocIDRequest) ProtoMessage() {} func (*AllocIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{17} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{17} } func (m *AllocIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1163,7 +1163,7 @@ func (m *AllocIDResponse) Reset() { *m = AllocIDResponse{} } func (m *AllocIDResponse) String() string { return proto.CompactTextString(m) } func (*AllocIDResponse) ProtoMessage() {} func (*AllocIDResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{18} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{18} } func (m *AllocIDResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1218,7 +1218,7 @@ func (m *GetStoreRequest) Reset() { *m = GetStoreRequest{} } func (m *GetStoreRequest) String() string { return proto.CompactTextString(m) } func (*GetStoreRequest) ProtoMessage() {} func (*GetStoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{19} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{19} } func (m *GetStoreRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1274,7 +1274,7 @@ func (m *GetStoreResponse) Reset() { *m = GetStoreResponse{} } func (m *GetStoreResponse) String() string { return proto.CompactTextString(m) } func (*GetStoreResponse) ProtoMessage() {} func (*GetStoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{20} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{20} } func (m *GetStoreResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1336,7 +1336,7 @@ func (m *PutStoreRequest) Reset() { *m = PutStoreRequest{} } func (m *PutStoreRequest) String() string { return proto.CompactTextString(m) } func (*PutStoreRequest) ProtoMessage() {} func (*PutStoreRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{21} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{21} } func (m *PutStoreRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1391,7 +1391,7 @@ func (m *PutStoreResponse) Reset() { *m = PutStoreResponse{} } func (m *PutStoreResponse) String() string { return proto.CompactTextString(m) } func (*PutStoreResponse) ProtoMessage() {} func (*PutStoreResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{22} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{22} } func (m *PutStoreResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1447,7 +1447,7 @@ func (m *GetAllStoresRequest) Reset() { *m = GetAllStoresRequest{} } func (m *GetAllStoresRequest) String() string { return proto.CompactTextString(m) } func (*GetAllStoresRequest) ProtoMessage() {} func (*GetAllStoresRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{23} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{23} } func (m *GetAllStoresRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1502,7 +1502,7 @@ func (m *GetAllStoresResponse) Reset() { *m = GetAllStoresResponse{} } func (m *GetAllStoresResponse) String() string { return proto.CompactTextString(m) } func (*GetAllStoresResponse) ProtoMessage() {} func (*GetAllStoresResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{24} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{24} } func (m *GetAllStoresResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1557,7 +1557,7 @@ func (m *GetRegionRequest) Reset() { *m = GetRegionRequest{} } func (m *GetRegionRequest) String() string { return proto.CompactTextString(m) } func (*GetRegionRequest) ProtoMessage() {} func (*GetRegionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{25} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{25} } func (m *GetRegionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1618,7 +1618,7 @@ func (m *GetRegionResponse) Reset() { *m = GetRegionResponse{} } func (m *GetRegionResponse) String() string { return proto.CompactTextString(m) } func (*GetRegionResponse) ProtoMessage() {} func (*GetRegionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{26} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{26} } func (m *GetRegionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1694,7 +1694,7 @@ func (m *GetRegionByIDRequest) Reset() { *m = GetRegionByIDRequest{} } func (m *GetRegionByIDRequest) String() string { return proto.CompactTextString(m) } func (*GetRegionByIDRequest) ProtoMessage() {} func (*GetRegionByIDRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{27} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{27} } func (m *GetRegionByIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1751,7 +1751,7 @@ func (m *ScanRegionsRequest) Reset() { *m = ScanRegionsRequest{} } func (m *ScanRegionsRequest) String() string { return proto.CompactTextString(m) } func (*ScanRegionsRequest) ProtoMessage() {} func (*ScanRegionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{28} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{28} } func (m *ScanRegionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1825,7 +1825,7 @@ func (m *Region) Reset() { *m = Region{} } func (m *Region) String() string { return proto.CompactTextString(m) } func (*Region) ProtoMessage() {} func (*Region) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{29} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{29} } func (m *Region) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1898,7 +1898,7 @@ func (m *ScanRegionsResponse) Reset() { *m = ScanRegionsResponse{} } func (m *ScanRegionsResponse) String() string { return proto.CompactTextString(m) } func (*ScanRegionsResponse) ProtoMessage() {} func (*ScanRegionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{30} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{30} } func (m *ScanRegionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1966,7 +1966,7 @@ func (m *GetClusterConfigRequest) Reset() { *m = GetClusterConfigRequest func (m *GetClusterConfigRequest) String() string { return proto.CompactTextString(m) } func (*GetClusterConfigRequest) ProtoMessage() {} func (*GetClusterConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{31} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{31} } func (m *GetClusterConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2014,7 +2014,7 @@ func (m *GetClusterConfigResponse) Reset() { *m = GetClusterConfigRespon func (m *GetClusterConfigResponse) String() string { return proto.CompactTextString(m) } func (*GetClusterConfigResponse) ProtoMessage() {} func (*GetClusterConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{32} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{32} } func (m *GetClusterConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2069,7 +2069,7 @@ func (m *PutClusterConfigRequest) Reset() { *m = PutClusterConfigRequest func (m *PutClusterConfigRequest) String() string { return proto.CompactTextString(m) } func (*PutClusterConfigRequest) ProtoMessage() {} func (*PutClusterConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{33} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{33} } func (m *PutClusterConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2123,7 +2123,7 @@ func (m *PutClusterConfigResponse) Reset() { *m = PutClusterConfigRespon func (m *PutClusterConfigResponse) String() string { return proto.CompactTextString(m) } func (*PutClusterConfigResponse) ProtoMessage() {} func (*PutClusterConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{34} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{34} } func (m *PutClusterConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2180,7 +2180,7 @@ func (m *Member) Reset() { *m = Member{} } func (m *Member) String() string { return proto.CompactTextString(m) } func (*Member) ProtoMessage() {} func (*Member) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{35} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{35} } func (m *Member) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2283,7 +2283,7 @@ func (m *GetMembersRequest) Reset() { *m = GetMembersRequest{} } func (m *GetMembersRequest) String() string { return proto.CompactTextString(m) } func (*GetMembersRequest) ProtoMessage() {} func (*GetMembersRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{36} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{36} } func (m *GetMembersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2334,7 +2334,7 @@ func (m *GetMembersResponse) Reset() { *m = GetMembersResponse{} } func (m *GetMembersResponse) String() string { return proto.CompactTextString(m) } func (*GetMembersResponse) ProtoMessage() {} func (*GetMembersResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{37} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{37} } func (m *GetMembersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2410,7 +2410,7 @@ func (m *PeerStats) Reset() { *m = PeerStats{} } func (m *PeerStats) String() string { return proto.CompactTextString(m) } func (*PeerStats) ProtoMessage() {} func (*PeerStats) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{38} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{38} } func (m *PeerStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2492,7 +2492,7 @@ func (m *RegionHeartbeatRequest) Reset() { *m = RegionHeartbeatRequest{} func (m *RegionHeartbeatRequest) String() string { return proto.CompactTextString(m) } func (*RegionHeartbeatRequest) ProtoMessage() {} func (*RegionHeartbeatRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{39} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{39} } func (m *RegionHeartbeatRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2645,7 +2645,7 @@ func (m *ChangePeer) Reset() { *m = ChangePeer{} } func (m *ChangePeer) String() string { return proto.CompactTextString(m) } func (*ChangePeer) ProtoMessage() {} func (*ChangePeer) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{40} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{40} } func (m *ChangePeer) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2700,7 +2700,7 @@ func (m *ChangePeerV2) Reset() { *m = ChangePeerV2{} } func (m *ChangePeerV2) String() string { return proto.CompactTextString(m) } func (*ChangePeerV2) ProtoMessage() {} func (*ChangePeerV2) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{41} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{41} } func (m *ChangePeerV2) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2748,7 +2748,7 @@ func (m *TransferLeader) Reset() { *m = TransferLeader{} } func (m *TransferLeader) String() string { return proto.CompactTextString(m) } func (*TransferLeader) ProtoMessage() {} func (*TransferLeader) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{42} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{42} } func (m *TransferLeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2802,7 +2802,7 @@ func (m *Merge) Reset() { *m = Merge{} } func (m *Merge) String() string { return proto.CompactTextString(m) } func (*Merge) ProtoMessage() {} func (*Merge) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{43} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{43} } func (m *Merge) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2850,7 +2850,7 @@ func (m *SplitRegion) Reset() { *m = SplitRegion{} } func (m *SplitRegion) String() string { return proto.CompactTextString(m) } func (*SplitRegion) ProtoMessage() {} func (*SplitRegion) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{44} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{44} } func (m *SplitRegion) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2923,7 +2923,9 @@ type RegionHeartbeatResponse struct { // Multiple change peer operations atomically. // Note: PD can use both ChangePeer and ChangePeerV2 at the same time // (not in the same RegionHeartbeatResponse). - // Now, PD use ChangePeerV2 only for replacing peers. + // Now, PD use ChangePeerV2 in following scenarios: + // 1. replacing peers + // 2. demoting voter directly ChangePeerV2 *ChangePeerV2 `protobuf:"bytes,9,opt,name=change_peer_v2,json=changePeerV2" json:"change_peer_v2,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` @@ -2934,7 +2936,7 @@ func (m *RegionHeartbeatResponse) Reset() { *m = RegionHeartbeatResponse func (m *RegionHeartbeatResponse) String() string { return proto.CompactTextString(m) } func (*RegionHeartbeatResponse) ProtoMessage() {} func (*RegionHeartbeatResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{45} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{45} } func (m *RegionHeartbeatResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3038,7 +3040,7 @@ func (m *AskSplitRequest) Reset() { *m = AskSplitRequest{} } func (m *AskSplitRequest) String() string { return proto.CompactTextString(m) } func (*AskSplitRequest) ProtoMessage() {} func (*AskSplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{46} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{46} } func (m *AskSplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3098,7 +3100,7 @@ func (m *AskSplitResponse) Reset() { *m = AskSplitResponse{} } func (m *AskSplitResponse) String() string { return proto.CompactTextString(m) } func (*AskSplitResponse) ProtoMessage() {} func (*AskSplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{47} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{47} } func (m *AskSplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3161,7 +3163,7 @@ func (m *ReportSplitRequest) Reset() { *m = ReportSplitRequest{} } func (m *ReportSplitRequest) String() string { return proto.CompactTextString(m) } func (*ReportSplitRequest) ProtoMessage() {} func (*ReportSplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{48} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{48} } func (m *ReportSplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3222,7 +3224,7 @@ func (m *ReportSplitResponse) Reset() { *m = ReportSplitResponse{} } func (m *ReportSplitResponse) String() string { return proto.CompactTextString(m) } func (*ReportSplitResponse) ProtoMessage() {} func (*ReportSplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{49} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{49} } func (m *ReportSplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3271,7 +3273,7 @@ func (m *AskBatchSplitRequest) Reset() { *m = AskBatchSplitRequest{} } func (m *AskBatchSplitRequest) String() string { return proto.CompactTextString(m) } func (*AskBatchSplitRequest) ProtoMessage() {} func (*AskBatchSplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{50} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{50} } func (m *AskBatchSplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3333,7 +3335,7 @@ func (m *SplitID) Reset() { *m = SplitID{} } func (m *SplitID) String() string { return proto.CompactTextString(m) } func (*SplitID) ProtoMessage() {} func (*SplitID) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{51} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{51} } func (m *SplitID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3388,7 +3390,7 @@ func (m *AskBatchSplitResponse) Reset() { *m = AskBatchSplitResponse{} } func (m *AskBatchSplitResponse) String() string { return proto.CompactTextString(m) } func (*AskBatchSplitResponse) ProtoMessage() {} func (*AskBatchSplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{52} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{52} } func (m *AskBatchSplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3443,7 +3445,7 @@ func (m *ReportBatchSplitRequest) Reset() { *m = ReportBatchSplitRequest func (m *ReportBatchSplitRequest) String() string { return proto.CompactTextString(m) } func (*ReportBatchSplitRequest) ProtoMessage() {} func (*ReportBatchSplitRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{53} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{53} } func (m *ReportBatchSplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3497,7 +3499,7 @@ func (m *ReportBatchSplitResponse) Reset() { *m = ReportBatchSplitRespon func (m *ReportBatchSplitResponse) String() string { return proto.CompactTextString(m) } func (*ReportBatchSplitResponse) ProtoMessage() {} func (*ReportBatchSplitResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{54} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{54} } func (m *ReportBatchSplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3547,7 +3549,7 @@ func (m *TimeInterval) Reset() { *m = TimeInterval{} } func (m *TimeInterval) String() string { return proto.CompactTextString(m) } func (*TimeInterval) ProtoMessage() {} func (*TimeInterval) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{55} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{55} } func (m *TimeInterval) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3602,7 +3604,7 @@ func (m *RecordPair) Reset() { *m = RecordPair{} } func (m *RecordPair) String() string { return proto.CompactTextString(m) } func (*RecordPair) ProtoMessage() {} func (*RecordPair) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{56} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{56} } func (m *RecordPair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3659,7 +3661,7 @@ func (m *PeerStat) Reset() { *m = PeerStat{} } func (m *PeerStat) String() string { return proto.CompactTextString(m) } func (*PeerStat) ProtoMessage() {} func (*PeerStat) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{57} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{57} } func (m *PeerStat) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3771,7 +3773,7 @@ func (m *StoreStats) Reset() { *m = StoreStats{} } func (m *StoreStats) String() string { return proto.CompactTextString(m) } func (*StoreStats) ProtoMessage() {} func (*StoreStats) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{58} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{58} } func (m *StoreStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3973,7 +3975,7 @@ func (m *PeerReport) Reset() { *m = PeerReport{} } func (m *PeerReport) String() string { return proto.CompactTextString(m) } func (*PeerReport) ProtoMessage() {} func (*PeerReport) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{59} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{59} } func (m *PeerReport) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4027,7 +4029,7 @@ func (m *StoreReport) Reset() { *m = StoreReport{} } func (m *StoreReport) String() string { return proto.CompactTextString(m) } func (*StoreReport) ProtoMessage() {} func (*StoreReport) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{60} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{60} } func (m *StoreReport) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4077,7 +4079,7 @@ func (m *StoreHeartbeatRequest) Reset() { *m = StoreHeartbeatRequest{} } func (m *StoreHeartbeatRequest) String() string { return proto.CompactTextString(m) } func (*StoreHeartbeatRequest) ProtoMessage() {} func (*StoreHeartbeatRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{61} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{61} } func (m *StoreHeartbeatRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4140,7 +4142,7 @@ func (m *RecoveryPlan) Reset() { *m = RecoveryPlan{} } func (m *RecoveryPlan) String() string { return proto.CompactTextString(m) } func (*RecoveryPlan) ProtoMessage() {} func (*RecoveryPlan) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{62} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{62} } func (m *RecoveryPlan) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4205,7 +4207,7 @@ func (m *StoreHeartbeatResponse) Reset() { *m = StoreHeartbeatResponse{} func (m *StoreHeartbeatResponse) String() string { return proto.CompactTextString(m) } func (*StoreHeartbeatResponse) ProtoMessage() {} func (*StoreHeartbeatResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{63} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{63} } func (m *StoreHeartbeatResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4291,7 +4293,7 @@ func (m *ScatterRegionRequest) Reset() { *m = ScatterRegionRequest{} } func (m *ScatterRegionRequest) String() string { return proto.CompactTextString(m) } func (*ScatterRegionRequest) ProtoMessage() {} func (*ScatterRegionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{64} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{64} } func (m *ScatterRegionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4382,7 +4384,7 @@ func (m *ScatterRegionResponse) Reset() { *m = ScatterRegionResponse{} } func (m *ScatterRegionResponse) String() string { return proto.CompactTextString(m) } func (*ScatterRegionResponse) ProtoMessage() {} func (*ScatterRegionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{65} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{65} } func (m *ScatterRegionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4436,7 +4438,7 @@ func (m *GetGCSafePointRequest) Reset() { *m = GetGCSafePointRequest{} } func (m *GetGCSafePointRequest) String() string { return proto.CompactTextString(m) } func (*GetGCSafePointRequest) ProtoMessage() {} func (*GetGCSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{66} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{66} } func (m *GetGCSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4484,7 +4486,7 @@ func (m *GetGCSafePointResponse) Reset() { *m = GetGCSafePointResponse{} func (m *GetGCSafePointResponse) String() string { return proto.CompactTextString(m) } func (*GetGCSafePointResponse) ProtoMessage() {} func (*GetGCSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{67} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{67} } func (m *GetGCSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4539,7 +4541,7 @@ func (m *UpdateGCSafePointRequest) Reset() { *m = UpdateGCSafePointReque func (m *UpdateGCSafePointRequest) String() string { return proto.CompactTextString(m) } func (*UpdateGCSafePointRequest) ProtoMessage() {} func (*UpdateGCSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{68} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{68} } func (m *UpdateGCSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4594,7 +4596,7 @@ func (m *UpdateGCSafePointResponse) Reset() { *m = UpdateGCSafePointResp func (m *UpdateGCSafePointResponse) String() string { return proto.CompactTextString(m) } func (*UpdateGCSafePointResponse) ProtoMessage() {} func (*UpdateGCSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{69} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{69} } func (m *UpdateGCSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4651,7 +4653,7 @@ func (m *UpdateServiceGCSafePointRequest) Reset() { *m = UpdateServiceGC func (m *UpdateServiceGCSafePointRequest) String() string { return proto.CompactTextString(m) } func (*UpdateServiceGCSafePointRequest) ProtoMessage() {} func (*UpdateServiceGCSafePointRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{70} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{70} } func (m *UpdateServiceGCSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4722,7 +4724,7 @@ func (m *UpdateServiceGCSafePointResponse) Reset() { *m = UpdateServiceG func (m *UpdateServiceGCSafePointResponse) String() string { return proto.CompactTextString(m) } func (*UpdateServiceGCSafePointResponse) ProtoMessage() {} func (*UpdateServiceGCSafePointResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{71} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{71} } func (m *UpdateServiceGCSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4795,7 +4797,7 @@ func (m *RegionStat) Reset() { *m = RegionStat{} } func (m *RegionStat) String() string { return proto.CompactTextString(m) } func (*RegionStat) ProtoMessage() {} func (*RegionStat) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{72} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{72} } func (m *RegionStat) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4867,7 +4869,7 @@ func (m *SyncRegionRequest) Reset() { *m = SyncRegionRequest{} } func (m *SyncRegionRequest) String() string { return proto.CompactTextString(m) } func (*SyncRegionRequest) ProtoMessage() {} func (*SyncRegionRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{73} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{73} } func (m *SyncRegionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -4934,7 +4936,7 @@ func (m *SyncRegionResponse) Reset() { *m = SyncRegionResponse{} } func (m *SyncRegionResponse) String() string { return proto.CompactTextString(m) } func (*SyncRegionResponse) ProtoMessage() {} func (*SyncRegionResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{74} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{74} } func (m *SyncRegionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5010,7 +5012,7 @@ func (m *GetOperatorRequest) Reset() { *m = GetOperatorRequest{} } func (m *GetOperatorRequest) String() string { return proto.CompactTextString(m) } func (*GetOperatorRequest) ProtoMessage() {} func (*GetOperatorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{75} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{75} } func (m *GetOperatorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5068,7 +5070,7 @@ func (m *GetOperatorResponse) Reset() { *m = GetOperatorResponse{} } func (m *GetOperatorResponse) String() string { return proto.CompactTextString(m) } func (*GetOperatorResponse) ProtoMessage() {} func (*GetOperatorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{76} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{76} } func (m *GetOperatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5146,7 +5148,7 @@ func (m *SyncMaxTSRequest) Reset() { *m = SyncMaxTSRequest{} } func (m *SyncMaxTSRequest) String() string { return proto.CompactTextString(m) } func (*SyncMaxTSRequest) ProtoMessage() {} func (*SyncMaxTSRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{77} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{77} } func (m *SyncMaxTSRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5209,7 +5211,7 @@ func (m *SyncMaxTSResponse) Reset() { *m = SyncMaxTSResponse{} } func (m *SyncMaxTSResponse) String() string { return proto.CompactTextString(m) } func (*SyncMaxTSResponse) ProtoMessage() {} func (*SyncMaxTSResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{78} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{78} } func (m *SyncMaxTSResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5272,7 +5274,7 @@ func (m *SplitRegionsRequest) Reset() { *m = SplitRegionsRequest{} } func (m *SplitRegionsRequest) String() string { return proto.CompactTextString(m) } func (*SplitRegionsRequest) ProtoMessage() {} func (*SplitRegionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{79} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{79} } func (m *SplitRegionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5335,7 +5337,7 @@ func (m *SplitRegionsResponse) Reset() { *m = SplitRegionsResponse{} } func (m *SplitRegionsResponse) String() string { return proto.CompactTextString(m) } func (*SplitRegionsResponse) ProtoMessage() {} func (*SplitRegionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{80} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{80} } func (m *SplitRegionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5399,7 +5401,7 @@ func (m *SplitAndScatterRegionsRequest) Reset() { *m = SplitAndScatterRe func (m *SplitAndScatterRegionsRequest) String() string { return proto.CompactTextString(m) } func (*SplitAndScatterRegionsRequest) ProtoMessage() {} func (*SplitAndScatterRegionsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{81} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{81} } func (m *SplitAndScatterRegionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5470,7 +5472,7 @@ func (m *SplitAndScatterRegionsResponse) Reset() { *m = SplitAndScatterR func (m *SplitAndScatterRegionsResponse) String() string { return proto.CompactTextString(m) } func (*SplitAndScatterRegionsResponse) ProtoMessage() {} func (*SplitAndScatterRegionsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{82} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{82} } func (m *SplitAndScatterRegionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5539,7 +5541,7 @@ func (m *GetDCLocationInfoRequest) Reset() { *m = GetDCLocationInfoReque func (m *GetDCLocationInfoRequest) String() string { return proto.CompactTextString(m) } func (*GetDCLocationInfoRequest) ProtoMessage() {} func (*GetDCLocationInfoRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{83} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{83} } func (m *GetDCLocationInfoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5598,7 +5600,7 @@ func (m *GetDCLocationInfoResponse) Reset() { *m = GetDCLocationInfoResp func (m *GetDCLocationInfoResponse) String() string { return proto.CompactTextString(m) } func (*GetDCLocationInfoResponse) ProtoMessage() {} func (*GetDCLocationInfoResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{84} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{84} } func (m *GetDCLocationInfoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5669,7 +5671,7 @@ func (m *QueryStats) Reset() { *m = QueryStats{} } func (m *QueryStats) String() string { return proto.CompactTextString(m) } func (*QueryStats) ProtoMessage() {} func (*QueryStats) Descriptor() ([]byte, []int) { - return fileDescriptor_pdpb_31cc55a09d844ce1, []int{85} + return fileDescriptor_pdpb_ad3a9ea6dfbe707a, []int{85} } func (m *QueryStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -25293,9 +25295,9 @@ var ( ErrIntOverflowPdpb = fmt.Errorf("proto: integer overflow") ) -func init() { proto.RegisterFile("pdpb.proto", fileDescriptor_pdpb_31cc55a09d844ce1) } +func init() { proto.RegisterFile("pdpb.proto", fileDescriptor_pdpb_ad3a9ea6dfbe707a) } -var fileDescriptor_pdpb_31cc55a09d844ce1 = []byte{ +var fileDescriptor_pdpb_ad3a9ea6dfbe707a = []byte{ // 4460 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x3b, 0x4d, 0x6f, 0x23, 0x47, 0x76, 0x6a, 0x8a, 0xa4, 0xc8, 0x47, 0x8a, 0x6a, 0x95, 0xbe, 0x28, 0x8e, 0xe7, 0x63, 0xdb, 0x63, diff --git a/proto/pdpb.proto b/proto/pdpb.proto index 2937eecf5..eab45dcd9 100644 --- a/proto/pdpb.proto +++ b/proto/pdpb.proto @@ -444,7 +444,9 @@ message RegionHeartbeatResponse { // Multiple change peer operations atomically. // Note: PD can use both ChangePeer and ChangePeerV2 at the same time // (not in the same RegionHeartbeatResponse). - // Now, PD use ChangePeerV2 only for replacing peers. + // Now, PD use ChangePeerV2 in following scenarios: + // 1. replacing peers + // 2. demoting voter directly ChangePeerV2 change_peer_v2 = 9; }