From 0e5f1cc2234db72f5cde9ef09f3d4fe77da9d25c Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 9 Apr 2020 12:25:13 +0800 Subject: [PATCH] *: update name and script (#597) Signed-off-by: Jay Lee --- pkg/pdpb/pdpb.pb.go | 641 ++++++------ pkg/replicate_mode/replicate_mode.pb.go | 942 ----------------- .../replication_modepb.pb.go | 955 ++++++++++++++++++ proto/pdpb.proto | 10 +- proto/replicate_mode.proto | 36 - proto/replication_modepb.proto | 51 + scripts/generate_go.sh | 2 +- 7 files changed, 1333 insertions(+), 1304 deletions(-) delete mode 100644 pkg/replicate_mode/replicate_mode.pb.go create mode 100644 pkg/replication_modepb/replication_modepb.pb.go delete mode 100644 proto/replicate_mode.proto create mode 100644 proto/replication_modepb.proto diff --git a/pkg/pdpb/pdpb.pb.go b/pkg/pdpb/pdpb.pb.go index 689ee2d9b..7938d85a5 100644 --- a/pkg/pdpb/pdpb.pb.go +++ b/pkg/pdpb/pdpb.pb.go @@ -16,7 +16,7 @@ import ( metapb "github.com/pingcap/kvproto/pkg/metapb" - replicate_mode "github.com/pingcap/kvproto/pkg/replicate_mode" + replication_modepb "github.com/pingcap/kvproto/pkg/replication_modepb" context "golang.org/x/net/context" @@ -69,7 +69,7 @@ func (x ErrorType) String() string { return proto.EnumName(ErrorType_name, int32(x)) } func (ErrorType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_pdpb_d739f59dbbceac68, []int{0} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{0} } type CheckPolicy int32 @@ -95,7 +95,7 @@ func (x CheckPolicy) String() string { return proto.EnumName(CheckPolicy_name, int32(x)) } func (CheckPolicy) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_pdpb_d739f59dbbceac68, []int{1} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{1} } type OperatorStatus int32 @@ -127,7 +127,7 @@ func (x OperatorStatus) String() string { return proto.EnumName(OperatorStatus_name, int32(x)) } func (OperatorStatus) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_pdpb_d739f59dbbceac68, []int{2} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{2} } type RequestHeader struct { @@ -142,7 +142,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_d739f59dbbceac68, []int{0} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{0} } func (m *RequestHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -191,7 +191,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_d739f59dbbceac68, []int{1} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{1} } func (m *ResponseHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -246,7 +246,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_d739f59dbbceac68, []int{2} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{2} } func (m *Error) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -301,7 +301,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_d739f59dbbceac68, []int{3} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{3} } func (m *TsoRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -356,7 +356,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_d739f59dbbceac68, []int{4} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{4} } func (m *Timestamp) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -412,7 +412,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_d739f59dbbceac68, []int{5} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{5} } func (m *TsoResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -475,7 +475,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_d739f59dbbceac68, []int{6} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{6} } func (m *BootstrapRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -526,18 +526,18 @@ func (m *BootstrapRequest) GetRegion() *metapb.Region { } type BootstrapResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - ReplicateStatus *replicate_mode.ReplicateStatus `protobuf:"bytes,2,opt,name=replicate_status,json=replicateStatus" json:"replicate_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus" json:"replication_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } 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_d739f59dbbceac68, []int{7} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{7} } func (m *BootstrapResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -573,9 +573,9 @@ func (m *BootstrapResponse) GetHeader() *ResponseHeader { return nil } -func (m *BootstrapResponse) GetReplicateStatus() *replicate_mode.ReplicateStatus { +func (m *BootstrapResponse) GetReplicationStatus() *replication_modepb.ReplicationStatus { if m != nil { - return m.ReplicateStatus + return m.ReplicationStatus } return nil } @@ -591,7 +591,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_d739f59dbbceac68, []int{8} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{8} } func (m *IsBootstrappedRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -639,7 +639,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_d739f59dbbceac68, []int{9} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{9} } func (m *IsBootstrappedResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -693,7 +693,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_d739f59dbbceac68, []int{10} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{10} } func (m *AllocIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -741,7 +741,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_d739f59dbbceac68, []int{11} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{11} } func (m *AllocIDResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -796,7 +796,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_d739f59dbbceac68, []int{12} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{12} } func (m *GetStoreRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -852,7 +852,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_d739f59dbbceac68, []int{13} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{13} } func (m *GetStoreResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -914,7 +914,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_d739f59dbbceac68, []int{14} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{14} } func (m *PutStoreRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -958,18 +958,18 @@ func (m *PutStoreRequest) GetStore() *metapb.Store { } type PutStoreResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - ReplicateStatus *replicate_mode.ReplicateStatus `protobuf:"bytes,2,opt,name=replicate_status,json=replicateStatus" json:"replicate_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus" json:"replication_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } 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_d739f59dbbceac68, []int{15} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{15} } func (m *PutStoreResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1005,9 +1005,9 @@ func (m *PutStoreResponse) GetHeader() *ResponseHeader { return nil } -func (m *PutStoreResponse) GetReplicateStatus() *replicate_mode.ReplicateStatus { +func (m *PutStoreResponse) GetReplicationStatus() *replication_modepb.ReplicationStatus { if m != nil { - return m.ReplicateStatus + return m.ReplicationStatus } return nil } @@ -1025,7 +1025,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_d739f59dbbceac68, []int{16} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{16} } func (m *GetAllStoresRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1080,7 +1080,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_d739f59dbbceac68, []int{17} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{17} } func (m *GetAllStoresResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1135,7 +1135,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_d739f59dbbceac68, []int{18} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{18} } func (m *GetRegionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1192,7 +1192,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_d739f59dbbceac68, []int{19} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{19} } func (m *GetRegionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1261,7 +1261,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_d739f59dbbceac68, []int{20} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{20} } func (m *GetRegionByIDRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1318,7 +1318,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_d739f59dbbceac68, []int{21} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{21} } func (m *ScanRegionsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1388,7 +1388,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_d739f59dbbceac68, []int{22} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{22} } func (m *ScanRegionsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1449,7 +1449,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_d739f59dbbceac68, []int{23} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{23} } func (m *GetClusterConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1497,7 +1497,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_d739f59dbbceac68, []int{24} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{24} } func (m *GetClusterConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1552,7 +1552,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_d739f59dbbceac68, []int{25} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{25} } func (m *PutClusterConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1606,7 +1606,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_d739f59dbbceac68, []int{26} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{26} } func (m *PutClusterConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1661,7 +1661,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_d739f59dbbceac68, []int{27} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{27} } func (m *Member) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1750,7 +1750,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_d739f59dbbceac68, []int{28} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{28} } func (m *GetMembersRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1800,7 +1800,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_d739f59dbbceac68, []int{29} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{29} } func (m *GetMembersResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1869,7 +1869,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_d739f59dbbceac68, []int{30} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{30} } func (m *PeerStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1935,18 +1935,18 @@ type RegionHeartbeatRequest struct { // Approximate number of keys. ApproximateKeys uint64 `protobuf:"varint,13,opt,name=approximate_keys,json=approximateKeys,proto3" json:"approximate_keys,omitempty"` // Term is the term of raft group. - Term uint64 `protobuf:"varint,14,opt,name=term,proto3" json:"term,omitempty"` - ReplicateStatus *replicate_mode.RegionReplicateStatus `protobuf:"bytes,15,opt,name=replicate_status,json=replicateStatus" json:"replicate_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Term uint64 `protobuf:"varint,14,opt,name=term,proto3" json:"term,omitempty"` + ReplicationStatus *replication_modepb.RegionReplicationStatus `protobuf:"bytes,15,opt,name=replication_status,json=replicationStatus" json:"replication_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } 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_d739f59dbbceac68, []int{31} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{31} } func (m *RegionHeartbeatRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2066,9 +2066,9 @@ func (m *RegionHeartbeatRequest) GetTerm() uint64 { return 0 } -func (m *RegionHeartbeatRequest) GetReplicateStatus() *replicate_mode.RegionReplicateStatus { +func (m *RegionHeartbeatRequest) GetReplicationStatus() *replication_modepb.RegionReplicationStatus { if m != nil { - return m.ReplicateStatus + return m.ReplicationStatus } return nil } @@ -2085,7 +2085,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_d739f59dbbceac68, []int{32} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{32} } func (m *ChangePeer) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2139,7 +2139,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_d739f59dbbceac68, []int{33} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{33} } func (m *TransferLeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2186,7 +2186,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_d739f59dbbceac68, []int{34} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{34} } func (m *Merge) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2234,7 +2234,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_d739f59dbbceac68, []int{35} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{35} } func (m *SplitRegion) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2313,7 +2313,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_d739f59dbbceac68, []int{36} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{36} } func (m *RegionHeartbeatResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2410,7 +2410,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_d739f59dbbceac68, []int{37} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{37} } func (m *AskSplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2470,7 +2470,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_d739f59dbbceac68, []int{38} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{38} } func (m *AskSplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2533,7 +2533,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_d739f59dbbceac68, []int{39} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{39} } func (m *ReportSplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2594,7 +2594,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_d739f59dbbceac68, []int{40} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{40} } func (m *ReportSplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2643,7 +2643,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_d739f59dbbceac68, []int{41} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{41} } func (m *AskBatchSplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2705,7 +2705,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_d739f59dbbceac68, []int{42} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{42} } func (m *SplitID) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2760,7 +2760,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_d739f59dbbceac68, []int{43} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{43} } func (m *AskBatchSplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2815,7 +2815,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_d739f59dbbceac68, []int{44} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{44} } func (m *ReportBatchSplitRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2869,7 +2869,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_d739f59dbbceac68, []int{45} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{45} } func (m *ReportBatchSplitResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2919,7 +2919,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_d739f59dbbceac68, []int{46} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{46} } func (m *TimeInterval) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2974,7 +2974,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_d739f59dbbceac68, []int{47} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{47} } func (m *RecordPair) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3064,7 +3064,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_d739f59dbbceac68, []int{48} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{48} } func (m *StoreStats) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3238,7 +3238,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_d739f59dbbceac68, []int{49} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{49} } func (m *StoreHeartbeatRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3282,18 +3282,18 @@ func (m *StoreHeartbeatRequest) GetStats() *StoreStats { } type StoreHeartbeatResponse struct { - Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` - ReplicateStatus *replicate_mode.ReplicateStatus `protobuf:"bytes,2,opt,name=replicate_status,json=replicateStatus" json:"replicate_status,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` + Header *ResponseHeader `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` + ReplicationStatus *replication_modepb.ReplicationStatus `protobuf:"bytes,2,opt,name=replication_status,json=replicationStatus" json:"replication_status,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } 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_d739f59dbbceac68, []int{50} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{50} } func (m *StoreHeartbeatResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3329,9 +3329,9 @@ func (m *StoreHeartbeatResponse) GetHeader() *ResponseHeader { return nil } -func (m *StoreHeartbeatResponse) GetReplicateStatus() *replicate_mode.ReplicateStatus { +func (m *StoreHeartbeatResponse) GetReplicationStatus() *replication_modepb.ReplicationStatus { if m != nil { - return m.ReplicateStatus + return m.ReplicationStatus } return nil } @@ -3352,7 +3352,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_d739f59dbbceac68, []int{51} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{51} } func (m *ScatterRegionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3420,7 +3420,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_d739f59dbbceac68, []int{52} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{52} } func (m *ScatterRegionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3467,7 +3467,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_d739f59dbbceac68, []int{53} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{53} } func (m *GetGCSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3515,7 +3515,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_d739f59dbbceac68, []int{54} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{54} } func (m *GetGCSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3570,7 +3570,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_d739f59dbbceac68, []int{55} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{55} } func (m *UpdateGCSafePointRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3625,7 +3625,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_d739f59dbbceac68, []int{56} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{56} } func (m *UpdateGCSafePointResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3684,7 +3684,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_d739f59dbbceac68, []int{57} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{57} } func (m *RegionStat) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3756,7 +3756,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_d739f59dbbceac68, []int{58} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{58} } func (m *SyncRegionRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3822,7 +3822,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_d739f59dbbceac68, []int{59} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{59} } func (m *SyncRegionResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3891,7 +3891,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_d739f59dbbceac68, []int{60} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{60} } func (m *GetOperatorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3949,7 +3949,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_d739f59dbbceac68, []int{61} + return fileDescriptor_pdpb_783f7694fb0fd5ee, []int{61} } func (m *GetOperatorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -5331,11 +5331,11 @@ func (m *BootstrapResponse) MarshalTo(dAtA []byte) (int, error) { } i += n8 } - if m.ReplicateStatus != nil { + if m.ReplicationStatus != nil { dAtA[i] = 0x12 i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicateStatus.Size())) - n9, err := m.ReplicateStatus.MarshalTo(dAtA[i:]) + i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicationStatus.Size())) + n9, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -5639,11 +5639,11 @@ func (m *PutStoreResponse) MarshalTo(dAtA []byte) (int, error) { } i += n20 } - if m.ReplicateStatus != nil { + if m.ReplicationStatus != nil { dAtA[i] = 0x12 i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicateStatus.Size())) - n21, err := m.ReplicateStatus.MarshalTo(dAtA[i:]) + i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicationStatus.Size())) + n21, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -6445,11 +6445,11 @@ func (m *RegionHeartbeatRequest) MarshalTo(dAtA []byte) (int, error) { i++ i = encodeVarintPdpb(dAtA, i, uint64(m.Term)) } - if m.ReplicateStatus != nil { + if m.ReplicationStatus != nil { dAtA[i] = 0x7a i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicateStatus.Size())) - n46, err := m.ReplicateStatus.MarshalTo(dAtA[i:]) + i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicationStatus.Size())) + n46, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -7362,11 +7362,11 @@ func (m *StoreHeartbeatResponse) MarshalTo(dAtA []byte) (int, error) { } i += n76 } - if m.ReplicateStatus != nil { + if m.ReplicationStatus != nil { dAtA[i] = 0x12 i++ - i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicateStatus.Size())) - n77, err := m.ReplicateStatus.MarshalTo(dAtA[i:]) + i = encodeVarintPdpb(dAtA, i, uint64(m.ReplicationStatus.Size())) + n77, err := m.ReplicationStatus.MarshalTo(dAtA[i:]) if err != nil { return 0, err } @@ -7972,8 +7972,8 @@ func (m *BootstrapResponse) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.ReplicateStatus != nil { - l = m.ReplicateStatus.Size() + if m.ReplicationStatus != nil { + l = m.ReplicationStatus.Size() n += 1 + l + sovPdpb(uint64(l)) } if m.XXX_unrecognized != nil { @@ -8101,8 +8101,8 @@ func (m *PutStoreResponse) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.ReplicateStatus != nil { - l = m.ReplicateStatus.Size() + if m.ReplicationStatus != nil { + l = m.ReplicationStatus.Size() n += 1 + l + sovPdpb(uint64(l)) } if m.XXX_unrecognized != nil { @@ -8462,8 +8462,8 @@ func (m *RegionHeartbeatRequest) Size() (n int) { if m.Term != 0 { n += 1 + sovPdpb(uint64(m.Term)) } - if m.ReplicateStatus != nil { - l = m.ReplicateStatus.Size() + if m.ReplicationStatus != nil { + l = m.ReplicationStatus.Size() n += 1 + l + sovPdpb(uint64(l)) } if m.XXX_unrecognized != nil { @@ -8870,8 +8870,8 @@ func (m *StoreHeartbeatResponse) Size() (n int) { l = m.Header.Size() n += 1 + l + sovPdpb(uint64(l)) } - if m.ReplicateStatus != nil { - l = m.ReplicateStatus.Size() + if m.ReplicationStatus != nil { + l = m.ReplicationStatus.Size() n += 1 + l + sovPdpb(uint64(l)) } if m.XXX_unrecognized != nil { @@ -9917,7 +9917,7 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicateStatus", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReplicationStatus", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -9941,10 +9941,10 @@ func (m *BootstrapResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ReplicateStatus == nil { - m.ReplicateStatus = &replicate_mode.ReplicateStatus{} + if m.ReplicationStatus == nil { + m.ReplicationStatus = &replication_modepb.ReplicationStatus{} } - if err := m.ReplicateStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ReplicationStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -10779,7 +10779,7 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicateStatus", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReplicationStatus", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -10803,10 +10803,10 @@ func (m *PutStoreResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ReplicateStatus == nil { - m.ReplicateStatus = &replicate_mode.ReplicateStatus{} + if m.ReplicationStatus == nil { + m.ReplicationStatus = &replication_modepb.ReplicationStatus{} } - if err := m.ReplicateStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ReplicationStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -13123,7 +13123,7 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { } case 15: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicateStatus", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReplicationStatus", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -13147,10 +13147,10 @@ func (m *RegionHeartbeatRequest) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ReplicateStatus == nil { - m.ReplicateStatus = &replicate_mode.RegionReplicateStatus{} + if m.ReplicationStatus == nil { + m.ReplicationStatus = &replication_modepb.RegionReplicationStatus{} } - if err := m.ReplicateStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ReplicationStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -15789,7 +15789,7 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex case 2: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ReplicateStatus", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field ReplicationStatus", wireType) } var msglen int for shift := uint(0); ; shift += 7 { @@ -15813,10 +15813,10 @@ func (m *StoreHeartbeatResponse) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - if m.ReplicateStatus == nil { - m.ReplicateStatus = &replicate_mode.ReplicateStatus{} + if m.ReplicationStatus == nil { + m.ReplicationStatus = &replication_modepb.ReplicationStatus{} } - if err := m.ReplicateStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + if err := m.ReplicationStatus.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex @@ -17308,194 +17308,195 @@ var ( ErrIntOverflowPdpb = fmt.Errorf("proto: integer overflow") ) -func init() { proto.RegisterFile("pdpb.proto", fileDescriptor_pdpb_d739f59dbbceac68) } - -var fileDescriptor_pdpb_d739f59dbbceac68 = []byte{ - // 2974 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x3a, 0x4b, 0x6f, 0x23, 0xc7, - 0xd1, 0x1a, 0x8a, 0xa4, 0xc8, 0xe2, 0x53, 0xad, 0x17, 0x97, 0xeb, 0x7d, 0x78, 0x76, 0xed, 0x6f, - 0xed, 0xcf, 0x96, 0xed, 0xf5, 0xc2, 0x30, 0xf0, 0xc1, 0xc6, 0x47, 0x51, 0x5c, 0x99, 0x5e, 0x89, - 0x24, 0x9a, 0x94, 0x1d, 0x03, 0x81, 0x99, 0x11, 0xa7, 0x25, 0x4d, 0x44, 0xcd, 0x8c, 0x67, 0x86, - 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9f, 0x08, 0xf1, 0x4d, 0x81, 0x1f, 0x48, 0x34, 0x5f, 0x4d, 0x3d, 0x83, - 0xf5, 0xe8, 0xea, 0x89, 0xec, 0xf1, 0x12, 0x64, 0xfd, 0xd5, 0x96, 0x67, 0x0d, 0x2f, 0x90, 0xea, - 0xa7, 0x2c, 0xda, 0x44, 0xc2, 0x4a, 0xa2, 0xe7, 0x1d, 0x00, 0x9e, 0xe6, 0x86, 0x67, 0x64, 0xca, - 0x34, 0x2b, 0xe2, 0x3c, 0x87, 0x3c, 0x23, 0x53, 0xf5, 0x0f, 0x0a, 0xac, 0x86, 0x16, 0x48, 0xa4, - 0x4a, 0x90, 0x67, 0x53, 0x97, 0xe5, 0x59, 0xf4, 0x10, 0xb2, 0x63, 0xce, 0x95, 0xc7, 0x74, 0x51, - 0xd2, 0xf5, 0x08, 0xe5, 0xc6, 0x71, 0x94, 0xca, 0x1d, 0x6b, 0x17, 0xc4, 0xad, 0xa5, 0x99, 0x61, - 0x62, 0x54, 0x1c, 0xa7, 0xfe, 0x80, 0x39, 0x81, 0x2f, 0xb0, 0x33, 0x4d, 0x96, 0x77, 0xd0, 0x6d, - 0x10, 0x96, 0x08, 0xf6, 0x79, 0x8e, 0x03, 0xf8, 0x46, 0x47, 0xfd, 0x91, 0x66, 0xf2, 0x35, 0xdc, - 0xa4, 0x0b, 0xb8, 0x9e, 0xe6, 0x78, 0x21, 0xdb, 0xe7, 0x18, 0xe0, 0x19, 0x99, 0xd2, 0xa3, 0x74, - 0x6c, 0x9c, 0x1b, 0x1e, 0xb3, 0x46, 0x06, 0xf3, 0x01, 0xda, 0x82, 0x15, 0x62, 0xea, 0x6c, 0x42, - 0x9a, 0x4d, 0xc8, 0x12, 0x53, 0xa7, 0x9e, 0xfa, 0x4a, 0x81, 0xb5, 0x88, 0x3c, 0x89, 0x7c, 0xf5, - 0x08, 0x56, 0xb8, 0x86, 0x32, 0xee, 0xe2, 0xce, 0x92, 0x68, 0xf4, 0x32, 0xac, 0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 0xb2, 0xc2, 0x68, 0x4a, 0x1c, 0xfa, 0x11, 0x07, 0xaa, 0xff, 0xcf, 0xb2, 0x14, 0x57, 0x36, - 0xd1, 0x56, 0x54, 0xff, 0xa4, 0x00, 0x0a, 0xb3, 0x48, 0x98, 0xe9, 0x56, 0xb8, 0x05, 0xe5, 0xee, - 0x29, 0x72, 0x72, 0xce, 0x15, 0x4b, 0xe4, 0x9c, 0x4c, 0x17, 0x26, 0x93, 0x99, 0xee, 0x75, 0x28, - 0x10, 0x6f, 0xa4, 0x0f, 0x05, 0x69, 0x7a, 0x0e, 0x29, 0x50, 0x82, 0x7d, 0xae, 0x41, 0x0f, 0xf2, - 0x74, 0xe7, 0xb1, 0xd3, 0x1f, 0xdd, 0x87, 0x34, 0x75, 0x97, 0x90, 0x3a, 0xba, 0x35, 0x19, 0x06, - 0xbd, 0x08, 0x45, 0xdd, 0x7a, 0x6e, 0x0e, 0x5d, 0x32, 0xb2, 0x4c, 0xdd, 0x15, 0x11, 0x50, 0xa0, - 0xb0, 0x3e, 0x07, 0xa9, 0xff, 0x4a, 0xc3, 0x26, 0xdf, 0xf6, 0x1f, 0x10, 0xcd, 0xf1, 0x8e, 0x88, - 0xe6, 0x25, 0x8a, 0xfe, 0x6f, 0xf6, 0x00, 0xd8, 0x06, 0x60, 0x82, 0x53, 0x2d, 0xe4, 0x21, 0x20, - 0x6e, 0x13, 0xbe, 0xfe, 0x38, 0x4f, 0x49, 0xe8, 0xd0, 0x45, 0x6f, 0x41, 0xc9, 0x26, 0xa6, 0x6e, - 0x98, 0x27, 0x62, 0x4a, 0x66, 0x4e, 0xba, 0x2a, 0x0a, 0x12, 0x3e, 0xe5, 0x01, 0x94, 0x8e, 0xa6, - 0x1e, 0x71, 0x87, 0xcf, 0x1d, 0xc3, 0xf3, 0x88, 0xc9, 0x02, 0x33, 0x8d, 0x8b, 0x0c, 0xf8, 0x31, - 0x87, 0xd1, 0x93, 0x93, 0x13, 0x39, 0x44, 0xd3, 0x59, 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, 0xd6, 0x07, 0x50, 0xa2, - 0x37, 0xb2, 0x80, 0x8c, 0xef, 0xaa, 0x22, 0x31, 0x75, 0x9f, 0x48, 0x7d, 0x02, 0x80, 0xc9, 0xc8, - 0x72, 0xf4, 0x9e, 0x66, 0x38, 0xa8, 0x0a, 0xcb, 0xf4, 0x02, 0xc7, 0xab, 0x71, 0xfa, 0x49, 0x2f, - 0x7b, 0x17, 0xda, 0x78, 0x42, 0xc4, 0x64, 0x3e, 0x50, 0xff, 0x9d, 0x01, 0x08, 0x5a, 0x3a, 0x91, - 0xb6, 0x93, 0x12, 0x69, 0x3b, 0xa1, 0x3a, 0xe4, 0x46, 0x9a, 0xad, 0x8d, 0x68, 0xa9, 0x2d, 0x6a, - 0x79, 0x39, 0x46, 0x2f, 0x40, 0x5e, 0xbb, 0xd0, 0x8c, 0xb1, 0x76, 0x34, 0x26, 0x2c, 0xda, 0xd2, - 0x38, 0x00, 0xd0, 0x3a, 0x45, 0x44, 0x17, 0x0f, 0xc7, 0x34, 0x0b, 0x47, 0x91, 0x6a, 0x59, 0x3c, - 0xa2, 0xd7, 0x00, 0xb9, 0xa2, 0x82, 0x72, 0x4d, 0xcd, 0x16, 0x84, 0x19, 0x46, 0x58, 0x15, 0x98, - 0xbe, 0xa9, 0xd9, 0x9c, 0xfa, 0x4d, 0x58, 0x77, 0xc8, 0x88, 0x18, 0x17, 0x31, 0xfa, 0x2c, 0xa3, - 0x47, 0x3e, 0x2e, 0x98, 0x71, 0x07, 0x20, 0x30, 0x35, 0x4b, 0xd0, 0x25, 0x9c, 0xf7, 0xad, 0x8c, - 0xb6, 0x61, 0x4d, 0xb3, 0xed, 0xf1, 0x34, 0xc6, 0x2f, 0xc7, 0xe8, 0x56, 0x25, 0x2a, 0x60, 0xb7, - 0x05, 0x2b, 0x86, 0x3b, 0x3c, 0x9a, 0xb8, 0x53, 0x56, 0x54, 0xe5, 0x70, 0xd6, 0x70, 0x77, 0x26, - 0xee, 0x94, 0x9e, 0x43, 0x13, 0x97, 0xe8, 0xe1, 0x5a, 0x2a, 0x47, 0x01, 0xac, 0x88, 0x9a, 0xa9, - 0xf9, 0x0a, 0x73, 0x6a, 0xbe, 0x78, 0x51, 0x57, 0x9c, 0x2d, 0xea, 0xa2, 0x65, 0x61, 0x29, 0x5e, - 0x16, 0x46, 0x6a, 0xbe, 0x72, 0xac, 0xe6, 0x0b, 0x17, 0x72, 0x95, 0x6b, 0x14, 0x72, 0x6f, 0x00, - 0x8c, 0xec, 0xc9, 0x70, 0xe2, 0x6a, 0x27, 0xc4, 0xad, 0x55, 0xd9, 0x56, 0xa9, 0xca, 0x28, 0x97, - 0xd1, 0x86, 0xf3, 0x23, 0x7b, 0x72, 0xc8, 0x48, 0xd0, 0x13, 0x28, 0xd1, 0x85, 0x87, 0x86, 0x35, - 0x74, 0x34, 0x8f, 0xb8, 0xb5, 0xd5, 0x05, 0x73, 0x0a, 0x94, 0xac, 0x6d, 0x61, 0x4a, 0x84, 0xde, - 0x81, 0x32, 0x55, 0x98, 0x04, 0xd3, 0xd0, 0x82, 0x69, 0x45, 0x46, 0x27, 0xe7, 0xbd, 0x0d, 0x45, - 0xcb, 0x1e, 0x8e, 0x35, 0x8f, 0x98, 0x23, 0x83, 0xb8, 0xb5, 0xb5, 0x45, 0x8b, 0x59, 0xf6, 0xbe, - 0x24, 0x52, 0xc7, 0xb0, 0xc1, 0x42, 0xfe, 0xa6, 0x57, 0x0e, 0xd1, 0x1e, 0x4d, 0x5d, 0xde, 0x1e, - 0xfd, 0xb5, 0x02, 0x9b, 0xf1, 0xe5, 0xbe, 0xf3, 0xfe, 0xe5, 0xef, 0x15, 0x58, 0xef, 0x8f, 0x34, - 0xcf, 0x23, 0xce, 0x0d, 0x3a, 0x7b, 0x97, 0x75, 0xaf, 0xae, 0xfb, 0xf6, 0x11, 0xba, 0x92, 0xa5, - 0x17, 0x5f, 0xc9, 0xd4, 0x16, 0x6c, 0xc4, 0xe4, 0x4d, 0x94, 0x82, 0x77, 0x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0xa6, 0xf1, 0xc7, 0x46, 0xc9, 0x74, 0xc1, 0x63, 0xa6, 0x64, 0xba, 0xe8, - 0x8d, 0x92, 0x33, 0x8d, 0xbf, 0xec, 0x49, 0xa6, 0x0b, 0x1e, 0x19, 0x25, 0xd3, 0x45, 0x0f, 0x82, - 0xea, 0x12, 0x35, 0x65, 0xa4, 0xf4, 0x96, 0xa6, 0x9c, 0x77, 0x7f, 0x90, 0xa6, 0x9c, 0x5b, 0xab, - 0xf3, 0x6d, 0x1d, 0xad, 0x9c, 0xe5, 0xb6, 0x9e, 0x5b, 0x95, 0xcb, 0x6d, 0x3d, 0xbf, 0xd8, 0x56, - 0x97, 0xd0, 0x47, 0xb0, 0x3a, 0x53, 0xb9, 0x22, 0xa1, 0xd1, 0xa2, 0xd2, 0xb9, 0x7e, 0x6f, 0x21, - 0x3e, 0xb4, 0xa9, 0x0a, 0x41, 0x09, 0xe6, 0x9f, 0x3f, 0x33, 0xf5, 0xa1, 0x3c, 0x7f, 0x66, 0xcb, - 0x35, 0x91, 0x20, 0x76, 0xa1, 0x10, 0xaa, 0x52, 0x50, 0x70, 0x5c, 0xc5, 0x2a, 0xa3, 0xfa, 0xad, - 0x39, 0x18, 0xc9, 0x69, 0xe7, 0xe5, 0xbf, 0xfd, 0x2e, 0xa7, 0xfc, 0xe5, 0xeb, 0xbb, 0xca, 0x5f, - 0xbf, 0xbe, 0xab, 0xfc, 0xfd, 0xeb, 0xbb, 0xca, 0x6f, 0xff, 0x71, 0x77, 0x09, 0xaa, 0x96, 0x73, - 0xb2, 0xed, 0x19, 0x67, 0x17, 0xdb, 0x67, 0x17, 0xec, 0x7f, 0x8b, 0x47, 0x59, 0xf6, 0xf3, 0xf6, - 0x7f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x67, 0x82, 0x43, 0x2c, 0x29, 0x00, 0x00, +func init() { proto.RegisterFile("pdpb.proto", fileDescriptor_pdpb_783f7694fb0fd5ee) } + +var fileDescriptor_pdpb_783f7694fb0fd5ee = []byte{ + // 2982 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x1a, 0x4d, 0x6f, 0xe3, 0xc6, + 0xd5, 0x94, 0x25, 0x59, 0x7a, 0xfa, 0xf4, 0xac, 0xd7, 0xd6, 0x6a, 0xb3, 0x9b, 0x0d, 0x77, 0x93, + 0x6e, 0xbe, 0x9c, 0x64, 0xb3, 0x08, 0x02, 0x14, 0x09, 0x2a, 0xcb, 0x5a, 0x47, 0x59, 0x5b, 0x12, + 0x28, 0x39, 0x69, 0x8a, 0x22, 0x2c, 0x2d, 0x8e, 0x65, 0xd6, 0x32, 0xc9, 0x90, 0x23, 0x6f, 0x14, + 0xf4, 0xd0, 0x53, 0x5b, 0xa0, 0x29, 0xd0, 0x1e, 0x92, 0xf6, 0xd0, 0x1f, 0xd0, 0x53, 0x6f, 0xed, + 0xb5, 0x40, 0x4f, 0x3d, 0xf6, 0xd8, 0x63, 0x91, 0x5e, 0x7a, 0xed, 0xa5, 0xe7, 0x62, 0xbe, 0x48, + 0x8a, 0x92, 0xd6, 0x2e, 0x9d, 0x00, 0x39, 0x89, 0xf3, 0xde, 0x9b, 0x37, 0xef, 0x6b, 0xde, 0xbc, + 0x79, 0x23, 0x00, 0xd7, 0x74, 0x8f, 0xb6, 0x5d, 0xcf, 0x21, 0x0e, 0x4a, 0xd3, 0xef, 0x7a, 0xf1, + 0x0c, 0x13, 0x43, 0xc2, 0xea, 0x25, 0xec, 0x19, 0xc7, 0x24, 0x18, 0xd6, 0x3c, 0xec, 0x8e, 0xad, + 0xa1, 0x41, 0x2c, 0xc7, 0xd6, 0xcf, 0x1c, 0x13, 0x07, 0x98, 0x8d, 0x91, 0x33, 0x72, 0xd8, 0xe7, + 0x6b, 0xf4, 0x4b, 0x40, 0x2b, 0xde, 0xc4, 0x27, 0xec, 0x93, 0x03, 0xd4, 0x6d, 0x28, 0x69, 0xf8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, 0xbe, 0x5c, 0x13, 0x09, 0x62, 0x17, 0x0a, 0x91, 0x2a, + 0x05, 0x85, 0xc7, 0x55, 0xac, 0x32, 0xaa, 0xdf, 0x58, 0x80, 0x91, 0x9c, 0x76, 0x5e, 0xf8, 0xc7, + 0x1f, 0x72, 0xca, 0xdf, 0xbe, 0xba, 0xad, 0xfc, 0xfd, 0xab, 0xdb, 0xca, 0x3f, 0xbf, 0xba, 0xad, + 0xfc, 0xee, 0x5f, 0xb7, 0x57, 0xa0, 0xea, 0x78, 0xa3, 0x6d, 0x62, 0x9d, 0x9e, 0x6f, 0x9f, 0x9e, + 0xb3, 0xff, 0x37, 0x1e, 0x65, 0xd9, 0xcf, 0x9b, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x9f, 0x92, + 0x4b, 0xc5, 0x58, 0x29, 0x00, 0x00, } diff --git a/pkg/replicate_mode/replicate_mode.pb.go b/pkg/replicate_mode/replicate_mode.pb.go deleted file mode 100644 index f47b2c962..000000000 --- a/pkg/replicate_mode/replicate_mode.pb.go +++ /dev/null @@ -1,942 +0,0 @@ -// Code generated by protoc-gen-gogo. DO NOT EDIT. -// source: replicate_mode.proto - -package replicate_mode - -import ( - "fmt" - "io" - "math" - - proto "github.com/golang/protobuf/proto" -) - -// Reference imports to suppress errors if they are not otherwise used. -var _ = proto.Marshal -var _ = fmt.Errorf -var _ = math.Inf - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the proto package it is being compiled against. -// A compilation error at this line likely means your copy of the -// proto package needs to be updated. -const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package - -type ReplicateStatus_Mode int32 - -const ( - ReplicateStatus_MAJORITY ReplicateStatus_Mode = 0 - ReplicateStatus_DR_AUTOSYNC ReplicateStatus_Mode = 1 -) - -var ReplicateStatus_Mode_name = map[int32]string{ - 0: "MAJORITY", - 1: "DR_AUTOSYNC", -} -var ReplicateStatus_Mode_value = map[string]int32{ - "MAJORITY": 0, - "DR_AUTOSYNC": 1, -} - -func (x ReplicateStatus_Mode) String() string { - return proto.EnumName(ReplicateStatus_Mode_name, int32(x)) -} -func (ReplicateStatus_Mode) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_replicate_mode_90eacee3e89a5ccb, []int{0, 0} -} - -type DRAutoSync_State int32 - -const ( - DRAutoSync_SYNC DRAutoSync_State = 0 - DRAutoSync_ASYNC DRAutoSync_State = 1 - DRAutoSync_SYNC_RECOVER DRAutoSync_State = 2 -) - -var DRAutoSync_State_name = map[int32]string{ - 0: "SYNC", - 1: "ASYNC", - 2: "SYNC_RECOVER", -} -var DRAutoSync_State_value = map[string]int32{ - "SYNC": 0, - "ASYNC": 1, - "SYNC_RECOVER": 2, -} - -func (x DRAutoSync_State) String() string { - return proto.EnumName(DRAutoSync_State_name, int32(x)) -} -func (DRAutoSync_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_replicate_mode_90eacee3e89a5ccb, []int{1, 0} -} - -type RegionReplicateStatus_State int32 - -const ( - RegionReplicateStatus_UNKNOWN RegionReplicateStatus_State = 0 - RegionReplicateStatus_MAJORITY RegionReplicateStatus_State = 1 - RegionReplicateStatus_INTEGRITY_OVER_LABEL RegionReplicateStatus_State = 2 -) - -var RegionReplicateStatus_State_name = map[int32]string{ - 0: "UNKNOWN", - 1: "MAJORITY", - 2: "INTEGRITY_OVER_LABEL", -} -var RegionReplicateStatus_State_value = map[string]int32{ - "UNKNOWN": 0, - "MAJORITY": 1, - "INTEGRITY_OVER_LABEL": 2, -} - -func (x RegionReplicateStatus_State) String() string { - return proto.EnumName(RegionReplicateStatus_State_name, int32(x)) -} -func (RegionReplicateStatus_State) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_replicate_mode_90eacee3e89a5ccb, []int{2, 0} -} - -// The replicate status sync from PD to TiKV. -type ReplicateStatus struct { - Mode ReplicateStatus_Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=replicate_mode.ReplicateStatus_Mode" json:"mode,omitempty"` - DrAutosync *DRAutoSync `protobuf:"bytes,2,opt,name=dr_autosync,json=drAutosync" json:"dr_autosync,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *ReplicateStatus) Reset() { *m = ReplicateStatus{} } -func (m *ReplicateStatus) String() string { return proto.CompactTextString(m) } -func (*ReplicateStatus) ProtoMessage() {} -func (*ReplicateStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_replicate_mode_90eacee3e89a5ccb, []int{0} -} -func (m *ReplicateStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *ReplicateStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_ReplicateStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (dst *ReplicateStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_ReplicateStatus.Merge(dst, src) -} -func (m *ReplicateStatus) XXX_Size() int { - return m.Size() -} -func (m *ReplicateStatus) XXX_DiscardUnknown() { - xxx_messageInfo_ReplicateStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_ReplicateStatus proto.InternalMessageInfo - -func (m *ReplicateStatus) GetMode() ReplicateStatus_Mode { - if m != nil { - return m.Mode - } - return ReplicateStatus_MAJORITY -} - -func (m *ReplicateStatus) GetDrAutosync() *DRAutoSync { - if m != nil { - return m.DrAutosync - } - return nil -} - -// The status of dr-autosync mode. -type DRAutoSync struct { - LabelKey string `protobuf:"bytes,1,opt,name=label_key,json=labelKey,proto3" json:"label_key,omitempty"` - State DRAutoSync_State `protobuf:"varint,2,opt,name=state,proto3,enum=replicate_mode.DRAutoSync_State" json:"state,omitempty"` - StateId uint64 `protobuf:"varint,3,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` - WaitSyncTimeoutHint int32 `protobuf:"varint,4,opt,name=wait_sync_timeout_hint,json=waitSyncTimeoutHint,proto3" json:"wait_sync_timeout_hint,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *DRAutoSync) Reset() { *m = DRAutoSync{} } -func (m *DRAutoSync) String() string { return proto.CompactTextString(m) } -func (*DRAutoSync) ProtoMessage() {} -func (*DRAutoSync) Descriptor() ([]byte, []int) { - return fileDescriptor_replicate_mode_90eacee3e89a5ccb, []int{1} -} -func (m *DRAutoSync) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *DRAutoSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_DRAutoSync.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (dst *DRAutoSync) XXX_Merge(src proto.Message) { - xxx_messageInfo_DRAutoSync.Merge(dst, src) -} -func (m *DRAutoSync) XXX_Size() int { - return m.Size() -} -func (m *DRAutoSync) XXX_DiscardUnknown() { - xxx_messageInfo_DRAutoSync.DiscardUnknown(m) -} - -var xxx_messageInfo_DRAutoSync proto.InternalMessageInfo - -func (m *DRAutoSync) GetLabelKey() string { - if m != nil { - return m.LabelKey - } - return "" -} - -func (m *DRAutoSync) GetState() DRAutoSync_State { - if m != nil { - return m.State - } - return DRAutoSync_SYNC -} - -func (m *DRAutoSync) GetStateId() uint64 { - if m != nil { - return m.StateId - } - return 0 -} - -func (m *DRAutoSync) GetWaitSyncTimeoutHint() int32 { - if m != nil { - return m.WaitSyncTimeoutHint - } - return 0 -} - -// The replicate status sync from TiKV to PD. -type RegionReplicateStatus struct { - State RegionReplicateStatus_State `protobuf:"varint,1,opt,name=state,proto3,enum=replicate_mode.RegionReplicateStatus_State" json:"state,omitempty"` - StateId uint64 `protobuf:"varint,2,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` - XXX_NoUnkeyedLiteral struct{} `json:"-"` - XXX_unrecognized []byte `json:"-"` - XXX_sizecache int32 `json:"-"` -} - -func (m *RegionReplicateStatus) Reset() { *m = RegionReplicateStatus{} } -func (m *RegionReplicateStatus) String() string { return proto.CompactTextString(m) } -func (*RegionReplicateStatus) ProtoMessage() {} -func (*RegionReplicateStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_replicate_mode_90eacee3e89a5ccb, []int{2} -} -func (m *RegionReplicateStatus) XXX_Unmarshal(b []byte) error { - return m.Unmarshal(b) -} -func (m *RegionReplicateStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { - if deterministic { - return xxx_messageInfo_RegionReplicateStatus.Marshal(b, m, deterministic) - } else { - b = b[:cap(b)] - n, err := m.MarshalTo(b) - if err != nil { - return nil, err - } - return b[:n], nil - } -} -func (dst *RegionReplicateStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_RegionReplicateStatus.Merge(dst, src) -} -func (m *RegionReplicateStatus) XXX_Size() int { - return m.Size() -} -func (m *RegionReplicateStatus) XXX_DiscardUnknown() { - xxx_messageInfo_RegionReplicateStatus.DiscardUnknown(m) -} - -var xxx_messageInfo_RegionReplicateStatus proto.InternalMessageInfo - -func (m *RegionReplicateStatus) GetState() RegionReplicateStatus_State { - if m != nil { - return m.State - } - return RegionReplicateStatus_UNKNOWN -} - -func (m *RegionReplicateStatus) GetStateId() uint64 { - if m != nil { - return m.StateId - } - return 0 -} - -func init() { - proto.RegisterType((*ReplicateStatus)(nil), "replicate_mode.ReplicateStatus") - proto.RegisterType((*DRAutoSync)(nil), "replicate_mode.DRAutoSync") - proto.RegisterType((*RegionReplicateStatus)(nil), "replicate_mode.RegionReplicateStatus") - proto.RegisterEnum("replicate_mode.ReplicateStatus_Mode", ReplicateStatus_Mode_name, ReplicateStatus_Mode_value) - proto.RegisterEnum("replicate_mode.DRAutoSync_State", DRAutoSync_State_name, DRAutoSync_State_value) - proto.RegisterEnum("replicate_mode.RegionReplicateStatus_State", RegionReplicateStatus_State_name, RegionReplicateStatus_State_value) -} -func (m *ReplicateStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ReplicateStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.Mode != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintReplicateMode(dAtA, i, uint64(m.Mode)) - } - if m.DrAutosync != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintReplicateMode(dAtA, i, uint64(m.DrAutosync.Size())) - n1, err := m.DrAutosync.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *DRAutoSync) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DRAutoSync) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.LabelKey) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintReplicateMode(dAtA, i, uint64(len(m.LabelKey))) - i += copy(dAtA[i:], m.LabelKey) - } - if m.State != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintReplicateMode(dAtA, i, uint64(m.State)) - } - if m.StateId != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintReplicateMode(dAtA, i, uint64(m.StateId)) - } - if m.WaitSyncTimeoutHint != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintReplicateMode(dAtA, i, uint64(m.WaitSyncTimeoutHint)) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func (m *RegionReplicateStatus) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *RegionReplicateStatus) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if m.State != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintReplicateMode(dAtA, i, uint64(m.State)) - } - if m.StateId != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintReplicateMode(dAtA, i, uint64(m.StateId)) - } - if m.XXX_unrecognized != nil { - i += copy(dAtA[i:], m.XXX_unrecognized) - } - return i, nil -} - -func encodeVarintReplicateMode(dAtA []byte, offset int, v uint64) int { - for v >= 1<<7 { - dAtA[offset] = uint8(v&0x7f | 0x80) - v >>= 7 - offset++ - } - dAtA[offset] = uint8(v) - return offset + 1 -} -func (m *ReplicateStatus) Size() (n int) { - var l int - _ = l - if m.Mode != 0 { - n += 1 + sovReplicateMode(uint64(m.Mode)) - } - if m.DrAutosync != nil { - l = m.DrAutosync.Size() - n += 1 + l + sovReplicateMode(uint64(l)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *DRAutoSync) Size() (n int) { - var l int - _ = l - l = len(m.LabelKey) - if l > 0 { - n += 1 + l + sovReplicateMode(uint64(l)) - } - if m.State != 0 { - n += 1 + sovReplicateMode(uint64(m.State)) - } - if m.StateId != 0 { - n += 1 + sovReplicateMode(uint64(m.StateId)) - } - if m.WaitSyncTimeoutHint != 0 { - n += 1 + sovReplicateMode(uint64(m.WaitSyncTimeoutHint)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func (m *RegionReplicateStatus) Size() (n int) { - var l int - _ = l - if m.State != 0 { - n += 1 + sovReplicateMode(uint64(m.State)) - } - if m.StateId != 0 { - n += 1 + sovReplicateMode(uint64(m.StateId)) - } - if m.XXX_unrecognized != nil { - n += len(m.XXX_unrecognized) - } - return n -} - -func sovReplicateMode(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n -} -func sozReplicateMode(x uint64) (n int) { - return sovReplicateMode(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *ReplicateStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: ReplicateStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ReplicateStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) - } - m.Mode = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Mode |= (ReplicateStatus_Mode(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DrAutosync", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthReplicateMode - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - if m.DrAutosync == nil { - m.DrAutosync = &DRAutoSync{} - } - if err := m.DrAutosync.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { - return err - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipReplicateMode(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthReplicateMode - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *DRAutoSync) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: DRAutoSync: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DRAutoSync: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field LabelKey", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLen := int(stringLen) - if intStringLen < 0 { - return ErrInvalidLengthReplicateMode - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.LabelKey = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.State |= (DRAutoSync_State(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StateId", wireType) - } - m.StateId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StateId |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field WaitSyncTimeoutHint", wireType) - } - m.WaitSyncTimeoutHint = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.WaitSyncTimeoutHint |= (int32(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipReplicateMode(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthReplicateMode - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *RegionReplicateStatus) Unmarshal(dAtA []byte) error { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - preIndex := iNdEx - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - fieldNum := int32(wire >> 3) - wireType := int(wire & 0x7) - if wireType == 4 { - return fmt.Errorf("proto: RegionReplicateStatus: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: RegionReplicateStatus: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) - } - m.State = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.State |= (RegionReplicateStatus_State(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 2: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field StateId", wireType) - } - m.StateId = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.StateId |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - default: - iNdEx = preIndex - skippy, err := skipReplicateMode(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthReplicateMode - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipReplicateMode(dAtA []byte) (n int, err error) { - l := len(dAtA) - iNdEx := 0 - for iNdEx < l { - var wire uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - wire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - wireType := int(wire & 0x7) - switch wireType { - case 0: - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - iNdEx++ - if dAtA[iNdEx-1] < 0x80 { - break - } - } - return iNdEx, nil - case 1: - iNdEx += 8 - return iNdEx, nil - case 2: - var length int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - length |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - iNdEx += length - if length < 0 { - return 0, ErrInvalidLengthReplicateMode - } - return iNdEx, nil - case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowReplicateMode - } - if iNdEx >= l { - return 0, io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - innerWire |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - innerWireType := int(innerWire & 0x7) - if innerWireType == 4 { - break - } - next, err := skipReplicateMode(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil - case 4: - return iNdEx, nil - case 5: - iNdEx += 4 - return iNdEx, nil - default: - return 0, fmt.Errorf("proto: illegal wireType %d", wireType) - } - } - panic("unreachable") -} - -var ( - ErrInvalidLengthReplicateMode = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowReplicateMode = fmt.Errorf("proto: integer overflow") -) - -func init() { - proto.RegisterFile("replicate_mode.proto", fileDescriptor_replicate_mode_90eacee3e89a5ccb) -} - -var fileDescriptor_replicate_mode_90eacee3e89a5ccb = []byte{ - // 410 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x92, 0xdf, 0x6a, 0xd4, 0x40, - 0x18, 0xc5, 0x33, 0x31, 0xb1, 0xd9, 0x2f, 0x65, 0x1b, 0xc6, 0x2a, 0x51, 0x21, 0x84, 0xa0, 0x10, - 0x10, 0x72, 0xb1, 0x05, 0x11, 0xf4, 0x26, 0x6d, 0x83, 0xae, 0x6d, 0x13, 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, 0x02, 0x00, 0x00, -} diff --git a/pkg/replication_modepb/replication_modepb.pb.go b/pkg/replication_modepb/replication_modepb.pb.go new file mode 100644 index 000000000..36dcf0769 --- /dev/null +++ b/pkg/replication_modepb/replication_modepb.pb.go @@ -0,0 +1,955 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: replication_modepb.proto + +package replication_modepb + +import ( + "fmt" + "io" + "math" + + proto "github.com/golang/protobuf/proto" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package + +type ReplicationMode int32 + +const ( + // The standard mode. Replicate logs to majority peer. + ReplicationMode_MAJORITY ReplicationMode = 0 + // DR mode. Replicate logs among 2 DCs. + ReplicationMode_DR_AUTO_SYNC ReplicationMode = 1 +) + +var ReplicationMode_name = map[int32]string{ + 0: "MAJORITY", + 1: "DR_AUTO_SYNC", +} +var ReplicationMode_value = map[string]int32{ + "MAJORITY": 0, + "DR_AUTO_SYNC": 1, +} + +func (x ReplicationMode) String() string { + return proto.EnumName(ReplicationMode_name, int32(x)) +} +func (ReplicationMode) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_replication_modepb_5de8f3cc9358480b, []int{0} +} + +type DRAutoSyncState int32 + +const ( + // Raft logs need to sync between different DCs + DRAutoSyncState_SYNC DRAutoSyncState = 0 + // Raft logs need to sync to majority peers + DRAutoSyncState_ASYNC DRAutoSyncState = 1 + // Switching from ASYNC to SYNC mode + DRAutoSyncState_SYNC_RECOVER DRAutoSyncState = 2 +) + +var DRAutoSyncState_name = map[int32]string{ + 0: "SYNC", + 1: "ASYNC", + 2: "SYNC_RECOVER", +} +var DRAutoSyncState_value = map[string]int32{ + "SYNC": 0, + "ASYNC": 1, + "SYNC_RECOVER": 2, +} + +func (x DRAutoSyncState) String() string { + return proto.EnumName(DRAutoSyncState_name, int32(x)) +} +func (DRAutoSyncState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_replication_modepb_5de8f3cc9358480b, []int{1} +} + +type RegionReplicationState int32 + +const ( + // The region's state is unknown + RegionReplicationState_UNKNOWN RegionReplicationState = 0 + // Logs sync to majority peers + RegionReplicationState_SIMPLE_MAJORITY RegionReplicationState = 1 + // Logs sync to different DCs + RegionReplicationState_INTEGRITY_OVER_LABEL RegionReplicationState = 2 +) + +var RegionReplicationState_name = map[int32]string{ + 0: "UNKNOWN", + 1: "SIMPLE_MAJORITY", + 2: "INTEGRITY_OVER_LABEL", +} +var RegionReplicationState_value = map[string]int32{ + "UNKNOWN": 0, + "SIMPLE_MAJORITY": 1, + "INTEGRITY_OVER_LABEL": 2, +} + +func (x RegionReplicationState) String() string { + return proto.EnumName(RegionReplicationState_name, int32(x)) +} +func (RegionReplicationState) EnumDescriptor() ([]byte, []int) { + return fileDescriptor_replication_modepb_5de8f3cc9358480b, []int{2} +} + +// The replication status sync from PD to TiKV. +type ReplicationStatus struct { + Mode ReplicationMode `protobuf:"varint,1,opt,name=mode,proto3,enum=replication_modepb.ReplicationMode" json:"mode,omitempty"` + DrAutoSync *DRAutoSync `protobuf:"bytes,2,opt,name=dr_auto_sync,json=drAutoSync" json:"dr_auto_sync,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *ReplicationStatus) Reset() { *m = ReplicationStatus{} } +func (m *ReplicationStatus) String() string { return proto.CompactTextString(m) } +func (*ReplicationStatus) ProtoMessage() {} +func (*ReplicationStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_replication_modepb_5de8f3cc9358480b, []int{0} +} +func (m *ReplicationStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *ReplicationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_ReplicationStatus.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (dst *ReplicationStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_ReplicationStatus.Merge(dst, src) +} +func (m *ReplicationStatus) XXX_Size() int { + return m.Size() +} +func (m *ReplicationStatus) XXX_DiscardUnknown() { + xxx_messageInfo_ReplicationStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_ReplicationStatus proto.InternalMessageInfo + +func (m *ReplicationStatus) GetMode() ReplicationMode { + if m != nil { + return m.Mode + } + return ReplicationMode_MAJORITY +} + +func (m *ReplicationStatus) GetDrAutoSync() *DRAutoSync { + if m != nil { + return m.DrAutoSync + } + return nil +} + +// The status of dr-autosync mode. +type DRAutoSync struct { + // The key of the label that used for distinguish different DC. + LabelKey string `protobuf:"bytes,1,opt,name=label_key,json=labelKey,proto3" json:"label_key,omitempty"` + State DRAutoSyncState `protobuf:"varint,2,opt,name=state,proto3,enum=replication_modepb.DRAutoSyncState" json:"state,omitempty"` + // Unique ID of the state, it increases after each state transfer. + StateId uint64 `protobuf:"varint,3,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` + // Duration to wait before switching to SYNC by force (in seconds) + WaitSyncTimeoutHint int32 `protobuf:"varint,4,opt,name=wait_sync_timeout_hint,json=waitSyncTimeoutHint,proto3" json:"wait_sync_timeout_hint,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DRAutoSync) Reset() { *m = DRAutoSync{} } +func (m *DRAutoSync) String() string { return proto.CompactTextString(m) } +func (*DRAutoSync) ProtoMessage() {} +func (*DRAutoSync) Descriptor() ([]byte, []int) { + return fileDescriptor_replication_modepb_5de8f3cc9358480b, []int{1} +} +func (m *DRAutoSync) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *DRAutoSync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_DRAutoSync.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (dst *DRAutoSync) XXX_Merge(src proto.Message) { + xxx_messageInfo_DRAutoSync.Merge(dst, src) +} +func (m *DRAutoSync) XXX_Size() int { + return m.Size() +} +func (m *DRAutoSync) XXX_DiscardUnknown() { + xxx_messageInfo_DRAutoSync.DiscardUnknown(m) +} + +var xxx_messageInfo_DRAutoSync proto.InternalMessageInfo + +func (m *DRAutoSync) GetLabelKey() string { + if m != nil { + return m.LabelKey + } + return "" +} + +func (m *DRAutoSync) GetState() DRAutoSyncState { + if m != nil { + return m.State + } + return DRAutoSyncState_SYNC +} + +func (m *DRAutoSync) GetStateId() uint64 { + if m != nil { + return m.StateId + } + return 0 +} + +func (m *DRAutoSync) GetWaitSyncTimeoutHint() int32 { + if m != nil { + return m.WaitSyncTimeoutHint + } + return 0 +} + +// The replication status sync from TiKV to PD. +type RegionReplicationStatus struct { + State RegionReplicationState `protobuf:"varint,1,opt,name=state,proto3,enum=replication_modepb.RegionReplicationState" json:"state,omitempty"` + // Unique ID of the state, it increases after each state transfer. + StateId uint64 `protobuf:"varint,2,opt,name=state_id,json=stateId,proto3" json:"state_id,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RegionReplicationStatus) Reset() { *m = RegionReplicationStatus{} } +func (m *RegionReplicationStatus) String() string { return proto.CompactTextString(m) } +func (*RegionReplicationStatus) ProtoMessage() {} +func (*RegionReplicationStatus) Descriptor() ([]byte, []int) { + return fileDescriptor_replication_modepb_5de8f3cc9358480b, []int{2} +} +func (m *RegionReplicationStatus) XXX_Unmarshal(b []byte) error { + return m.Unmarshal(b) +} +func (m *RegionReplicationStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + if deterministic { + return xxx_messageInfo_RegionReplicationStatus.Marshal(b, m, deterministic) + } else { + b = b[:cap(b)] + n, err := m.MarshalTo(b) + if err != nil { + return nil, err + } + return b[:n], nil + } +} +func (dst *RegionReplicationStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_RegionReplicationStatus.Merge(dst, src) +} +func (m *RegionReplicationStatus) XXX_Size() int { + return m.Size() +} +func (m *RegionReplicationStatus) XXX_DiscardUnknown() { + xxx_messageInfo_RegionReplicationStatus.DiscardUnknown(m) +} + +var xxx_messageInfo_RegionReplicationStatus proto.InternalMessageInfo + +func (m *RegionReplicationStatus) GetState() RegionReplicationState { + if m != nil { + return m.State + } + return RegionReplicationState_UNKNOWN +} + +func (m *RegionReplicationStatus) GetStateId() uint64 { + if m != nil { + return m.StateId + } + return 0 +} + +func init() { + proto.RegisterType((*ReplicationStatus)(nil), "replication_modepb.ReplicationStatus") + proto.RegisterType((*DRAutoSync)(nil), "replication_modepb.DRAutoSync") + proto.RegisterType((*RegionReplicationStatus)(nil), "replication_modepb.RegionReplicationStatus") + proto.RegisterEnum("replication_modepb.ReplicationMode", ReplicationMode_name, ReplicationMode_value) + proto.RegisterEnum("replication_modepb.DRAutoSyncState", DRAutoSyncState_name, DRAutoSyncState_value) + proto.RegisterEnum("replication_modepb.RegionReplicationState", RegionReplicationState_name, RegionReplicationState_value) +} +func (m *ReplicationStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ReplicationStatus) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.Mode != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.Mode)) + } + if m.DrAutoSync != nil { + dAtA[i] = 0x12 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.DrAutoSync.Size())) + n1, err := m.DrAutoSync.MarshalTo(dAtA[i:]) + if err != nil { + return 0, err + } + i += n1 + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *DRAutoSync) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DRAutoSync) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.LabelKey) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(len(m.LabelKey))) + i += copy(dAtA[i:], m.LabelKey) + } + if m.State != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.State)) + } + if m.StateId != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.StateId)) + } + if m.WaitSyncTimeoutHint != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.WaitSyncTimeoutHint)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func (m *RegionReplicationStatus) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *RegionReplicationStatus) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if m.State != 0 { + dAtA[i] = 0x8 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.State)) + } + if m.StateId != 0 { + dAtA[i] = 0x10 + i++ + i = encodeVarintReplicationModepb(dAtA, i, uint64(m.StateId)) + } + if m.XXX_unrecognized != nil { + i += copy(dAtA[i:], m.XXX_unrecognized) + } + return i, nil +} + +func encodeVarintReplicationModepb(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func (m *ReplicationStatus) Size() (n int) { + var l int + _ = l + if m.Mode != 0 { + n += 1 + sovReplicationModepb(uint64(m.Mode)) + } + if m.DrAutoSync != nil { + l = m.DrAutoSync.Size() + n += 1 + l + sovReplicationModepb(uint64(l)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *DRAutoSync) Size() (n int) { + var l int + _ = l + l = len(m.LabelKey) + if l > 0 { + n += 1 + l + sovReplicationModepb(uint64(l)) + } + if m.State != 0 { + n += 1 + sovReplicationModepb(uint64(m.State)) + } + if m.StateId != 0 { + n += 1 + sovReplicationModepb(uint64(m.StateId)) + } + if m.WaitSyncTimeoutHint != 0 { + n += 1 + sovReplicationModepb(uint64(m.WaitSyncTimeoutHint)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func (m *RegionReplicationStatus) Size() (n int) { + var l int + _ = l + if m.State != 0 { + n += 1 + sovReplicationModepb(uint64(m.State)) + } + if m.StateId != 0 { + n += 1 + sovReplicationModepb(uint64(m.StateId)) + } + if m.XXX_unrecognized != nil { + n += len(m.XXX_unrecognized) + } + return n +} + +func sovReplicationModepb(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozReplicationModepb(x uint64) (n int) { + return sovReplicationModepb(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *ReplicationStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: ReplicationStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ReplicationStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Mode", wireType) + } + m.Mode = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Mode |= (ReplicationMode(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DrAutoSync", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthReplicationModepb + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + if m.DrAutoSync == nil { + m.DrAutoSync = &DRAutoSync{} + } + if err := m.DrAutoSync.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { + return err + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipReplicationModepb(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthReplicationModepb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *DRAutoSync) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: DRAutoSync: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DRAutoSync: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field LabelKey", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthReplicationModepb + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.LabelKey = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= (DRAutoSyncState(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StateId", wireType) + } + m.StateId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StateId |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field WaitSyncTimeoutHint", wireType) + } + m.WaitSyncTimeoutHint = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.WaitSyncTimeoutHint |= (int32(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipReplicationModepb(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthReplicationModepb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *RegionReplicationStatus) Unmarshal(dAtA []byte) error { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + preIndex := iNdEx + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + fieldNum := int32(wire >> 3) + wireType := int(wire & 0x7) + if wireType == 4 { + return fmt.Errorf("proto: RegionReplicationStatus: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: RegionReplicationStatus: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field State", wireType) + } + m.State = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.State |= (RegionReplicationState(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 2: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field StateId", wireType) + } + m.StateId = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.StateId |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + default: + iNdEx = preIndex + skippy, err := skipReplicationModepb(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthReplicationModepb + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipReplicationModepb(dAtA []byte) (n int, err error) { + l := len(dAtA) + iNdEx := 0 + for iNdEx < l { + var wire uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + wire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + wireType := int(wire & 0x7) + switch wireType { + case 0: + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + iNdEx++ + if dAtA[iNdEx-1] < 0x80 { + break + } + } + return iNdEx, nil + case 1: + iNdEx += 8 + return iNdEx, nil + case 2: + var length int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthReplicationModepb + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowReplicationModepb + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + innerWire |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + innerWireType := int(innerWire & 0x7) + if innerWireType == 4 { + break + } + next, err := skipReplicationModepb(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + return iNdEx, nil + case 4: + return iNdEx, nil + case 5: + iNdEx += 4 + return iNdEx, nil + default: + return 0, fmt.Errorf("proto: illegal wireType %d", wireType) + } + } + panic("unreachable") +} + +var ( + ErrInvalidLengthReplicationModepb = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowReplicationModepb = fmt.Errorf("proto: integer overflow") +) + +func init() { + proto.RegisterFile("replication_modepb.proto", fileDescriptor_replication_modepb_5de8f3cc9358480b) +} + +var fileDescriptor_replication_modepb_5de8f3cc9358480b = []byte{ + // 421 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0xd1, 0x6e, 0xd3, 0x30, + 0x14, 0xad, 0x4b, 0xca, 0xd2, 0xbb, 0x8a, 0x06, 0x0f, 0x8d, 0x20, 0xa4, 0x28, 0x2a, 0x2f, 0x51, + 0x1e, 0x26, 0xb1, 0x3d, 0x00, 0x6f, 0xcb, 0xb6, 0x08, 0xc2, 0xda, 0x04, 0x39, 0x19, 0x68, 0x4f, + 0x56, 0xda, 0x58, 0x60, 0xd1, 0xc5, 0x55, 0xea, 0x80, 0xf2, 0x13, 0x3c, 0xf3, 0x21, 0x7c, 0x04, + 0x8f, 0x7c, 0x02, 0x2a, 0x3f, 0x82, 0xec, 0x68, 0x14, 0xb6, 0xf0, 0x76, 0xef, 0x3d, 0x3e, 0xc7, + 0xe7, 0x1e, 0x1b, 0xec, 0x8a, 0xad, 0x96, 0x7c, 0x91, 0x4b, 0x2e, 0x4a, 0x7a, 0x25, 0x0a,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x70, 0x3b, 0xcd, 0xf6, 0xff, 0x31, 0xeb, 0x3f, 0x85, 0xf1, 0x8d, + 0x97, 0xc0, 0x23, 0x30, 0x67, 0xc1, 0xeb, 0x84, 0x44, 0xd9, 0xa5, 0xd5, 0xc3, 0x16, 0x8c, 0xce, + 0x08, 0x0d, 0x2e, 0xb2, 0x84, 0xa6, 0x97, 0xf1, 0xa9, 0x85, 0xfc, 0xe7, 0x30, 0xbe, 0x11, 0x0a, + 0x36, 0xc1, 0xd0, 0x60, 0x0f, 0x0f, 0x61, 0x10, 0xb4, 0xe7, 0x14, 0x53, 0x55, 0x94, 0x84, 0xa7, + 0xc9, 0xdb, 0x90, 0x58, 0x7d, 0x3f, 0x83, 0xfd, 0x6e, 0xa3, 0x78, 0x17, 0x76, 0x2e, 0xe2, 0xf3, + 0x38, 0x79, 0x17, 0x5b, 0x3d, 0xbc, 0x07, 0xe3, 0x34, 0x9a, 0xbd, 0x99, 0x86, 0xf4, 0x8f, 0x0f, + 0x84, 0x6d, 0x78, 0x10, 0xc5, 0x59, 0xf8, 0x52, 0xb5, 0x54, 0xe9, 0xd1, 0x69, 0x70, 0x12, 0x4e, + 0xad, 0xfe, 0x89, 0xf5, 0x7d, 0xe3, 0xa0, 0x1f, 0x1b, 0x07, 0xfd, 0xdc, 0x38, 0xe8, 0xeb, 0x2f, + 0xa7, 0x37, 0xbf, 0xab, 0xff, 0xeb, 0xd1, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0xaa, 0x43, 0xe2, + 0xbf, 0xcb, 0x02, 0x00, 0x00, +} diff --git a/proto/pdpb.proto b/proto/pdpb.proto index e0662b2d3..86c4e6e3f 100644 --- a/proto/pdpb.proto +++ b/proto/pdpb.proto @@ -3,7 +3,7 @@ package pdpb; import "metapb.proto"; import "eraftpb.proto"; -import "replicate_mode.proto"; +import "replication_modepb.proto"; import "gogoproto/gogo.proto"; import "rustproto.proto"; @@ -128,7 +128,7 @@ message BootstrapRequest { message BootstrapResponse { ResponseHeader header = 1; - replicate_mode.ReplicateStatus replicate_status = 2; + replication_modepb.ReplicationStatus replication_status = 2; } message IsBootstrappedRequest { @@ -172,7 +172,7 @@ message PutStoreRequest { message PutStoreResponse { ResponseHeader header = 1; - replicate_mode.ReplicateStatus replicate_status = 2; + replication_modepb.ReplicationStatus replication_status = 2; } message GetAllStoresRequest { @@ -299,7 +299,7 @@ message RegionHeartbeatRequest { uint64 approximate_keys = 13; // Term is the term of raft group. uint64 term = 14; - replicate_mode.RegionReplicateStatus replicate_status = 15; + replication_modepb.RegionReplicationStatus replication_status = 15; } message ChangePeer { @@ -472,7 +472,7 @@ message StoreHeartbeatRequest { message StoreHeartbeatResponse { ResponseHeader header = 1; - replicate_mode.ReplicateStatus replicate_status = 2; + replication_modepb.ReplicationStatus replication_status = 2; } message ScatterRegionRequest { diff --git a/proto/replicate_mode.proto b/proto/replicate_mode.proto deleted file mode 100644 index e7492c214..000000000 --- a/proto/replicate_mode.proto +++ /dev/null @@ -1,36 +0,0 @@ -syntax = "proto3"; -package replicate_mode; - -// The replicate status sync from PD to TiKV. -message ReplicateStatus { - enum Mode { - MAJORITY = 0; // the standard mode. Replicate logs to majority peer. - DR_AUTOSYNC = 1; // DR mode. Replicate logs among 2 DCs. - } - Mode mode = 1; - DRAutoSync dr_autosync = 2; -} - -// The status of dr-autosync mode. -message DRAutoSync { - enum State { - SYNC = 0; // raft logs need to sync between different DCs - ASYNC = 1; // raft logs need to sync to majority peers - SYNC_RECOVER = 2; // switching from ASYNC to SYNC mode - } - string label_key = 1; // the key of the label that used for distinguish different DC. - State state = 2; - uint64 state_id = 3; // Unique ID of the state, it increases after each state transfer. - int32 wait_sync_timeout_hint = 4; // Duration to wait before switching to SYNC by force (in seconds) -} - -// The replicate status sync from TiKV to PD. -message RegionReplicateStatus { - enum State { - UNKNOWN = 0; // The region's state is unknown - MAJORITY = 1; // Logs sync to majority peers - INTEGRITY_OVER_LABEL = 2; // Logs sync to different DCs - } - State state = 1; - uint64 state_id = 2; // Unique ID of the state, it increases after each state transfer. -} diff --git a/proto/replication_modepb.proto b/proto/replication_modepb.proto new file mode 100644 index 000000000..9bfb8814d --- /dev/null +++ b/proto/replication_modepb.proto @@ -0,0 +1,51 @@ +syntax = "proto3"; +package replication_modepb; + +enum ReplicationMode { + // The standard mode. Replicate logs to majority peer. + MAJORITY = 0; + // DR mode. Replicate logs among 2 DCs. + DR_AUTO_SYNC = 1; +} + +// The replication status sync from PD to TiKV. +message ReplicationStatus { + ReplicationMode mode = 1; + DRAutoSync dr_auto_sync = 2; +} + +enum DRAutoSyncState { + // Raft logs need to sync between different DCs + SYNC = 0; + // Raft logs need to sync to majority peers + ASYNC = 1; + // Switching from ASYNC to SYNC mode + SYNC_RECOVER = 2; +} + +// The status of dr-autosync mode. +message DRAutoSync { + // The key of the label that used for distinguish different DC. + string label_key = 1; + DRAutoSyncState state = 2; + // Unique ID of the state, it increases after each state transfer. + uint64 state_id = 3; + // Duration to wait before switching to SYNC by force (in seconds) + int32 wait_sync_timeout_hint = 4; +} + +enum RegionReplicationState { + // The region's state is unknown + UNKNOWN = 0; + // Logs sync to majority peers + SIMPLE_MAJORITY = 1; + // Logs sync to different DCs + INTEGRITY_OVER_LABEL = 2; +} + +// The replication status sync from TiKV to PD. +message RegionReplicationStatus { + RegionReplicationState state = 1; + // Unique ID of the state, it increases after each state transfer. + uint64 state_id = 2; +} diff --git a/scripts/generate_go.sh b/scripts/generate_go.sh index f13e35974..7eedef7a1 100755 --- a/scripts/generate_go.sh +++ b/scripts/generate_go.sh @@ -48,7 +48,7 @@ ret=0 function gen() { base_name=$(basename $1 ".proto") - protoc -I.:../include -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --grpc-gateway_out=logtostderr=true:../pkg/$base_name --gofast_out=plugins=grpc,$GO_OUT_M:../pkg/$base_name $1 || ret=$? + protoc -I.:../include --grpc-gateway_out=logtostderr=true:../pkg/$base_name --gofast_out=plugins=grpc,$GO_OUT_M:../pkg/$base_name $1 || ret=$? cd ../pkg/$base_name sed_inplace -E 's/import _ \"gogoproto\"//g' *.pb*.go sed_inplace -E 's/import fmt \"fmt\"//g' *.pb*.go