From 0c81f89d208a22b168f73279d9937bcc50665ff8 Mon Sep 17 00:00:00 2001 From: Xuecheng Zhang Date: Mon, 6 Jan 2020 15:48:05 +0800 Subject: [PATCH] track tool dependencies in the repo (#446) --- .gitignore | 1 + Makefile | 63 +- dm/pb/dmmaster.pb.go | 2928 ++++++++++++++----------- dm/pb/dmmaster.pb.gw.go | 154 ++ dm/pb/dmworker.pb.go | 4274 +++++++++++++++++++++---------------- dm/pb/tracer.pb.go | 398 ++-- dm/pb/tracer_base.pb.go | 229 +- dm/pb/tracer_syncer.pb.go | 672 +++--- generate-dm.sh | 70 +- go.mod | 4 +- go.sum | 4 + tests/generate-mock.sh | 6 +- tools.json | 37 + tools/tools.go | 24 + 14 files changed, 5161 insertions(+), 3703 deletions(-) create mode 100644 tools.json create mode 100644 tools/tools.go diff --git a/.gitignore b/.gitignore index 8549cc6115..61737a89e9 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ dm-worker.log* dm-master.log* dmctl.log relay_log/* +/_tools/ vendor */*.DS_Store tidb-slow.log diff --git a/Makefile b/Makefile index 4b064ad29d..9f0c013572 100644 --- a/Makefile +++ b/Makefile @@ -8,17 +8,17 @@ CURDIR := $(shell pwd) GO := GO111MODULE=on go GOBUILD := CGO_ENABLED=0 $(GO) build GOTEST := CGO_ENABLED=1 $(GO) test -PACKAGES := $$(go list ./... | grep -vE 'tests|cmd|vendor|pbmock') +PACKAGES := $$(go list ./... | grep -vE 'tests|cmd|vendor|pbmock|_tools') PACKAGES_RELAY := $$(go list ./... | grep 'github.com/pingcap/dm/relay') PACKAGES_SYNCER := $$(go list ./... | grep 'github.com/pingcap/dm/syncer') PACKAGES_PKG_BINLOG := $$(go list ./... | grep 'github.com/pingcap/dm/pkg/binlog') -PACKAGES_OTHERS := $$(go list ./... | grep -vE 'tests|cmd|vendor|pbmock|github.com/pingcap/dm/relay|github.com/pingcap/dm/syncer|github.com/pingcap/dm/pkg/binlog') -FILES := $$(find . -name "*.go" | grep -vE "vendor") -TOPDIRS := $$(ls -d */ | grep -vE "vendor") +PACKAGES_OTHERS := $$(go list ./... | grep -vE 'tests|cmd|vendor|pbmock|_tools|github.com/pingcap/dm/relay|github.com/pingcap/dm/syncer|github.com/pingcap/dm/pkg/binlog') +FILES := $$(find . -name "*.go" | grep -vE "vendor|_tools") +TOPDIRS := $$(ls -d */ | grep -vE "vendor|_tools") SHELL := /usr/bin/env bash TEST_DIR := /tmp/dm_test FAILPOINT_DIR := $$(for p in $(PACKAGES); do echo $${p\#"github.com/pingcap/dm/"}; done) -FAILPOINT := bin/failpoint-ctl +FAILPOINT := retool do failpoint-ctl RACE_FLAG = TEST_RACE_FLAG = -race @@ -46,7 +46,7 @@ else LDFLAGS += -X "github.com/pingcap/dm/dm/master.SampleConfigFile=$(shell cat dm/master/dm-master.toml | base64)" endif -.PHONY: build test unit_test dm_integration_test_build integration_test \ +.PHONY: build retool_setup test unit_test dm_integration_test_build integration_test \ coverage check dm-worker dm-master dm-tracer dmctl debug-tools build: check dm-worker dm-master dm-tracer dmctl dm-portal dm-syncer @@ -72,13 +72,23 @@ dm-syncer: debug-tools: $(GOBUILD) -ldflags '$(LDFLAGS)' -o bin/binlog-event-blackhole ./debug-tools/binlog-event-blackhole +retool_setup: + @echo "setup retool" + go get github.com/twitchtv/retool + GO111MODULE=off retool sync + +generate_proto: retool_setup + ./generate-dm.sh + +generate_mock: retool_setup + ./tests/generate-mock.sh + test: unit_test integration_test define run_unit_test @echo "running unit test for packages:" $(1) bash -x ./tests/wait_for_mysql.sh mkdir -p $(TEST_DIR) - which $(FAILPOINT) >/dev/null 2>&1 || $(GOBUILD) -o $(FAILPOINT) github.com/pingcap/failpoint/failpoint-ctl $(FAILPOINT_ENABLE) @export log_level=error; \ $(GOTEST) -covermode=atomic -coverprofile="$(TEST_DIR)/cov.$(2).out" $(TEST_RACE_FLAG) $(1) \ @@ -86,36 +96,34 @@ define run_unit_test $(FAILPOINT_DISABLE) endef -unit_test: +unit_test: retool_setup $(call run_unit_test,$(PACKAGES),unit_test) -unit_test_relay: +unit_test_relay: retool_setup $(call run_unit_test,$(PACKAGES_RELAY),unit_test_relay) -unit_test_syncer: +unit_test_syncer: retool_setup $(call run_unit_test,$(PACKAGES_SYNCER),unit_test_syncer) -unit_test_pkg_binlog: +unit_test_pkg_binlog: retool_setup $(call run_unit_test,$(PACKAGES_PKG_BINLOG),unit_test_pkg_binlog) -unit_test_others: +unit_test_others: retool_setup $(call run_unit_test,$(PACKAGES_OTHERS),unit_test_others) -check: fmt lint vet terror_check +check: retool_setup fmt lint vet terror_check fmt: @echo "gofmt (simplify)" @ gofmt -s -l -w $(FILES) 2>&1 | awk '{print} END{if(NR>0) {exit 1}}' -errcheck: - GO111MODULE=off go get github.com/kisielk/errcheck +errcheck: retool_setup @echo "errcheck" - @ errcheck -blank $(PACKAGES) | grep -v "_test\.go" | awk '{print} END{if(NR>0) {exit 1}}' + @retool do errcheck -blank $(PACKAGES) | grep -v "_test\.go" | awk '{print} END{if(NR>0) {exit 1}}' -lint: - GO111MODULE=off go get golang.org/x/lint/golint +lint: retool_setup @echo "golint" - @ golint -set_exit_status $(PACKAGES) + @retool do golint -set_exit_status $(PACKAGES) vet: $(GO) build -o bin/shadow golang.org/x/tools/go/analysis/passes/shadow/cmd/shadow @@ -127,8 +135,7 @@ terror_check: @echo "check terror conflict" _utils/terror_gen/check.sh -dm_integration_test_build: - which $(FAILPOINT) >/dev/null 2>&1 || $(GOBUILD) -o $(FAILPOINT) github.com/pingcap/failpoint/failpoint-ctl +dm_integration_test_build: retool_setup $(FAILPOINT_ENABLE) $(GOTEST) -c $(TEST_RACE_FLAG) -cover -covermode=atomic \ -coverpkg=github.com/pingcap/dm/... \ @@ -177,13 +184,11 @@ compatibility_test: check_third_party_binary coverage_fix_cover_mode: sed -i "s/mode: count/mode: atomic/g" $(TEST_DIR)/cov.*.dmctl.*.out -coverage: coverage_fix_cover_mode - GO111MODULE=off go get github.com/zhouqiang-cl/gocovmerge - gocovmerge "$(TEST_DIR)"/cov.* | grep -vE ".*.pb.go|.*.__failpoint_binding__.go" > "$(TEST_DIR)/all_cov.out" - gocovmerge "$(TEST_DIR)"/cov.unit_test*.out | grep -vE ".*.pb.go|.*.__failpoint_binding__.go" > $(TEST_DIR)/unit_test.out +coverage: coverage_fix_cover_mode retool_setup + retool do gocovmerge "$(TEST_DIR)"/cov.* | grep -vE ".*.pb.go|.*.__failpoint_binding__.go" > "$(TEST_DIR)/all_cov.out" + retool do gocovmerge "$(TEST_DIR)"/cov.unit_test*.out | grep -vE ".*.pb.go|.*.__failpoint_binding__.go" > $(TEST_DIR)/unit_test.out ifeq ("$(JenkinsCI)", "1") - GO111MODULE=off go get github.com/mattn/goveralls - @goveralls -coverprofile=$(TEST_DIR)/all_cov.out -service=jenkins-ci -repotoken $(COVERALLS_TOKEN) + @retool do goveralls -coverprofile=$(TEST_DIR)/all_cov.out -service=jenkins-ci -repotoken $(COVERALLS_TOKEN) @bash <(curl -s https://codecov.io/bash) -f $(TEST_DIR)/unit_test.out -t $(CODECOV_TOKEN) else go tool cover -html "$(TEST_DIR)/all_cov.out" -o "$(TEST_DIR)/all_cov.html" @@ -198,8 +203,8 @@ check-static: --enable ineffassign \ ./... -failpoint-enable: +failpoint-enable: retool_setup $(FAILPOINT_ENABLE) -failpoint-disable: +failpoint-disable: retool_setup $(FAILPOINT_DISABLE) diff --git a/dm/pb/dmmaster.pb.go b/dm/pb/dmmaster.pb.go index ec10d347fe..0ed879c75d 100644 --- a/dm/pb/dmmaster.pb.go +++ b/dm/pb/dmmaster.pb.go @@ -4,19 +4,17 @@ package pb import ( - "fmt" - - proto "github.com/gogo/protobuf/proto" - + context "context" + fmt "fmt" + io "io" math "math" + math_bits "math/bits" + proto "github.com/gogo/protobuf/proto" _ "google.golang.org/genproto/googleapis/api/annotations" - - context "golang.org/x/net/context" - grpc "google.golang.org/grpc" - - io "io" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -28,7 +26,7 @@ var _ = math.Inf // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type MigrateWorkerRelayRequest struct { BinlogName string `protobuf:"bytes,1,opt,name=BinlogName,proto3" json:"BinlogName,omitempty"` @@ -40,7 +38,7 @@ func (m *MigrateWorkerRelayRequest) Reset() { *m = MigrateWorkerRelayReq func (m *MigrateWorkerRelayRequest) String() string { return proto.CompactTextString(m) } func (*MigrateWorkerRelayRequest) ProtoMessage() {} func (*MigrateWorkerRelayRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{0} + return fileDescriptor_f9bef11f2a341f03, []int{0} } func (m *MigrateWorkerRelayRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -50,15 +48,15 @@ func (m *MigrateWorkerRelayRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_MigrateWorkerRelayRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *MigrateWorkerRelayRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MigrateWorkerRelayRequest.Merge(dst, src) +func (m *MigrateWorkerRelayRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MigrateWorkerRelayRequest.Merge(m, src) } func (m *MigrateWorkerRelayRequest) XXX_Size() int { return m.Size() @@ -99,7 +97,7 @@ func (m *UpdateWorkerRelayConfigRequest) Reset() { *m = UpdateWorkerRela func (m *UpdateWorkerRelayConfigRequest) String() string { return proto.CompactTextString(m) } func (*UpdateWorkerRelayConfigRequest) ProtoMessage() {} func (*UpdateWorkerRelayConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{1} + return fileDescriptor_f9bef11f2a341f03, []int{1} } func (m *UpdateWorkerRelayConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -109,15 +107,15 @@ func (m *UpdateWorkerRelayConfigRequest) XXX_Marshal(b []byte, deterministic boo return xxx_messageInfo_UpdateWorkerRelayConfigRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *UpdateWorkerRelayConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateWorkerRelayConfigRequest.Merge(dst, src) +func (m *UpdateWorkerRelayConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateWorkerRelayConfigRequest.Merge(m, src) } func (m *UpdateWorkerRelayConfigRequest) XXX_Size() int { return m.Size() @@ -144,14 +142,14 @@ func (m *UpdateWorkerRelayConfigRequest) GetWorker() string { type StartTaskRequest struct { Task string `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` - Workers []string `protobuf:"bytes,2,rep,name=workers" json:"workers,omitempty"` + Workers []string `protobuf:"bytes,2,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *StartTaskRequest) Reset() { *m = StartTaskRequest{} } func (m *StartTaskRequest) String() string { return proto.CompactTextString(m) } func (*StartTaskRequest) ProtoMessage() {} func (*StartTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{2} + return fileDescriptor_f9bef11f2a341f03, []int{2} } func (m *StartTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -161,15 +159,15 @@ func (m *StartTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_StartTaskRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *StartTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartTaskRequest.Merge(dst, src) +func (m *StartTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartTaskRequest.Merge(m, src) } func (m *StartTaskRequest) XXX_Size() int { return m.Size() @@ -197,14 +195,14 @@ func (m *StartTaskRequest) GetWorkers() []string { type StartTaskResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - Workers []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=workers" json:"workers,omitempty"` + Workers []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *StartTaskResponse) Reset() { *m = StartTaskResponse{} } func (m *StartTaskResponse) String() string { return proto.CompactTextString(m) } func (*StartTaskResponse) ProtoMessage() {} func (*StartTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{3} + return fileDescriptor_f9bef11f2a341f03, []int{3} } func (m *StartTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -214,15 +212,15 @@ func (m *StartTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_StartTaskResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *StartTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartTaskResponse.Merge(dst, src) +func (m *StartTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartTaskResponse.Merge(m, src) } func (m *StartTaskResponse) XXX_Size() int { return m.Size() @@ -262,7 +260,7 @@ func (m *UpdateMasterConfigRequest) Reset() { *m = UpdateMasterConfigReq func (m *UpdateMasterConfigRequest) String() string { return proto.CompactTextString(m) } func (*UpdateMasterConfigRequest) ProtoMessage() {} func (*UpdateMasterConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{4} + return fileDescriptor_f9bef11f2a341f03, []int{4} } func (m *UpdateMasterConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -272,15 +270,15 @@ func (m *UpdateMasterConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_UpdateMasterConfigRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *UpdateMasterConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateMasterConfigRequest.Merge(dst, src) +func (m *UpdateMasterConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateMasterConfigRequest.Merge(m, src) } func (m *UpdateMasterConfigRequest) XXX_Size() int { return m.Size() @@ -301,14 +299,14 @@ func (m *UpdateMasterConfigRequest) GetConfig() string { type UpdateMasterConfigResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - Workers []*QueryStatusResponse `protobuf:"bytes,3,rep,name=workers" json:"workers,omitempty"` + Workers []*QueryStatusResponse `protobuf:"bytes,3,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *UpdateMasterConfigResponse) Reset() { *m = UpdateMasterConfigResponse{} } func (m *UpdateMasterConfigResponse) String() string { return proto.CompactTextString(m) } func (*UpdateMasterConfigResponse) ProtoMessage() {} func (*UpdateMasterConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{5} + return fileDescriptor_f9bef11f2a341f03, []int{5} } func (m *UpdateMasterConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -318,15 +316,15 @@ func (m *UpdateMasterConfigResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_UpdateMasterConfigResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *UpdateMasterConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateMasterConfigResponse.Merge(dst, src) +func (m *UpdateMasterConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateMasterConfigResponse.Merge(m, src) } func (m *UpdateMasterConfigResponse) XXX_Size() int { return m.Size() @@ -361,14 +359,14 @@ func (m *UpdateMasterConfigResponse) GetWorkers() []*QueryStatusResponse { type OperateTaskRequest struct { Op TaskOp `protobuf:"varint,1,opt,name=op,proto3,enum=pb.TaskOp" json:"op,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - Workers []string `protobuf:"bytes,3,rep,name=workers" json:"workers,omitempty"` + Workers []string `protobuf:"bytes,3,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *OperateTaskRequest) Reset() { *m = OperateTaskRequest{} } func (m *OperateTaskRequest) String() string { return proto.CompactTextString(m) } func (*OperateTaskRequest) ProtoMessage() {} func (*OperateTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{6} + return fileDescriptor_f9bef11f2a341f03, []int{6} } func (m *OperateTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -378,15 +376,15 @@ func (m *OperateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_OperateTaskRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *OperateTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OperateTaskRequest.Merge(dst, src) +func (m *OperateTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_OperateTaskRequest.Merge(m, src) } func (m *OperateTaskRequest) XXX_Size() int { return m.Size() @@ -422,14 +420,14 @@ type OperateTaskResponse struct { Op TaskOp `protobuf:"varint,1,opt,name=op,proto3,enum=pb.TaskOp" json:"op,omitempty"` Result bool `protobuf:"varint,2,opt,name=result,proto3" json:"result,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` - Workers []*OperateSubTaskResponse `protobuf:"bytes,4,rep,name=workers" json:"workers,omitempty"` + Workers []*OperateSubTaskResponse `protobuf:"bytes,4,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *OperateTaskResponse) Reset() { *m = OperateTaskResponse{} } func (m *OperateTaskResponse) String() string { return proto.CompactTextString(m) } func (*OperateTaskResponse) ProtoMessage() {} func (*OperateTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{7} + return fileDescriptor_f9bef11f2a341f03, []int{7} } func (m *OperateTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -439,15 +437,15 @@ func (m *OperateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_OperateTaskResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *OperateTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_OperateTaskResponse.Merge(dst, src) +func (m *OperateTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_OperateTaskResponse.Merge(m, src) } func (m *OperateTaskResponse) XXX_Size() int { return m.Size() @@ -493,14 +491,14 @@ func (m *OperateTaskResponse) GetWorkers() []*OperateSubTaskResponse { // workers need to do update, empty for all workers in processing the task type UpdateTaskRequest struct { Task string `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` - Workers []string `protobuf:"bytes,2,rep,name=workers" json:"workers,omitempty"` + Workers []string `protobuf:"bytes,2,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *UpdateTaskRequest) Reset() { *m = UpdateTaskRequest{} } func (m *UpdateTaskRequest) String() string { return proto.CompactTextString(m) } func (*UpdateTaskRequest) ProtoMessage() {} func (*UpdateTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{8} + return fileDescriptor_f9bef11f2a341f03, []int{8} } func (m *UpdateTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -510,15 +508,15 @@ func (m *UpdateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_UpdateTaskRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *UpdateTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateTaskRequest.Merge(dst, src) +func (m *UpdateTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateTaskRequest.Merge(m, src) } func (m *UpdateTaskRequest) XXX_Size() int { return m.Size() @@ -546,14 +544,14 @@ func (m *UpdateTaskRequest) GetWorkers() []string { type UpdateTaskResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - Workers []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=workers" json:"workers,omitempty"` + Workers []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *UpdateTaskResponse) Reset() { *m = UpdateTaskResponse{} } func (m *UpdateTaskResponse) String() string { return proto.CompactTextString(m) } func (*UpdateTaskResponse) ProtoMessage() {} func (*UpdateTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{9} + return fileDescriptor_f9bef11f2a341f03, []int{9} } func (m *UpdateTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -563,15 +561,15 @@ func (m *UpdateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_UpdateTaskResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *UpdateTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateTaskResponse.Merge(dst, src) +func (m *UpdateTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateTaskResponse.Merge(m, src) } func (m *UpdateTaskResponse) XXX_Size() int { return m.Size() @@ -605,14 +603,14 @@ func (m *UpdateTaskResponse) GetWorkers() []*CommonWorkerResponse { type QueryStatusListRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Workers []string `protobuf:"bytes,2,rep,name=workers" json:"workers,omitempty"` + Workers []string `protobuf:"bytes,2,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *QueryStatusListRequest) Reset() { *m = QueryStatusListRequest{} } func (m *QueryStatusListRequest) String() string { return proto.CompactTextString(m) } func (*QueryStatusListRequest) ProtoMessage() {} func (*QueryStatusListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{10} + return fileDescriptor_f9bef11f2a341f03, []int{10} } func (m *QueryStatusListRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -622,15 +620,15 @@ func (m *QueryStatusListRequest) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_QueryStatusListRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *QueryStatusListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStatusListRequest.Merge(dst, src) +func (m *QueryStatusListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStatusListRequest.Merge(m, src) } func (m *QueryStatusListRequest) XXX_Size() int { return m.Size() @@ -658,14 +656,14 @@ func (m *QueryStatusListRequest) GetWorkers() []string { type QueryStatusListResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - Workers []*QueryStatusResponse `protobuf:"bytes,3,rep,name=workers" json:"workers,omitempty"` + Workers []*QueryStatusResponse `protobuf:"bytes,3,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *QueryStatusListResponse) Reset() { *m = QueryStatusListResponse{} } func (m *QueryStatusListResponse) String() string { return proto.CompactTextString(m) } func (*QueryStatusListResponse) ProtoMessage() {} func (*QueryStatusListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{11} + return fileDescriptor_f9bef11f2a341f03, []int{11} } func (m *QueryStatusListResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -675,15 +673,15 @@ func (m *QueryStatusListResponse) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_QueryStatusListResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *QueryStatusListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStatusListResponse.Merge(dst, src) +func (m *QueryStatusListResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStatusListResponse.Merge(m, src) } func (m *QueryStatusListResponse) XXX_Size() int { return m.Size() @@ -717,14 +715,14 @@ func (m *QueryStatusListResponse) GetWorkers() []*QueryStatusResponse { type QueryErrorListRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Workers []string `protobuf:"bytes,2,rep,name=workers" json:"workers,omitempty"` + Workers []string `protobuf:"bytes,2,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *QueryErrorListRequest) Reset() { *m = QueryErrorListRequest{} } func (m *QueryErrorListRequest) String() string { return proto.CompactTextString(m) } func (*QueryErrorListRequest) ProtoMessage() {} func (*QueryErrorListRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{12} + return fileDescriptor_f9bef11f2a341f03, []int{12} } func (m *QueryErrorListRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -734,15 +732,15 @@ func (m *QueryErrorListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_QueryErrorListRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *QueryErrorListRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryErrorListRequest.Merge(dst, src) +func (m *QueryErrorListRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryErrorListRequest.Merge(m, src) } func (m *QueryErrorListRequest) XXX_Size() int { return m.Size() @@ -770,14 +768,14 @@ func (m *QueryErrorListRequest) GetWorkers() []string { type QueryErrorListResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - Workers []*QueryErrorResponse `protobuf:"bytes,3,rep,name=workers" json:"workers,omitempty"` + Workers []*QueryErrorResponse `protobuf:"bytes,3,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *QueryErrorListResponse) Reset() { *m = QueryErrorListResponse{} } func (m *QueryErrorListResponse) String() string { return proto.CompactTextString(m) } func (*QueryErrorListResponse) ProtoMessage() {} func (*QueryErrorListResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{13} + return fileDescriptor_f9bef11f2a341f03, []int{13} } func (m *QueryErrorListResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -787,15 +785,15 @@ func (m *QueryErrorListResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_QueryErrorListResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *QueryErrorListResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryErrorListResponse.Merge(dst, src) +func (m *QueryErrorListResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryErrorListResponse.Merge(m, src) } func (m *QueryErrorListResponse) XXX_Size() int { return m.Size() @@ -834,14 +832,14 @@ func (m *QueryErrorListResponse) GetWorkers() []*QueryErrorResponse { // if specify task and workers both, and workers not doing the task , it will return empty DDL locks type ShowDDLLocksRequest struct { Task string `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` - Workers []string `protobuf:"bytes,2,rep,name=workers" json:"workers,omitempty"` + Workers []string `protobuf:"bytes,2,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *ShowDDLLocksRequest) Reset() { *m = ShowDDLLocksRequest{} } func (m *ShowDDLLocksRequest) String() string { return proto.CompactTextString(m) } func (*ShowDDLLocksRequest) ProtoMessage() {} func (*ShowDDLLocksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{14} + return fileDescriptor_f9bef11f2a341f03, []int{14} } func (m *ShowDDLLocksRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -851,15 +849,15 @@ func (m *ShowDDLLocksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_ShowDDLLocksRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *ShowDDLLocksRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShowDDLLocksRequest.Merge(dst, src) +func (m *ShowDDLLocksRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShowDDLLocksRequest.Merge(m, src) } func (m *ShowDDLLocksRequest) XXX_Size() int { return m.Size() @@ -896,16 +894,16 @@ type DDLLock struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` Task string `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` - DDLs []string `protobuf:"bytes,4,rep,name=DDLs" json:"DDLs,omitempty"` - Synced []string `protobuf:"bytes,5,rep,name=synced" json:"synced,omitempty"` - Unsynced []string `protobuf:"bytes,6,rep,name=unsynced" json:"unsynced,omitempty"` + DDLs []string `protobuf:"bytes,4,rep,name=DDLs,proto3" json:"DDLs,omitempty"` + Synced []string `protobuf:"bytes,5,rep,name=synced,proto3" json:"synced,omitempty"` + Unsynced []string `protobuf:"bytes,6,rep,name=unsynced,proto3" json:"unsynced,omitempty"` } func (m *DDLLock) Reset() { *m = DDLLock{} } func (m *DDLLock) String() string { return proto.CompactTextString(m) } func (*DDLLock) ProtoMessage() {} func (*DDLLock) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{15} + return fileDescriptor_f9bef11f2a341f03, []int{15} } func (m *DDLLock) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -915,15 +913,15 @@ func (m *DDLLock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DDLLock.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *DDLLock) XXX_Merge(src proto.Message) { - xxx_messageInfo_DDLLock.Merge(dst, src) +func (m *DDLLock) XXX_Merge(src proto.Message) { + xxx_messageInfo_DDLLock.Merge(m, src) } func (m *DDLLock) XXX_Size() int { return m.Size() @@ -979,14 +977,14 @@ func (m *DDLLock) GetUnsynced() []string { type ShowDDLLocksResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - Locks []*DDLLock `protobuf:"bytes,3,rep,name=locks" json:"locks,omitempty"` + Locks []*DDLLock `protobuf:"bytes,3,rep,name=locks,proto3" json:"locks,omitempty"` } func (m *ShowDDLLocksResponse) Reset() { *m = ShowDDLLocksResponse{} } func (m *ShowDDLLocksResponse) String() string { return proto.CompactTextString(m) } func (*ShowDDLLocksResponse) ProtoMessage() {} func (*ShowDDLLocksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{16} + return fileDescriptor_f9bef11f2a341f03, []int{16} } func (m *ShowDDLLocksResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -996,15 +994,15 @@ func (m *ShowDDLLocksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_ShowDDLLocksResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *ShowDDLLocksResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShowDDLLocksResponse.Merge(dst, src) +func (m *ShowDDLLocksResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShowDDLLocksResponse.Merge(m, src) } func (m *ShowDDLLocksResponse) XXX_Size() int { return m.Size() @@ -1045,7 +1043,7 @@ func (m *ShowDDLLocksResponse) GetLocks() []*DDLLock { type UnlockDDLLockRequest struct { ID string `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"` ReplaceOwner string `protobuf:"bytes,2,opt,name=replaceOwner,proto3" json:"replaceOwner,omitempty"` - Workers []string `protobuf:"bytes,3,rep,name=workers" json:"workers,omitempty"` + Workers []string `protobuf:"bytes,3,rep,name=workers,proto3" json:"workers,omitempty"` ForceRemove bool `protobuf:"varint,4,opt,name=forceRemove,proto3" json:"forceRemove,omitempty"` } @@ -1053,7 +1051,7 @@ func (m *UnlockDDLLockRequest) Reset() { *m = UnlockDDLLockRequest{} } func (m *UnlockDDLLockRequest) String() string { return proto.CompactTextString(m) } func (*UnlockDDLLockRequest) ProtoMessage() {} func (*UnlockDDLLockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{17} + return fileDescriptor_f9bef11f2a341f03, []int{17} } func (m *UnlockDDLLockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1063,15 +1061,15 @@ func (m *UnlockDDLLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_UnlockDDLLockRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *UnlockDDLLockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnlockDDLLockRequest.Merge(dst, src) +func (m *UnlockDDLLockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnlockDDLLockRequest.Merge(m, src) } func (m *UnlockDDLLockRequest) XXX_Size() int { return m.Size() @@ -1113,14 +1111,14 @@ func (m *UnlockDDLLockRequest) GetForceRemove() bool { type UnlockDDLLockResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - Workers []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=workers" json:"workers,omitempty"` + Workers []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *UnlockDDLLockResponse) Reset() { *m = UnlockDDLLockResponse{} } func (m *UnlockDDLLockResponse) String() string { return proto.CompactTextString(m) } func (*UnlockDDLLockResponse) ProtoMessage() {} func (*UnlockDDLLockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{18} + return fileDescriptor_f9bef11f2a341f03, []int{18} } func (m *UnlockDDLLockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1130,15 +1128,15 @@ func (m *UnlockDDLLockResponse) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_UnlockDDLLockResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *UnlockDDLLockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_UnlockDDLLockResponse.Merge(dst, src) +func (m *UnlockDDLLockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_UnlockDDLLockResponse.Merge(m, src) } func (m *UnlockDDLLockResponse) XXX_Size() int { return m.Size() @@ -1178,7 +1176,7 @@ func (m *UnlockDDLLockResponse) GetWorkers() []*CommonWorkerResponse { // skipDDL: skip DDL which is blocking // execDDL and skipDDL can not specify both at the same time, but can specify neither type BreakWorkerDDLLockRequest struct { - Workers []string `protobuf:"bytes,1,rep,name=workers" json:"workers,omitempty"` + Workers []string `protobuf:"bytes,1,rep,name=workers,proto3" json:"workers,omitempty"` Task string `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"` RemoveLockID string `protobuf:"bytes,3,opt,name=removeLockID,proto3" json:"removeLockID,omitempty"` ExecDDL bool `protobuf:"varint,4,opt,name=execDDL,proto3" json:"execDDL,omitempty"` @@ -1189,7 +1187,7 @@ func (m *BreakWorkerDDLLockRequest) Reset() { *m = BreakWorkerDDLLockReq func (m *BreakWorkerDDLLockRequest) String() string { return proto.CompactTextString(m) } func (*BreakWorkerDDLLockRequest) ProtoMessage() {} func (*BreakWorkerDDLLockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{19} + return fileDescriptor_f9bef11f2a341f03, []int{19} } func (m *BreakWorkerDDLLockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1199,15 +1197,15 @@ func (m *BreakWorkerDDLLockRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_BreakWorkerDDLLockRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *BreakWorkerDDLLockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BreakWorkerDDLLockRequest.Merge(dst, src) +func (m *BreakWorkerDDLLockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BreakWorkerDDLLockRequest.Merge(m, src) } func (m *BreakWorkerDDLLockRequest) XXX_Size() int { return m.Size() @@ -1256,14 +1254,14 @@ func (m *BreakWorkerDDLLockRequest) GetSkipDDL() bool { type BreakWorkerDDLLockResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - Workers []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=workers" json:"workers,omitempty"` + Workers []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *BreakWorkerDDLLockResponse) Reset() { *m = BreakWorkerDDLLockResponse{} } func (m *BreakWorkerDDLLockResponse) String() string { return proto.CompactTextString(m) } func (*BreakWorkerDDLLockResponse) ProtoMessage() {} func (*BreakWorkerDDLLockResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{20} + return fileDescriptor_f9bef11f2a341f03, []int{20} } func (m *BreakWorkerDDLLockResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1273,15 +1271,15 @@ func (m *BreakWorkerDDLLockResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_BreakWorkerDDLLockResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *BreakWorkerDDLLockResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_BreakWorkerDDLLockResponse.Merge(dst, src) +func (m *BreakWorkerDDLLockResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_BreakWorkerDDLLockResponse.Merge(m, src) } func (m *BreakWorkerDDLLockResponse) XXX_Size() int { return m.Size() @@ -1316,14 +1314,14 @@ func (m *BreakWorkerDDLLockResponse) GetWorkers() []*CommonWorkerResponse { // SwitchWorkerRelayMasterRequest represents a request for some dm-workers to switch relay unit's master server // workers: relay unit in these dm-workers need to switch master server type SwitchWorkerRelayMasterRequest struct { - Workers []string `protobuf:"bytes,1,rep,name=workers" json:"workers,omitempty"` + Workers []string `protobuf:"bytes,1,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *SwitchWorkerRelayMasterRequest) Reset() { *m = SwitchWorkerRelayMasterRequest{} } func (m *SwitchWorkerRelayMasterRequest) String() string { return proto.CompactTextString(m) } func (*SwitchWorkerRelayMasterRequest) ProtoMessage() {} func (*SwitchWorkerRelayMasterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{21} + return fileDescriptor_f9bef11f2a341f03, []int{21} } func (m *SwitchWorkerRelayMasterRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1333,15 +1331,15 @@ func (m *SwitchWorkerRelayMasterRequest) XXX_Marshal(b []byte, deterministic boo return xxx_messageInfo_SwitchWorkerRelayMasterRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *SwitchWorkerRelayMasterRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwitchWorkerRelayMasterRequest.Merge(dst, src) +func (m *SwitchWorkerRelayMasterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchWorkerRelayMasterRequest.Merge(m, src) } func (m *SwitchWorkerRelayMasterRequest) XXX_Size() int { return m.Size() @@ -1362,14 +1360,14 @@ func (m *SwitchWorkerRelayMasterRequest) GetWorkers() []string { type SwitchWorkerRelayMasterResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - Workers []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=workers" json:"workers,omitempty"` + Workers []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *SwitchWorkerRelayMasterResponse) Reset() { *m = SwitchWorkerRelayMasterResponse{} } func (m *SwitchWorkerRelayMasterResponse) String() string { return proto.CompactTextString(m) } func (*SwitchWorkerRelayMasterResponse) ProtoMessage() {} func (*SwitchWorkerRelayMasterResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{22} + return fileDescriptor_f9bef11f2a341f03, []int{22} } func (m *SwitchWorkerRelayMasterResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1379,15 +1377,15 @@ func (m *SwitchWorkerRelayMasterResponse) XXX_Marshal(b []byte, deterministic bo return xxx_messageInfo_SwitchWorkerRelayMasterResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *SwitchWorkerRelayMasterResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwitchWorkerRelayMasterResponse.Merge(dst, src) +func (m *SwitchWorkerRelayMasterResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchWorkerRelayMasterResponse.Merge(m, src) } func (m *SwitchWorkerRelayMasterResponse) XXX_Size() int { return m.Size() @@ -1422,14 +1420,14 @@ func (m *SwitchWorkerRelayMasterResponse) GetWorkers() []*CommonWorkerResponse { // OperateWorkerRelayRequest represents a request for some dm-workers to operate relay unit type OperateWorkerRelayRequest struct { Op RelayOp `protobuf:"varint,1,opt,name=op,proto3,enum=pb.RelayOp" json:"op,omitempty"` - Workers []string `protobuf:"bytes,2,rep,name=workers" json:"workers,omitempty"` + Workers []string `protobuf:"bytes,2,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *OperateWorkerRelayRequest) Reset() { *m = OperateWorkerRelayRequest{} } func (m *OperateWorkerRelayRequest) String() string { return proto.CompactTextString(m) } func (*OperateWorkerRelayRequest) ProtoMessage() {} func (*OperateWorkerRelayRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{23} + return fileDescriptor_f9bef11f2a341f03, []int{23} } func (m *OperateWorkerRelayRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1439,15 +1437,15 @@ func (m *OperateWorkerRelayRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_OperateWorkerRelayRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *OperateWorkerRelayRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OperateWorkerRelayRequest.Merge(dst, src) +func (m *OperateWorkerRelayRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_OperateWorkerRelayRequest.Merge(m, src) } func (m *OperateWorkerRelayRequest) XXX_Size() int { return m.Size() @@ -1476,14 +1474,14 @@ type OperateWorkerRelayResponse struct { Op RelayOp `protobuf:"varint,1,opt,name=op,proto3,enum=pb.RelayOp" json:"op,omitempty"` Result bool `protobuf:"varint,2,opt,name=result,proto3" json:"result,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` - Workers []*OperateRelayResponse `protobuf:"bytes,4,rep,name=workers" json:"workers,omitempty"` + Workers []*OperateRelayResponse `protobuf:"bytes,4,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *OperateWorkerRelayResponse) Reset() { *m = OperateWorkerRelayResponse{} } func (m *OperateWorkerRelayResponse) String() string { return proto.CompactTextString(m) } func (*OperateWorkerRelayResponse) ProtoMessage() {} func (*OperateWorkerRelayResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{24} + return fileDescriptor_f9bef11f2a341f03, []int{24} } func (m *OperateWorkerRelayResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1493,15 +1491,15 @@ func (m *OperateWorkerRelayResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_OperateWorkerRelayResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *OperateWorkerRelayResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_OperateWorkerRelayResponse.Merge(dst, src) +func (m *OperateWorkerRelayResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_OperateWorkerRelayResponse.Merge(m, src) } func (m *OperateWorkerRelayResponse) XXX_Size() int { return m.Size() @@ -1547,7 +1545,7 @@ func (m *RefreshWorkerTasksRequest) Reset() { *m = RefreshWorkerTasksReq func (m *RefreshWorkerTasksRequest) String() string { return proto.CompactTextString(m) } func (*RefreshWorkerTasksRequest) ProtoMessage() {} func (*RefreshWorkerTasksRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{25} + return fileDescriptor_f9bef11f2a341f03, []int{25} } func (m *RefreshWorkerTasksRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1557,15 +1555,15 @@ func (m *RefreshWorkerTasksRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_RefreshWorkerTasksRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *RefreshWorkerTasksRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_RefreshWorkerTasksRequest.Merge(dst, src) +func (m *RefreshWorkerTasksRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_RefreshWorkerTasksRequest.Merge(m, src) } func (m *RefreshWorkerTasksRequest) XXX_Size() int { return m.Size() @@ -1585,7 +1583,7 @@ func (m *RefreshWorkerTasksMsg) Reset() { *m = RefreshWorkerTasksMsg{} } func (m *RefreshWorkerTasksMsg) String() string { return proto.CompactTextString(m) } func (*RefreshWorkerTasksMsg) ProtoMessage() {} func (*RefreshWorkerTasksMsg) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{26} + return fileDescriptor_f9bef11f2a341f03, []int{26} } func (m *RefreshWorkerTasksMsg) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1595,15 +1593,15 @@ func (m *RefreshWorkerTasksMsg) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_RefreshWorkerTasksMsg.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *RefreshWorkerTasksMsg) XXX_Merge(src proto.Message) { - xxx_messageInfo_RefreshWorkerTasksMsg.Merge(dst, src) +func (m *RefreshWorkerTasksMsg) XXX_Merge(src proto.Message) { + xxx_messageInfo_RefreshWorkerTasksMsg.Merge(m, src) } func (m *RefreshWorkerTasksMsg) XXX_Size() int { return m.Size() @@ -1630,14 +1628,14 @@ func (m *RefreshWorkerTasksMsg) GetMsg() string { type RefreshWorkerTasksResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` - Workers []*RefreshWorkerTasksMsg `protobuf:"bytes,2,rep,name=workers" json:"workers,omitempty"` + Workers []*RefreshWorkerTasksMsg `protobuf:"bytes,2,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *RefreshWorkerTasksResponse) Reset() { *m = RefreshWorkerTasksResponse{} } func (m *RefreshWorkerTasksResponse) String() string { return proto.CompactTextString(m) } func (*RefreshWorkerTasksResponse) ProtoMessage() {} func (*RefreshWorkerTasksResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{27} + return fileDescriptor_f9bef11f2a341f03, []int{27} } func (m *RefreshWorkerTasksResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1647,15 +1645,15 @@ func (m *RefreshWorkerTasksResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_RefreshWorkerTasksResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *RefreshWorkerTasksResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_RefreshWorkerTasksResponse.Merge(dst, src) +func (m *RefreshWorkerTasksResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_RefreshWorkerTasksResponse.Merge(m, src) } func (m *RefreshWorkerTasksResponse) XXX_Size() int { return m.Size() @@ -1683,7 +1681,7 @@ func (m *RefreshWorkerTasksResponse) GetWorkers() []*RefreshWorkerTasksMsg { type HandleSQLsRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Op SQLOp `protobuf:"varint,2,opt,name=op,proto3,enum=pb.SQLOp" json:"op,omitempty"` - Args []string `protobuf:"bytes,3,rep,name=args" json:"args,omitempty"` + Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` BinlogPos string `protobuf:"bytes,4,opt,name=binlogPos,proto3" json:"binlogPos,omitempty"` Worker string `protobuf:"bytes,5,opt,name=worker,proto3" json:"worker,omitempty"` SqlPattern string `protobuf:"bytes,6,opt,name=sqlPattern,proto3" json:"sqlPattern,omitempty"` @@ -1694,7 +1692,7 @@ func (m *HandleSQLsRequest) Reset() { *m = HandleSQLsRequest{} } func (m *HandleSQLsRequest) String() string { return proto.CompactTextString(m) } func (*HandleSQLsRequest) ProtoMessage() {} func (*HandleSQLsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{28} + return fileDescriptor_f9bef11f2a341f03, []int{28} } func (m *HandleSQLsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1704,15 +1702,15 @@ func (m *HandleSQLsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_HandleSQLsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *HandleSQLsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_HandleSQLsRequest.Merge(dst, src) +func (m *HandleSQLsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_HandleSQLsRequest.Merge(m, src) } func (m *HandleSQLsRequest) XXX_Size() int { return m.Size() @@ -1775,14 +1773,14 @@ func (m *HandleSQLsRequest) GetSharding() bool { type HandleSQLsResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - Workers []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=workers" json:"workers,omitempty"` + Workers []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *HandleSQLsResponse) Reset() { *m = HandleSQLsResponse{} } func (m *HandleSQLsResponse) String() string { return proto.CompactTextString(m) } func (*HandleSQLsResponse) ProtoMessage() {} func (*HandleSQLsResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{29} + return fileDescriptor_f9bef11f2a341f03, []int{29} } func (m *HandleSQLsResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1792,15 +1790,15 @@ func (m *HandleSQLsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_HandleSQLsResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *HandleSQLsResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_HandleSQLsResponse.Merge(dst, src) +func (m *HandleSQLsResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_HandleSQLsResponse.Merge(m, src) } func (m *HandleSQLsResponse) XXX_Size() int { return m.Size() @@ -1839,7 +1837,7 @@ func (m *HandleSQLsResponse) GetWorkers() []*CommonWorkerResponse { // filename: whether purge relay log files before this filename // subDir: specify relay sub directory for @filename type PurgeWorkerRelayRequest struct { - Workers []string `protobuf:"bytes,1,rep,name=workers" json:"workers,omitempty"` + Workers []string `protobuf:"bytes,1,rep,name=workers,proto3" json:"workers,omitempty"` Inactive bool `protobuf:"varint,2,opt,name=inactive,proto3" json:"inactive,omitempty"` Time int64 `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"` Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"` @@ -1850,7 +1848,7 @@ func (m *PurgeWorkerRelayRequest) Reset() { *m = PurgeWorkerRelayRequest func (m *PurgeWorkerRelayRequest) String() string { return proto.CompactTextString(m) } func (*PurgeWorkerRelayRequest) ProtoMessage() {} func (*PurgeWorkerRelayRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{30} + return fileDescriptor_f9bef11f2a341f03, []int{30} } func (m *PurgeWorkerRelayRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1860,15 +1858,15 @@ func (m *PurgeWorkerRelayRequest) XXX_Marshal(b []byte, deterministic bool) ([]b return xxx_messageInfo_PurgeWorkerRelayRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *PurgeWorkerRelayRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PurgeWorkerRelayRequest.Merge(dst, src) +func (m *PurgeWorkerRelayRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PurgeWorkerRelayRequest.Merge(m, src) } func (m *PurgeWorkerRelayRequest) XXX_Size() int { return m.Size() @@ -1917,14 +1915,14 @@ func (m *PurgeWorkerRelayRequest) GetSubDir() string { type PurgeWorkerRelayResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - Workers []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=workers" json:"workers,omitempty"` + Workers []*CommonWorkerResponse `protobuf:"bytes,3,rep,name=workers,proto3" json:"workers,omitempty"` } func (m *PurgeWorkerRelayResponse) Reset() { *m = PurgeWorkerRelayResponse{} } func (m *PurgeWorkerRelayResponse) String() string { return proto.CompactTextString(m) } func (*PurgeWorkerRelayResponse) ProtoMessage() {} func (*PurgeWorkerRelayResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{31} + return fileDescriptor_f9bef11f2a341f03, []int{31} } func (m *PurgeWorkerRelayResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1934,15 +1932,15 @@ func (m *PurgeWorkerRelayResponse) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_PurgeWorkerRelayResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *PurgeWorkerRelayResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_PurgeWorkerRelayResponse.Merge(dst, src) +func (m *PurgeWorkerRelayResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_PurgeWorkerRelayResponse.Merge(m, src) } func (m *PurgeWorkerRelayResponse) XXX_Size() int { return m.Size() @@ -1982,7 +1980,7 @@ func (m *CheckTaskRequest) Reset() { *m = CheckTaskRequest{} } func (m *CheckTaskRequest) String() string { return proto.CompactTextString(m) } func (*CheckTaskRequest) ProtoMessage() {} func (*CheckTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{32} + return fileDescriptor_f9bef11f2a341f03, []int{32} } func (m *CheckTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1992,15 +1990,15 @@ func (m *CheckTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_CheckTaskRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *CheckTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckTaskRequest.Merge(dst, src) +func (m *CheckTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckTaskRequest.Merge(m, src) } func (m *CheckTaskRequest) XXX_Size() int { return m.Size() @@ -2027,7 +2025,7 @@ func (m *CheckTaskResponse) Reset() { *m = CheckTaskResponse{} } func (m *CheckTaskResponse) String() string { return proto.CompactTextString(m) } func (*CheckTaskResponse) ProtoMessage() {} func (*CheckTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmmaster_04ca92798618dca8, []int{33} + return fileDescriptor_f9bef11f2a341f03, []int{33} } func (m *CheckTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2037,15 +2035,15 @@ func (m *CheckTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_CheckTaskResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *CheckTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckTaskResponse.Merge(dst, src) +func (m *CheckTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckTaskResponse.Merge(m, src) } func (m *CheckTaskResponse) XXX_Size() int { return m.Size() @@ -2107,6 +2105,98 @@ func init() { proto.RegisterType((*CheckTaskResponse)(nil), "pb.CheckTaskResponse") } +func init() { proto.RegisterFile("dmmaster.proto", fileDescriptor_f9bef11f2a341f03) } + +var fileDescriptor_f9bef11f2a341f03 = []byte{ + // 1362 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcf, 0x4f, 0xe3, 0xc6, + 0x17, 0x8f, 0x13, 0xc8, 0x92, 0x97, 0x5d, 0x04, 0xb3, 0x90, 0x38, 0x86, 0xf5, 0xf2, 0xf5, 0xb7, + 0x5a, 0xa1, 0x1e, 0xa0, 0x84, 0x9e, 0x90, 0x56, 0xea, 0x42, 0x58, 0x15, 0x29, 0x14, 0x70, 0x8a, + 0xaa, 0xbd, 0x54, 0x72, 0x92, 0x21, 0x58, 0x49, 0x6c, 0x63, 0x3b, 0xb0, 0xb4, 0xaa, 0x2a, 0xf5, + 0xd0, 0x43, 0x7b, 0x69, 0xd5, 0xc3, 0x9e, 0xfb, 0xdf, 0xec, 0x71, 0xa5, 0x5e, 0x7a, 0xac, 0xa0, + 0x7f, 0x48, 0x35, 0x3f, 0x62, 0x8f, 0x7f, 0x85, 0x85, 0x43, 0x6e, 0x9e, 0x79, 0x9e, 0xcf, 0xfb, + 0xbc, 0x37, 0x6f, 0xde, 0x7c, 0x6c, 0x98, 0xef, 0x0e, 0x87, 0x86, 0xe7, 0x63, 0x77, 0xc3, 0x71, + 0x6d, 0xdf, 0x46, 0x79, 0xa7, 0xad, 0xcc, 0x77, 0x87, 0x57, 0xb6, 0xdb, 0x1f, 0xcf, 0x29, 0xab, + 0x3d, 0xdb, 0xee, 0x0d, 0xf0, 0xa6, 0xe1, 0x98, 0x9b,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, 0x0c, 0x29, + 0xc2, 0x02, 0x9e, 0xac, 0x71, 0x94, 0xff, 0x4f, 0x7c, 0x47, 0x48, 0x6b, 0x25, 0x29, 0x0d, 0xe8, + 0xd1, 0x79, 0x26, 0x9c, 0xc4, 0x64, 0x53, 0x66, 0xf1, 0x67, 0xab, 0x0a, 0x2d, 0x87, 0x8e, 0x60, + 0x21, 0xde, 0x38, 0x11, 0x3d, 0x33, 0x19, 0x7d, 0x5e, 0x59, 0x4d, 0x37, 0x8a, 0xfb, 0x94, 0xbc, + 0x84, 0x19, 0xcf, 0x4c, 0x15, 0xc1, 0x78, 0x66, 0x8b, 0x00, 0xca, 0x13, 0x25, 0xff, 0x6c, 0x31, + 0xd8, 0xcc, 0x3f, 0x5e, 0x13, 0xeb, 0x69, 0x07, 0x4a, 0x41, 0x3f, 0x66, 0x5d, 0x34, 0xde, 0xc6, + 0x59, 0x17, 0x4d, 0x34, 0x6d, 0x2d, 0xb7, 0x2b, 0xbf, 0xbf, 0x51, 0xa5, 0x0f, 0x37, 0xaa, 0xf4, + 0xcf, 0x8d, 0x2a, 0xfd, 0x76, 0xab, 0xe6, 0x3e, 0xdc, 0xaa, 0xb9, 0xbf, 0x6f, 0xd5, 0x5c, 0xbb, + 0x48, 0xff, 0xc3, 0x6d, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0x1f, 0xa8, 0xac, 0xda, 0xcb, 0x13, + 0x00, 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -2342,6 +2432,62 @@ type MasterServer interface { CheckTask(context.Context, *CheckTaskRequest) (*CheckTaskResponse, error) } +// UnimplementedMasterServer can be embedded to have forward compatible implementations. +type UnimplementedMasterServer struct { +} + +func (*UnimplementedMasterServer) StartTask(ctx context.Context, req *StartTaskRequest) (*StartTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StartTask not implemented") +} +func (*UnimplementedMasterServer) OperateTask(ctx context.Context, req *OperateTaskRequest) (*OperateTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperateTask not implemented") +} +func (*UnimplementedMasterServer) UpdateTask(ctx context.Context, req *UpdateTaskRequest) (*UpdateTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateTask not implemented") +} +func (*UnimplementedMasterServer) QueryStatus(ctx context.Context, req *QueryStatusListRequest) (*QueryStatusListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryStatus not implemented") +} +func (*UnimplementedMasterServer) QueryError(ctx context.Context, req *QueryErrorListRequest) (*QueryErrorListResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryError not implemented") +} +func (*UnimplementedMasterServer) ShowDDLLocks(ctx context.Context, req *ShowDDLLocksRequest) (*ShowDDLLocksResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ShowDDLLocks not implemented") +} +func (*UnimplementedMasterServer) UnlockDDLLock(ctx context.Context, req *UnlockDDLLockRequest) (*UnlockDDLLockResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UnlockDDLLock not implemented") +} +func (*UnimplementedMasterServer) UpdateMasterConfig(ctx context.Context, req *UpdateMasterConfigRequest) (*UpdateMasterConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateMasterConfig not implemented") +} +func (*UnimplementedMasterServer) UpdateWorkerRelayConfig(ctx context.Context, req *UpdateWorkerRelayConfigRequest) (*CommonWorkerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkerRelayConfig not implemented") +} +func (*UnimplementedMasterServer) BreakWorkerDDLLock(ctx context.Context, req *BreakWorkerDDLLockRequest) (*BreakWorkerDDLLockResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BreakWorkerDDLLock not implemented") +} +func (*UnimplementedMasterServer) HandleSQLs(ctx context.Context, req *HandleSQLsRequest) (*HandleSQLsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method HandleSQLs not implemented") +} +func (*UnimplementedMasterServer) SwitchWorkerRelayMaster(ctx context.Context, req *SwitchWorkerRelayMasterRequest) (*SwitchWorkerRelayMasterResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SwitchWorkerRelayMaster not implemented") +} +func (*UnimplementedMasterServer) OperateWorkerRelayTask(ctx context.Context, req *OperateWorkerRelayRequest) (*OperateWorkerRelayResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperateWorkerRelayTask not implemented") +} +func (*UnimplementedMasterServer) PurgeWorkerRelay(ctx context.Context, req *PurgeWorkerRelayRequest) (*PurgeWorkerRelayResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PurgeWorkerRelay not implemented") +} +func (*UnimplementedMasterServer) RefreshWorkerTasks(ctx context.Context, req *RefreshWorkerTasksRequest) (*RefreshWorkerTasksResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method RefreshWorkerTasks not implemented") +} +func (*UnimplementedMasterServer) MigrateWorkerRelay(ctx context.Context, req *MigrateWorkerRelayRequest) (*CommonWorkerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MigrateWorkerRelay not implemented") +} +func (*UnimplementedMasterServer) CheckTask(ctx context.Context, req *CheckTaskRequest) (*CheckTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CheckTask not implemented") +} + func RegisterMasterServer(s *grpc.Server, srv MasterServer) { s.RegisterService(&_Master_serviceDesc, srv) } @@ -2732,7 +2878,7 @@ var _Master_serviceDesc = grpc.ServiceDesc{ func (m *MigrateWorkerRelayRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2740,34 +2886,41 @@ func (m *MigrateWorkerRelayRequest) Marshal() (dAtA []byte, err error) { } func (m *MigrateWorkerRelayRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MigrateWorkerRelayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.BinlogName) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.BinlogName))) - i += copy(dAtA[i:], m.BinlogName) + if len(m.Worker) > 0 { + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Worker))) + i-- + dAtA[i] = 0x1a } if m.BinlogPos != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintDmmaster(dAtA, i, uint64(m.BinlogPos)) + i-- + dAtA[i] = 0x10 } - if len(m.Worker) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Worker))) - i += copy(dAtA[i:], m.Worker) + if len(m.BinlogName) > 0 { + i -= len(m.BinlogName) + copy(dAtA[i:], m.BinlogName) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.BinlogName))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateWorkerRelayConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2775,29 +2928,36 @@ func (m *UpdateWorkerRelayConfigRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateWorkerRelayConfigRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateWorkerRelayConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Config) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Config))) - i += copy(dAtA[i:], m.Config) - } if len(m.Worker) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Worker))) - i += copy(dAtA[i:], m.Worker) + i-- + dAtA[i] = 0x12 + } + if len(m.Config) > 0 { + i -= len(m.Config) + copy(dAtA[i:], m.Config) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Config))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *StartTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2805,38 +2965,38 @@ func (m *StartTaskRequest) Marshal() (dAtA []byte, err error) { } func (m *StartTaskRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StartTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Task) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Task))) - i += copy(dAtA[i:], m.Task) - } if len(m.Workers) > 0 { - for _, s := range m.Workers { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Workers[iNdEx]) + copy(dAtA[i:], m.Workers[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Workers[iNdEx]))) + i-- dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - return i, nil + if len(m.Task) > 0 { + i -= len(m.Task) + copy(dAtA[i:], m.Task) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Task))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *StartTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2844,45 +3004,53 @@ func (m *StartTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *StartTaskResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StartTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Result { - dAtA[i] = 0x8 - i++ - if m.Result { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Workers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmmaster(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i++ } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 } - if len(m.Workers) > 0 { - for _, msg := range m.Workers { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.Result { + i-- + if m.Result { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateMasterConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2890,23 +3058,29 @@ func (m *UpdateMasterConfigRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateMasterConfigRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateMasterConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Config) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Config) + copy(dAtA[i:], m.Config) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Config))) - i += copy(dAtA[i:], m.Config) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateMasterConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2914,45 +3088,53 @@ func (m *UpdateMasterConfigResponse) Marshal() (dAtA []byte, err error) { } func (m *UpdateMasterConfigResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateMasterConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Result { - dAtA[i] = 0x8 - i++ - if m.Result { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Workers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmmaster(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i++ } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 } - if len(m.Workers) > 0 { - for _, msg := range m.Workers { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.Result { + i-- + if m.Result { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *OperateTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -2960,43 +3142,43 @@ func (m *OperateTaskRequest) Marshal() (dAtA []byte, err error) { } func (m *OperateTaskRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OperateTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Op != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(m.Op)) + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Workers[iNdEx]) + copy(dAtA[i:], m.Workers[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Workers[iNdEx]))) + i-- + dAtA[i] = 0x1a + } } if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Name) + copy(dAtA[i:], m.Name) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + i-- + dAtA[i] = 0x12 } - if len(m.Workers) > 0 { - for _, s := range m.Workers { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } + if m.Op != 0 { + i = encodeVarintDmmaster(dAtA, i, uint64(m.Op)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *OperateTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3004,50 +3186,58 @@ func (m *OperateTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *OperateTaskResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OperateTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Op != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(m.Op)) + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Workers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmmaster(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } } - if m.Result { - dAtA[i] = 0x10 - i++ + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x1a + } + if m.Result { + i-- if m.Result { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.Msg) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x10 } - if len(m.Workers) > 0 { - for _, msg := range m.Workers { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.Op != 0 { + i = encodeVarintDmmaster(dAtA, i, uint64(m.Op)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3055,38 +3245,38 @@ func (m *UpdateTaskRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateTaskRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Task) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Task))) - i += copy(dAtA[i:], m.Task) - } if len(m.Workers) > 0 { - for _, s := range m.Workers { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Workers[iNdEx]) + copy(dAtA[i:], m.Workers[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Workers[iNdEx]))) + i-- dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - return i, nil + if len(m.Task) > 0 { + i -= len(m.Task) + copy(dAtA[i:], m.Task) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Task))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *UpdateTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3094,45 +3284,53 @@ func (m *UpdateTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *UpdateTaskResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Result { - dAtA[i] = 0x8 - i++ - if m.Result { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Workers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmmaster(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i++ } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 } - if len(m.Workers) > 0 { - for _, msg := range m.Workers { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.Result { + i-- + if m.Result { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *QueryStatusListRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3140,38 +3338,38 @@ func (m *QueryStatusListRequest) Marshal() (dAtA []byte, err error) { } func (m *QueryStatusListRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryStatusListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } if len(m.Workers) > 0 { - for _, s := range m.Workers { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Workers[iNdEx]) + copy(dAtA[i:], m.Workers[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Workers[iNdEx]))) + i-- dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - return i, nil + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *QueryStatusListResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3179,45 +3377,53 @@ func (m *QueryStatusListResponse) Marshal() (dAtA []byte, err error) { } func (m *QueryStatusListResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryStatusListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Result { - dAtA[i] = 0x8 - i++ - if m.Result { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Workers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmmaster(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i++ } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 } - if len(m.Workers) > 0 { - for _, msg := range m.Workers { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.Result { + i-- + if m.Result { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *QueryErrorListRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3225,38 +3431,38 @@ func (m *QueryErrorListRequest) Marshal() (dAtA []byte, err error) { } func (m *QueryErrorListRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryErrorListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } if len(m.Workers) > 0 { - for _, s := range m.Workers { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Workers[iNdEx]) + copy(dAtA[i:], m.Workers[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Workers[iNdEx]))) + i-- dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - return i, nil + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *QueryErrorListResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3264,45 +3470,53 @@ func (m *QueryErrorListResponse) Marshal() (dAtA []byte, err error) { } func (m *QueryErrorListResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryErrorListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Result { - dAtA[i] = 0x8 - i++ - if m.Result { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Workers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmmaster(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i++ } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 } - if len(m.Workers) > 0 { - for _, msg := range m.Workers { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.Result { + i-- + if m.Result { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ShowDDLLocksRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3310,38 +3524,38 @@ func (m *ShowDDLLocksRequest) Marshal() (dAtA []byte, err error) { } func (m *ShowDDLLocksRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ShowDDLLocksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Task) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Task))) - i += copy(dAtA[i:], m.Task) - } if len(m.Workers) > 0 { - for _, s := range m.Workers { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Workers[iNdEx]) + copy(dAtA[i:], m.Workers[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Workers[iNdEx]))) + i-- dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - return i, nil + if len(m.Task) > 0 { + i -= len(m.Task) + copy(dAtA[i:], m.Task) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Task))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *DDLLock) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3349,80 +3563,70 @@ func (m *DDLLock) Marshal() (dAtA []byte, err error) { } func (m *DDLLock) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DDLLock) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ID) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.ID))) - i += copy(dAtA[i:], m.ID) - } - if len(m.Task) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Task))) - i += copy(dAtA[i:], m.Task) - } - if len(m.Owner) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Owner))) - i += copy(dAtA[i:], m.Owner) - } - if len(m.DDLs) > 0 { - for _, s := range m.DDLs { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) + if len(m.Unsynced) > 0 { + for iNdEx := len(m.Unsynced) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Unsynced[iNdEx]) + copy(dAtA[i:], m.Unsynced[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Unsynced[iNdEx]))) + i-- + dAtA[i] = 0x32 } } if len(m.Synced) > 0 { - for _, s := range m.Synced { + for iNdEx := len(m.Synced) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Synced[iNdEx]) + copy(dAtA[i:], m.Synced[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Synced[iNdEx]))) + i-- dAtA[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - if len(m.Unsynced) > 0 { - for _, s := range m.Unsynced { - dAtA[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) + if len(m.DDLs) > 0 { + for iNdEx := len(m.DDLs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.DDLs[iNdEx]) + copy(dAtA[i:], m.DDLs[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.DDLs[iNdEx]))) + i-- + dAtA[i] = 0x22 } } - return i, nil + if len(m.Owner) > 0 { + i -= len(m.Owner) + copy(dAtA[i:], m.Owner) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Owner))) + i-- + dAtA[i] = 0x1a + } + if len(m.Task) > 0 { + i -= len(m.Task) + copy(dAtA[i:], m.Task) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Task))) + i-- + dAtA[i] = 0x12 + } + if len(m.ID) > 0 { + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *ShowDDLLocksResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3430,45 +3634,53 @@ func (m *ShowDDLLocksResponse) Marshal() (dAtA []byte, err error) { } func (m *ShowDDLLocksResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ShowDDLLocksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Result { - dAtA[i] = 0x8 - i++ - if m.Result { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Locks) > 0 { + for iNdEx := len(m.Locks) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Locks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmmaster(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i++ } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 } - if len(m.Locks) > 0 { - for _, msg := range m.Locks { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.Result { + i-- + if m.Result { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *UnlockDDLLockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3476,54 +3688,55 @@ func (m *UnlockDDLLockRequest) Marshal() (dAtA []byte, err error) { } func (m *UnlockDDLLockRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UnlockDDLLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.ID) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.ID))) - i += copy(dAtA[i:], m.ID) - } - if len(m.ReplaceOwner) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.ReplaceOwner))) - i += copy(dAtA[i:], m.ReplaceOwner) - } - if len(m.Workers) > 0 { - for _, s := range m.Workers { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } - } if m.ForceRemove { - dAtA[i] = 0x20 - i++ + i-- if m.ForceRemove { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 + } + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Workers[iNdEx]) + copy(dAtA[i:], m.Workers[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Workers[iNdEx]))) + i-- + dAtA[i] = 0x1a + } + } + if len(m.ReplaceOwner) > 0 { + i -= len(m.ReplaceOwner) + copy(dAtA[i:], m.ReplaceOwner) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.ReplaceOwner))) + i-- + dAtA[i] = 0x12 } - return i, nil + if len(m.ID) > 0 { + i -= len(m.ID) + copy(dAtA[i:], m.ID) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.ID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *UnlockDDLLockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3531,45 +3744,53 @@ func (m *UnlockDDLLockResponse) Marshal() (dAtA []byte, err error) { } func (m *UnlockDDLLockResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UnlockDDLLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Result { - dAtA[i] = 0x8 - i++ - if m.Result { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Workers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmmaster(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i++ } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 } - if len(m.Workers) > 0 { - for _, msg := range m.Workers { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.Result { + i-- + if m.Result { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *BreakWorkerDDLLockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3577,64 +3798,65 @@ func (m *BreakWorkerDDLLockRequest) Marshal() (dAtA []byte, err error) { } func (m *BreakWorkerDDLLockRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BreakWorkerDDLLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Workers) > 0 { - for _, s := range m.Workers { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) + if m.SkipDDL { + i-- + if m.SkipDDL { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - } - if len(m.Task) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Task))) - i += copy(dAtA[i:], m.Task) - } - if len(m.RemoveLockID) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.RemoveLockID))) - i += copy(dAtA[i:], m.RemoveLockID) + i-- + dAtA[i] = 0x28 } if m.ExecDDL { - dAtA[i] = 0x20 - i++ + i-- if m.ExecDDL { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 } - if m.SkipDDL { - dAtA[i] = 0x28 - i++ - if m.SkipDDL { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.RemoveLockID) > 0 { + i -= len(m.RemoveLockID) + copy(dAtA[i:], m.RemoveLockID) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.RemoveLockID))) + i-- + dAtA[i] = 0x1a + } + if len(m.Task) > 0 { + i -= len(m.Task) + copy(dAtA[i:], m.Task) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Task))) + i-- + dAtA[i] = 0x12 + } + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Workers[iNdEx]) + copy(dAtA[i:], m.Workers[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Workers[iNdEx]))) + i-- + dAtA[i] = 0xa } - i++ } - return i, nil + return len(dAtA) - i, nil } func (m *BreakWorkerDDLLockResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3642,45 +3864,53 @@ func (m *BreakWorkerDDLLockResponse) Marshal() (dAtA []byte, err error) { } func (m *BreakWorkerDDLLockResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BreakWorkerDDLLockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Result { - dAtA[i] = 0x8 - i++ - if m.Result { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Workers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmmaster(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i++ } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 } - if len(m.Workers) > 0 { - for _, msg := range m.Workers { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.Result { + i-- + if m.Result { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *SwitchWorkerRelayMasterRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3688,32 +3918,31 @@ func (m *SwitchWorkerRelayMasterRequest) Marshal() (dAtA []byte, err error) { } func (m *SwitchWorkerRelayMasterRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwitchWorkerRelayMasterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Workers) > 0 { - for _, s := range m.Workers { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Workers[iNdEx]) + copy(dAtA[i:], m.Workers[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Workers[iNdEx]))) + i-- dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - return i, nil + return len(dAtA) - i, nil } func (m *SwitchWorkerRelayMasterResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3721,45 +3950,53 @@ func (m *SwitchWorkerRelayMasterResponse) Marshal() (dAtA []byte, err error) { } func (m *SwitchWorkerRelayMasterResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwitchWorkerRelayMasterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Result { - dAtA[i] = 0x8 - i++ - if m.Result { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Workers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmmaster(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i++ } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 } - if len(m.Workers) > 0 { - for _, msg := range m.Workers { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.Result { + i-- + if m.Result { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *OperateWorkerRelayRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3767,37 +4004,36 @@ func (m *OperateWorkerRelayRequest) Marshal() (dAtA []byte, err error) { } func (m *OperateWorkerRelayRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OperateWorkerRelayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Op != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(m.Op)) - } if len(m.Workers) > 0 { - for _, s := range m.Workers { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Workers[iNdEx]) + copy(dAtA[i:], m.Workers[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Workers[iNdEx]))) + i-- dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - return i, nil + if m.Op != 0 { + i = encodeVarintDmmaster(dAtA, i, uint64(m.Op)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *OperateWorkerRelayResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3805,50 +4041,58 @@ func (m *OperateWorkerRelayResponse) Marshal() (dAtA []byte, err error) { } func (m *OperateWorkerRelayResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OperateWorkerRelayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Op != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(m.Op)) + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Workers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmmaster(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } + } + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x1a } if m.Result { - dAtA[i] = 0x10 - i++ + i-- if m.Result { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.Msg) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x10 } - if len(m.Workers) > 0 { - for _, msg := range m.Workers { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.Op != 0 { + i = encodeVarintDmmaster(dAtA, i, uint64(m.Op)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *RefreshWorkerTasksRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3856,17 +4100,22 @@ func (m *RefreshWorkerTasksRequest) Marshal() (dAtA []byte, err error) { } func (m *RefreshWorkerTasksRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RefreshWorkerTasksRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + return len(dAtA) - i, nil } func (m *RefreshWorkerTasksMsg) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3874,29 +4123,36 @@ func (m *RefreshWorkerTasksMsg) Marshal() (dAtA []byte, err error) { } func (m *RefreshWorkerTasksMsg) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RefreshWorkerTasksMsg) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Worker) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Worker))) - i += copy(dAtA[i:], m.Worker) - } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 + } + if len(m.Worker) > 0 { + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Worker))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *RefreshWorkerTasksResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -3904,111 +4160,121 @@ func (m *RefreshWorkerTasksResponse) Marshal() (dAtA []byte, err error) { } func (m *RefreshWorkerTasksResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RefreshWorkerTasksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Workers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmmaster(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } if m.Result { - dAtA[i] = 0x8 - i++ + i-- if m.Result { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.Workers) > 0 { - for _, msg := range m.Workers { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *HandleSQLsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } -func (m *HandleSQLsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int +func (m *HandleSQLsRequest) MarshalTo(dAtA []byte) (int, error) { + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HandleSQLsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.Op != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(m.Op)) - } - if len(m.Args) > 0 { - for _, s := range m.Args { - dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) + if m.Sharding { + i-- + if m.Sharding { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x38 } - if len(m.BinlogPos) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.BinlogPos))) - i += copy(dAtA[i:], m.BinlogPos) + if len(m.SqlPattern) > 0 { + i -= len(m.SqlPattern) + copy(dAtA[i:], m.SqlPattern) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.SqlPattern))) + i-- + dAtA[i] = 0x32 } if len(m.Worker) > 0 { - dAtA[i] = 0x2a - i++ + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Worker))) - i += copy(dAtA[i:], m.Worker) + i-- + dAtA[i] = 0x2a } - if len(m.SqlPattern) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.SqlPattern))) - i += copy(dAtA[i:], m.SqlPattern) + if len(m.BinlogPos) > 0 { + i -= len(m.BinlogPos) + copy(dAtA[i:], m.BinlogPos) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.BinlogPos))) + i-- + dAtA[i] = 0x22 } - if m.Sharding { - dAtA[i] = 0x38 - i++ - if m.Sharding { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Args) > 0 { + for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Args[iNdEx]) + copy(dAtA[i:], m.Args[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Args[iNdEx]))) + i-- + dAtA[i] = 0x1a } - i++ } - return i, nil + if m.Op != 0 { + i = encodeVarintDmmaster(dAtA, i, uint64(m.Op)) + i-- + dAtA[i] = 0x10 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *HandleSQLsResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4016,45 +4282,53 @@ func (m *HandleSQLsResponse) Marshal() (dAtA []byte, err error) { } func (m *HandleSQLsResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HandleSQLsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Result { - dAtA[i] = 0x8 - i++ - if m.Result { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Workers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmmaster(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i++ } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 } - if len(m.Workers) > 0 { - for _, msg := range m.Workers { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.Result { + i-- + if m.Result { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *PurgeWorkerRelayRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4062,59 +4336,60 @@ func (m *PurgeWorkerRelayRequest) Marshal() (dAtA []byte, err error) { } func (m *PurgeWorkerRelayRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PurgeWorkerRelayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Workers) > 0 { - for _, s := range m.Workers { - dAtA[i] = 0xa - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } + if len(m.SubDir) > 0 { + i -= len(m.SubDir) + copy(dAtA[i:], m.SubDir) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.SubDir))) + i-- + dAtA[i] = 0x2a + } + if len(m.Filename) > 0 { + i -= len(m.Filename) + copy(dAtA[i:], m.Filename) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Filename))) + i-- + dAtA[i] = 0x22 + } + if m.Time != 0 { + i = encodeVarintDmmaster(dAtA, i, uint64(m.Time)) + i-- + dAtA[i] = 0x18 } if m.Inactive { - dAtA[i] = 0x10 - i++ + i-- if m.Inactive { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.Time != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(m.Time)) - } - if len(m.Filename) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Filename))) - i += copy(dAtA[i:], m.Filename) + i-- + dAtA[i] = 0x10 } - if len(m.SubDir) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.SubDir))) - i += copy(dAtA[i:], m.SubDir) + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Workers[iNdEx]) + copy(dAtA[i:], m.Workers[iNdEx]) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Workers[iNdEx]))) + i-- + dAtA[i] = 0xa + } } - return i, nil + return len(dAtA) - i, nil } func (m *PurgeWorkerRelayResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4122,45 +4397,53 @@ func (m *PurgeWorkerRelayResponse) Marshal() (dAtA []byte, err error) { } func (m *PurgeWorkerRelayResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PurgeWorkerRelayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Result { - dAtA[i] = 0x8 - i++ - if m.Result { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if len(m.Workers) > 0 { + for iNdEx := len(m.Workers) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Workers[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmmaster(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } - i++ } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 } - if len(m.Workers) > 0 { - for _, msg := range m.Workers { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n + if m.Result { + i-- + if m.Result { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *CheckTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4168,23 +4451,29 @@ func (m *CheckTaskRequest) Marshal() (dAtA []byte, err error) { } func (m *CheckTaskRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Task) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Task) + copy(dAtA[i:], m.Task) i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Task))) - i += copy(dAtA[i:], m.Task) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CheckTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4192,37 +4481,45 @@ func (m *CheckTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *CheckTaskResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x12 + } if m.Result { - dAtA[i] = 0x8 - i++ + i-- if m.Result { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmmaster(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func encodeVarintDmmaster(dAtA []byte, offset int, v uint64) int { + offset -= sovDmmaster(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *MigrateWorkerRelayRequest) Size() (n int) { if m == nil { @@ -4950,14 +5247,7 @@ func (m *CheckTaskResponse) Size() (n int) { } func sovDmmaster(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozDmmaster(x uint64) (n int) { return sovDmmaster(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -4977,7 +5267,7 @@ func (m *MigrateWorkerRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5005,7 +5295,7 @@ func (m *MigrateWorkerRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5015,6 +5305,9 @@ func (m *MigrateWorkerRelayRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5034,7 +5327,7 @@ func (m *MigrateWorkerRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BinlogPos |= (uint32(b) & 0x7F) << shift + m.BinlogPos |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -5053,7 +5346,7 @@ func (m *MigrateWorkerRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5063,6 +5356,9 @@ func (m *MigrateWorkerRelayRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5077,6 +5373,9 @@ func (m *MigrateWorkerRelayRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5104,7 +5403,7 @@ func (m *UpdateWorkerRelayConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5132,7 +5431,7 @@ func (m *UpdateWorkerRelayConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5142,6 +5441,9 @@ func (m *UpdateWorkerRelayConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5161,7 +5463,7 @@ func (m *UpdateWorkerRelayConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5171,6 +5473,9 @@ func (m *UpdateWorkerRelayConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5185,6 +5490,9 @@ func (m *UpdateWorkerRelayConfigRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5212,7 +5520,7 @@ func (m *StartTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5240,7 +5548,7 @@ func (m *StartTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5250,6 +5558,9 @@ func (m *StartTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5269,7 +5580,7 @@ func (m *StartTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5279,6 +5590,9 @@ func (m *StartTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5293,6 +5607,9 @@ func (m *StartTaskRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5320,7 +5637,7 @@ func (m *StartTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5348,7 +5665,7 @@ func (m *StartTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5368,7 +5685,7 @@ func (m *StartTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5378,6 +5695,9 @@ func (m *StartTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5397,7 +5717,7 @@ func (m *StartTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5406,6 +5726,9 @@ func (m *StartTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5423,6 +5746,9 @@ func (m *StartTaskResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5450,7 +5776,7 @@ func (m *UpdateMasterConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5478,7 +5804,7 @@ func (m *UpdateMasterConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5488,6 +5814,9 @@ func (m *UpdateMasterConfigRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5502,6 +5831,9 @@ func (m *UpdateMasterConfigRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5529,7 +5861,7 @@ func (m *UpdateMasterConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5557,7 +5889,7 @@ func (m *UpdateMasterConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5577,7 +5909,7 @@ func (m *UpdateMasterConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5587,6 +5919,9 @@ func (m *UpdateMasterConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5606,7 +5941,7 @@ func (m *UpdateMasterConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5615,6 +5950,9 @@ func (m *UpdateMasterConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5632,6 +5970,9 @@ func (m *UpdateMasterConfigResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5659,7 +6000,7 @@ func (m *OperateTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5687,7 +6028,7 @@ func (m *OperateTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= (TaskOp(b) & 0x7F) << shift + m.Op |= TaskOp(b&0x7F) << shift if b < 0x80 { break } @@ -5706,7 +6047,7 @@ func (m *OperateTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5716,6 +6057,9 @@ func (m *OperateTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5735,7 +6079,7 @@ func (m *OperateTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5745,6 +6089,9 @@ func (m *OperateTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5759,6 +6106,9 @@ func (m *OperateTaskRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5786,7 +6136,7 @@ func (m *OperateTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5814,7 +6164,7 @@ func (m *OperateTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= (TaskOp(b) & 0x7F) << shift + m.Op |= TaskOp(b&0x7F) << shift if b < 0x80 { break } @@ -5833,7 +6183,7 @@ func (m *OperateTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5853,7 +6203,7 @@ func (m *OperateTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5863,6 +6213,9 @@ func (m *OperateTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5882,7 +6235,7 @@ func (m *OperateTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -5891,6 +6244,9 @@ func (m *OperateTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5908,6 +6264,9 @@ func (m *OperateTaskResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -5935,7 +6294,7 @@ func (m *UpdateTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5963,7 +6322,7 @@ func (m *UpdateTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -5973,6 +6332,9 @@ func (m *UpdateTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -5992,7 +6354,7 @@ func (m *UpdateTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6002,6 +6364,9 @@ func (m *UpdateTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6016,6 +6381,9 @@ func (m *UpdateTaskRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -6043,7 +6411,7 @@ func (m *UpdateTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6071,7 +6439,7 @@ func (m *UpdateTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6091,7 +6459,7 @@ func (m *UpdateTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6101,6 +6469,9 @@ func (m *UpdateTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6120,7 +6491,7 @@ func (m *UpdateTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6129,6 +6500,9 @@ func (m *UpdateTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6146,6 +6520,9 @@ func (m *UpdateTaskResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -6173,7 +6550,7 @@ func (m *QueryStatusListRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6201,7 +6578,7 @@ func (m *QueryStatusListRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6211,6 +6588,9 @@ func (m *QueryStatusListRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6230,7 +6610,7 @@ func (m *QueryStatusListRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6240,6 +6620,9 @@ func (m *QueryStatusListRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6254,6 +6637,9 @@ func (m *QueryStatusListRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -6281,7 +6667,7 @@ func (m *QueryStatusListResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6309,7 +6695,7 @@ func (m *QueryStatusListResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6329,7 +6715,7 @@ func (m *QueryStatusListResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6339,6 +6725,9 @@ func (m *QueryStatusListResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6358,7 +6747,7 @@ func (m *QueryStatusListResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6367,6 +6756,9 @@ func (m *QueryStatusListResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6384,6 +6776,9 @@ func (m *QueryStatusListResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -6411,7 +6806,7 @@ func (m *QueryErrorListRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6439,7 +6834,7 @@ func (m *QueryErrorListRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6449,6 +6844,9 @@ func (m *QueryErrorListRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6468,7 +6866,7 @@ func (m *QueryErrorListRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6478,6 +6876,9 @@ func (m *QueryErrorListRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6492,6 +6893,9 @@ func (m *QueryErrorListRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -6519,7 +6923,7 @@ func (m *QueryErrorListResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6547,7 +6951,7 @@ func (m *QueryErrorListResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6567,7 +6971,7 @@ func (m *QueryErrorListResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6577,6 +6981,9 @@ func (m *QueryErrorListResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6596,7 +7003,7 @@ func (m *QueryErrorListResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -6605,6 +7012,9 @@ func (m *QueryErrorListResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6622,6 +7032,9 @@ func (m *QueryErrorListResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -6649,7 +7062,7 @@ func (m *ShowDDLLocksRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6677,7 +7090,7 @@ func (m *ShowDDLLocksRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6687,6 +7100,9 @@ func (m *ShowDDLLocksRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6706,7 +7122,7 @@ func (m *ShowDDLLocksRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6716,6 +7132,9 @@ func (m *ShowDDLLocksRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6730,6 +7149,9 @@ func (m *ShowDDLLocksRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -6757,7 +7179,7 @@ func (m *DDLLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6785,7 +7207,7 @@ func (m *DDLLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6795,6 +7217,9 @@ func (m *DDLLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6814,7 +7239,7 @@ func (m *DDLLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6824,6 +7249,9 @@ func (m *DDLLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6843,7 +7271,7 @@ func (m *DDLLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6853,6 +7281,9 @@ func (m *DDLLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6872,7 +7303,7 @@ func (m *DDLLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6882,6 +7313,9 @@ func (m *DDLLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6901,7 +7335,7 @@ func (m *DDLLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6911,6 +7345,9 @@ func (m *DDLLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6930,7 +7367,7 @@ func (m *DDLLock) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -6940,6 +7377,9 @@ func (m *DDLLock) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -6954,6 +7394,9 @@ func (m *DDLLock) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -6981,7 +7424,7 @@ func (m *ShowDDLLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7009,7 +7452,7 @@ func (m *ShowDDLLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7029,7 +7472,7 @@ func (m *ShowDDLLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7039,6 +7482,9 @@ func (m *ShowDDLLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7058,7 +7504,7 @@ func (m *ShowDDLLocksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7067,6 +7513,9 @@ func (m *ShowDDLLocksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7084,6 +7533,9 @@ func (m *ShowDDLLocksResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7111,7 +7563,7 @@ func (m *UnlockDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7139,7 +7591,7 @@ func (m *UnlockDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7149,6 +7601,9 @@ func (m *UnlockDDLLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7168,7 +7623,7 @@ func (m *UnlockDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7178,6 +7633,9 @@ func (m *UnlockDDLLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7197,7 +7655,7 @@ func (m *UnlockDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7207,6 +7665,9 @@ func (m *UnlockDDLLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7226,7 +7687,7 @@ func (m *UnlockDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7241,6 +7702,9 @@ func (m *UnlockDDLLockRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7268,7 +7732,7 @@ func (m *UnlockDDLLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7296,7 +7760,7 @@ func (m *UnlockDDLLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7316,7 +7780,7 @@ func (m *UnlockDDLLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7326,6 +7790,9 @@ func (m *UnlockDDLLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7345,7 +7812,7 @@ func (m *UnlockDDLLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7354,6 +7821,9 @@ func (m *UnlockDDLLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7371,6 +7841,9 @@ func (m *UnlockDDLLockResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7398,7 +7871,7 @@ func (m *BreakWorkerDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7426,7 +7899,7 @@ func (m *BreakWorkerDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7436,6 +7909,9 @@ func (m *BreakWorkerDDLLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7455,7 +7931,7 @@ func (m *BreakWorkerDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7465,6 +7941,9 @@ func (m *BreakWorkerDDLLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7484,7 +7963,7 @@ func (m *BreakWorkerDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7494,6 +7973,9 @@ func (m *BreakWorkerDDLLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7513,7 +7995,7 @@ func (m *BreakWorkerDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7533,7 +8015,7 @@ func (m *BreakWorkerDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7548,6 +8030,9 @@ func (m *BreakWorkerDDLLockRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7575,7 +8060,7 @@ func (m *BreakWorkerDDLLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7603,7 +8088,7 @@ func (m *BreakWorkerDDLLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7623,7 +8108,7 @@ func (m *BreakWorkerDDLLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7633,6 +8118,9 @@ func (m *BreakWorkerDDLLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7652,7 +8140,7 @@ func (m *BreakWorkerDDLLockResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7661,6 +8149,9 @@ func (m *BreakWorkerDDLLockResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7678,6 +8169,9 @@ func (m *BreakWorkerDDLLockResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7705,7 +8199,7 @@ func (m *SwitchWorkerRelayMasterRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7733,7 +8227,7 @@ func (m *SwitchWorkerRelayMasterRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7743,6 +8237,9 @@ func (m *SwitchWorkerRelayMasterRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7757,6 +8254,9 @@ func (m *SwitchWorkerRelayMasterRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7784,7 +8284,7 @@ func (m *SwitchWorkerRelayMasterResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7812,7 +8312,7 @@ func (m *SwitchWorkerRelayMasterResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7832,7 +8332,7 @@ func (m *SwitchWorkerRelayMasterResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7842,6 +8342,9 @@ func (m *SwitchWorkerRelayMasterResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7861,7 +8364,7 @@ func (m *SwitchWorkerRelayMasterResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7870,6 +8373,9 @@ func (m *SwitchWorkerRelayMasterResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7887,6 +8393,9 @@ func (m *SwitchWorkerRelayMasterResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7914,7 +8423,7 @@ func (m *OperateWorkerRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7942,7 +8451,7 @@ func (m *OperateWorkerRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= (RelayOp(b) & 0x7F) << shift + m.Op |= RelayOp(b&0x7F) << shift if b < 0x80 { break } @@ -7961,7 +8470,7 @@ func (m *OperateWorkerRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7971,6 +8480,9 @@ func (m *OperateWorkerRelayRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7985,6 +8497,9 @@ func (m *OperateWorkerRelayRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8012,7 +8527,7 @@ func (m *OperateWorkerRelayResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8040,7 +8555,7 @@ func (m *OperateWorkerRelayResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= (RelayOp(b) & 0x7F) << shift + m.Op |= RelayOp(b&0x7F) << shift if b < 0x80 { break } @@ -8059,7 +8574,7 @@ func (m *OperateWorkerRelayResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8079,7 +8594,7 @@ func (m *OperateWorkerRelayResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8089,6 +8604,9 @@ func (m *OperateWorkerRelayResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8108,7 +8626,7 @@ func (m *OperateWorkerRelayResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8117,6 +8635,9 @@ func (m *OperateWorkerRelayResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8134,6 +8655,9 @@ func (m *OperateWorkerRelayResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8161,7 +8685,7 @@ func (m *RefreshWorkerTasksRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8184,6 +8708,9 @@ func (m *RefreshWorkerTasksRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8211,7 +8738,7 @@ func (m *RefreshWorkerTasksMsg) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8239,7 +8766,7 @@ func (m *RefreshWorkerTasksMsg) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8249,6 +8776,9 @@ func (m *RefreshWorkerTasksMsg) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8268,7 +8798,7 @@ func (m *RefreshWorkerTasksMsg) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8278,6 +8808,9 @@ func (m *RefreshWorkerTasksMsg) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8292,6 +8825,9 @@ func (m *RefreshWorkerTasksMsg) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8319,7 +8855,7 @@ func (m *RefreshWorkerTasksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8347,7 +8883,7 @@ func (m *RefreshWorkerTasksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8367,7 +8903,7 @@ func (m *RefreshWorkerTasksResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8376,6 +8912,9 @@ func (m *RefreshWorkerTasksResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8393,6 +8932,9 @@ func (m *RefreshWorkerTasksResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8420,7 +8962,7 @@ func (m *HandleSQLsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8448,7 +8990,7 @@ func (m *HandleSQLsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8458,6 +9000,9 @@ func (m *HandleSQLsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8477,7 +9022,7 @@ func (m *HandleSQLsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= (SQLOp(b) & 0x7F) << shift + m.Op |= SQLOp(b&0x7F) << shift if b < 0x80 { break } @@ -8496,7 +9041,7 @@ func (m *HandleSQLsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8506,6 +9051,9 @@ func (m *HandleSQLsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8525,7 +9073,7 @@ func (m *HandleSQLsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8535,6 +9083,9 @@ func (m *HandleSQLsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8554,7 +9105,7 @@ func (m *HandleSQLsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8564,6 +9115,9 @@ func (m *HandleSQLsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8583,7 +9137,7 @@ func (m *HandleSQLsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8593,6 +9147,9 @@ func (m *HandleSQLsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8612,7 +9169,7 @@ func (m *HandleSQLsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8627,6 +9184,9 @@ func (m *HandleSQLsRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8654,7 +9214,7 @@ func (m *HandleSQLsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8682,7 +9242,7 @@ func (m *HandleSQLsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8702,7 +9262,7 @@ func (m *HandleSQLsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8712,6 +9272,9 @@ func (m *HandleSQLsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8731,7 +9294,7 @@ func (m *HandleSQLsResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8740,6 +9303,9 @@ func (m *HandleSQLsResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8757,6 +9323,9 @@ func (m *HandleSQLsResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8784,7 +9353,7 @@ func (m *PurgeWorkerRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8812,7 +9381,7 @@ func (m *PurgeWorkerRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8822,6 +9391,9 @@ func (m *PurgeWorkerRelayRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8841,7 +9413,7 @@ func (m *PurgeWorkerRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8861,7 +9433,7 @@ func (m *PurgeWorkerRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Time |= (int64(b) & 0x7F) << shift + m.Time |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -8880,7 +9452,7 @@ func (m *PurgeWorkerRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8890,6 +9462,9 @@ func (m *PurgeWorkerRelayRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8909,7 +9484,7 @@ func (m *PurgeWorkerRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8919,6 +9494,9 @@ func (m *PurgeWorkerRelayRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8933,6 +9511,9 @@ func (m *PurgeWorkerRelayRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8960,7 +9541,7 @@ func (m *PurgeWorkerRelayResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8988,7 +9569,7 @@ func (m *PurgeWorkerRelayResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9008,7 +9589,7 @@ func (m *PurgeWorkerRelayResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9018,6 +9599,9 @@ func (m *PurgeWorkerRelayResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9037,7 +9621,7 @@ func (m *PurgeWorkerRelayResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9046,6 +9630,9 @@ func (m *PurgeWorkerRelayResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9063,6 +9650,9 @@ func (m *PurgeWorkerRelayResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -9090,7 +9680,7 @@ func (m *CheckTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9118,7 +9708,7 @@ func (m *CheckTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9128,6 +9718,9 @@ func (m *CheckTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9142,6 +9735,9 @@ func (m *CheckTaskRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -9169,7 +9765,7 @@ func (m *CheckTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9197,7 +9793,7 @@ func (m *CheckTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9217,7 +9813,7 @@ func (m *CheckTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9227,6 +9823,9 @@ func (m *CheckTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmmaster } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmmaster + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9241,6 +9840,9 @@ func (m *CheckTaskResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmmaster } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmmaster + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -9256,6 +9858,7 @@ func (m *CheckTaskResponse) Unmarshal(dAtA []byte) error { func skipDmmaster(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -9287,10 +9890,8 @@ func skipDmmaster(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -9307,145 +9908,34 @@ func skipDmmaster(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthDmmaster } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDmmaster - } - 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 := skipDmmaster(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDmmaster + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthDmmaster + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthDmmaster = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDmmaster = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthDmmaster = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDmmaster = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDmmaster = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("dmmaster.proto", fileDescriptor_dmmaster_04ca92798618dca8) } - -var fileDescriptor_dmmaster_04ca92798618dca8 = []byte{ - // 1362 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0xcf, 0x4f, 0xe3, 0xc6, - 0x17, 0x8f, 0x13, 0xc8, 0x92, 0x97, 0x5d, 0x04, 0xb3, 0x90, 0x38, 0x86, 0xf5, 0xf2, 0xf5, 0xb7, - 0x5a, 0xa1, 0x1e, 0xa0, 0x84, 0x9e, 0x90, 0x56, 0xea, 0x42, 0x58, 0x15, 0x29, 0x14, 0x70, 0x8a, - 0xaa, 0xbd, 0x54, 0x72, 0x92, 0x21, 0x58, 0x49, 0x6c, 0x63, 0x3b, 0xb0, 0xb4, 0xaa, 0x2a, 0xf5, - 0xd0, 0x43, 0x7b, 0x69, 0xd5, 0xc3, 0x9e, 0xfb, 0xdf, 0xec, 0x71, 0xa5, 0x5e, 0x7a, 0xac, 0xa0, - 0x7f, 0x48, 0x35, 0x3f, 0x62, 0x8f, 0x7f, 0x85, 0x85, 0x43, 0x6e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 0xaa, - 0x19, 0x3f, 0x03, 0x90, 0x16, 0x2e, 0xce, 0xfa, 0x53, 0xa0, 0x64, 0x1e, 0x37, 0xc6, 0x38, 0x29, - 0x56, 0x18, 0xe3, 0x4c, 0x9d, 0xc5, 0x18, 0x67, 0x6b, 0x1c, 0x2d, 0x47, 0x2a, 0x31, 0x6c, 0xa3, - 0xac, 0x12, 0x13, 0x17, 0x04, 0xab, 0xc4, 0x64, 0xb7, 0xd5, 0x72, 0xa8, 0x0b, 0xd5, 0x0c, 0x29, - 0xc2, 0x02, 0x9e, 0xac, 0x71, 0x94, 0xff, 0x4f, 0x7c, 0x47, 0x48, 0x6b, 0x25, 0x29, 0x0d, 0xe8, - 0xd1, 0x79, 0x26, 0x9c, 0xc4, 0x64, 0x53, 0x66, 0xf1, 0x67, 0xab, 0x0a, 0x2d, 0x87, 0x8e, 0x60, - 0x21, 0xde, 0x38, 0x11, 0x3d, 0x33, 0x19, 0x7d, 0x5e, 0x59, 0x4d, 0x37, 0x8a, 0xfb, 0x94, 0xbc, - 0x84, 0x19, 0xcf, 0x4c, 0x15, 0xc1, 0x78, 0x66, 0x8b, 0x00, 0xca, 0x13, 0x25, 0xff, 0x6c, 0x31, - 0xd8, 0xcc, 0x3f, 0x5e, 0x13, 0xeb, 0x69, 0x07, 0x4a, 0x41, 0x3f, 0x66, 0x5d, 0x34, 0xde, 0xc6, - 0x59, 0x17, 0x4d, 0x34, 0x6d, 0x2d, 0xb7, 0x2b, 0xbf, 0xbf, 0x51, 0xa5, 0x0f, 0x37, 0xaa, 0xf4, - 0xcf, 0x8d, 0x2a, 0xfd, 0x76, 0xab, 0xe6, 0x3e, 0xdc, 0xaa, 0xb9, 0xbf, 0x6f, 0xd5, 0x5c, 0xbb, - 0x48, 0xff, 0xc3, 0x6d, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0x1f, 0xa8, 0xac, 0xda, 0xcb, 0x13, - 0x00, 0x00, -} diff --git a/dm/pb/dmmaster.pb.gw.go b/dm/pb/dmmaster.pb.gw.go index 953fb4ef8a..b3c4e66074 100644 --- a/dm/pb/dmmaster.pb.gw.go +++ b/dm/pb/dmmaster.pb.gw.go @@ -13,6 +13,7 @@ import ( "io" "net/http" + "github.com/golang/protobuf/descriptor" "github.com/golang/protobuf/proto" "github.com/grpc-ecosystem/grpc-gateway/runtime" "github.com/grpc-ecosystem/grpc-gateway/utilities" @@ -22,11 +23,13 @@ import ( "google.golang.org/grpc/status" ) +// Suppress "imported and not used" errors var _ codes.Code var _ io.Reader var _ status.Status var _ = runtime.String var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage func request_Master_StartTask_0(ctx context.Context, marshaler runtime.Marshaler, client MasterClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq StartTaskRequest @@ -45,6 +48,23 @@ func request_Master_StartTask_0(ctx context.Context, marshaler runtime.Marshaler } +func local_request_Master_StartTask_0(ctx context.Context, marshaler runtime.Marshaler, server MasterServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq StartTaskRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.StartTask(ctx, &protoReq) + return msg, metadata, err + +} + func request_Master_OperateTask_0(ctx context.Context, marshaler runtime.Marshaler, client MasterClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var protoReq OperateTaskRequest var metadata runtime.ServerMetadata @@ -80,6 +100,41 @@ func request_Master_OperateTask_0(ctx context.Context, marshaler runtime.Marshal } +func local_request_Master_OperateTask_0(ctx context.Context, marshaler runtime.Marshaler, server MasterServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq OperateTaskRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + msg, err := server.OperateTask(ctx, &protoReq) + return msg, metadata, err + +} + var ( filter_Master_QueryStatus_0 = &utilities.DoubleArray{Encoding: map[string]int{"name": 0}, Base: []int{1, 1, 0}, Check: []int{0, 1, 2}} ) @@ -118,6 +173,105 @@ func request_Master_QueryStatus_0(ctx context.Context, marshaler runtime.Marshal } +func local_request_Master_QueryStatus_0(ctx context.Context, marshaler runtime.Marshaler, server MasterServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq QueryStatusListRequest + var metadata runtime.ServerMetadata + + var ( + val string + ok bool + err error + _ = err + ) + + val, ok = pathParams["name"] + if !ok { + return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name") + } + + protoReq.Name, err = runtime.String(val) + + if err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "name", err) + } + + if err := runtime.PopulateQueryParameters(&protoReq, req.URL.Query(), filter_Master_QueryStatus_0); err != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.QueryStatus(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterMasterHandlerServer registers the http handlers for service Master to "mux". +// UnaryRPC :call MasterServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +func RegisterMasterHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MasterServer) error { + + mux.Handle("POST", pattern_Master_StartTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Master_StartTask_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Master_StartTask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("PUT", pattern_Master_OperateTask_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Master_OperateTask_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Master_OperateTask_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("GET", pattern_Master_QueryStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Master_QueryStatus_0(rctx, inboundMarshaler, server, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Master_QueryStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + // RegisterMasterHandlerFromEndpoint is same as RegisterMasterHandler but // automatically dials to "endpoint" and closes the connection when "ctx" gets done. func RegisterMasterHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { diff --git a/dm/pb/dmworker.pb.go b/dm/pb/dmworker.pb.go index 73bcc78cd0..51f17754c4 100644 --- a/dm/pb/dmworker.pb.go +++ b/dm/pb/dmworker.pb.go @@ -4,17 +4,16 @@ package pb import ( - "fmt" - - proto "github.com/gogo/protobuf/proto" - + context "context" + fmt "fmt" + io "io" math "math" + math_bits "math/bits" - context "golang.org/x/net/context" - + proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" - - io "io" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -26,7 +25,7 @@ var _ = math.Inf // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type TaskOp int32 @@ -49,6 +48,7 @@ var TaskOp_name = map[int32]string{ 5: "Update", 6: "AutoResume", } + var TaskOp_value = map[string]int32{ "InvalidOp": 0, "Stop": 1, @@ -62,8 +62,9 @@ var TaskOp_value = map[string]int32{ func (x TaskOp) String() string { return proto.EnumName(TaskOp_name, int32(x)) } + func (TaskOp) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{0} + return fileDescriptor_51a1b9e17fd67b10, []int{0} } type SQLOp int32 @@ -79,6 +80,7 @@ var SQLOp_name = map[int32]string{ 1: "REPLACE", 2: "INJECT", } + var SQLOp_value = map[string]int32{ "SKIP": 0, "REPLACE": 1, @@ -88,8 +90,9 @@ var SQLOp_value = map[string]int32{ func (x SQLOp) String() string { return proto.EnumName(SQLOp_name, int32(x)) } + func (SQLOp) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{1} + return fileDescriptor_51a1b9e17fd67b10, []int{1} } // Stage represents current stage for a (sub) task @@ -133,6 +136,7 @@ var Stage_name = map[int32]string{ 4: "Stopped", 5: "Finished", } + var Stage_value = map[string]int32{ "InvalidStage": 0, "New": 1, @@ -145,8 +149,9 @@ var Stage_value = map[string]int32{ func (x Stage) String() string { return proto.EnumName(Stage_name, int32(x)) } + func (Stage) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{2} + return fileDescriptor_51a1b9e17fd67b10, []int{2} } // UnitType represents the dm unit's type @@ -169,6 +174,7 @@ var UnitType_name = map[int32]string{ 4: "Sync", 100: "Relay", } + var UnitType_value = map[string]int32{ "InvalidUnit": 0, "Check": 1, @@ -181,8 +187,9 @@ var UnitType_value = map[string]int32{ func (x UnitType) String() string { return proto.EnumName(UnitType_name, int32(x)) } + func (UnitType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{3} + return fileDescriptor_51a1b9e17fd67b10, []int{3} } // ErrorType represents type of error produced by a dm unit @@ -200,6 +207,7 @@ var ErrorType_name = map[int32]string{ 1: "ExecSQL", 2: "CheckFailed", } + var ErrorType_value = map[string]int32{ "UnknownError": 0, "ExecSQL": 1, @@ -209,8 +217,9 @@ var ErrorType_value = map[string]int32{ func (x ErrorType) String() string { return proto.EnumName(ErrorType_name, int32(x)) } + func (ErrorType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{4} + return fileDescriptor_51a1b9e17fd67b10, []int{4} } // RelayOp differs from TaskOp @@ -229,6 +238,7 @@ var RelayOp_name = map[int32]string{ 2: "PauseRelay", 3: "ResumeRelay", } + var RelayOp_value = map[string]int32{ "InvalidRelayOp": 0, "StopRelay": 1, @@ -239,8 +249,9 @@ var RelayOp_value = map[string]int32{ func (x RelayOp) String() string { return proto.EnumName(RelayOp_name, int32(x)) } + func (RelayOp) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{5} + return fileDescriptor_51a1b9e17fd67b10, []int{5} } type StartSubTaskRequest struct { @@ -251,7 +262,7 @@ func (m *StartSubTaskRequest) Reset() { *m = StartSubTaskRequest{} } func (m *StartSubTaskRequest) String() string { return proto.CompactTextString(m) } func (*StartSubTaskRequest) ProtoMessage() {} func (*StartSubTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{0} + return fileDescriptor_51a1b9e17fd67b10, []int{0} } func (m *StartSubTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -261,15 +272,15 @@ func (m *StartSubTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_StartSubTaskRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *StartSubTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_StartSubTaskRequest.Merge(dst, src) +func (m *StartSubTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StartSubTaskRequest.Merge(m, src) } func (m *StartSubTaskRequest) XXX_Size() int { return m.Size() @@ -295,7 +306,7 @@ func (m *UpdateRelayRequest) Reset() { *m = UpdateRelayRequest{} } func (m *UpdateRelayRequest) String() string { return proto.CompactTextString(m) } func (*UpdateRelayRequest) ProtoMessage() {} func (*UpdateRelayRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{1} + return fileDescriptor_51a1b9e17fd67b10, []int{1} } func (m *UpdateRelayRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -305,15 +316,15 @@ func (m *UpdateRelayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_UpdateRelayRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *UpdateRelayRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateRelayRequest.Merge(dst, src) +func (m *UpdateRelayRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateRelayRequest.Merge(m, src) } func (m *UpdateRelayRequest) XXX_Size() int { return m.Size() @@ -340,7 +351,7 @@ func (m *MigrateRelayRequest) Reset() { *m = MigrateRelayRequest{} } func (m *MigrateRelayRequest) String() string { return proto.CompactTextString(m) } func (*MigrateRelayRequest) ProtoMessage() {} func (*MigrateRelayRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{2} + return fileDescriptor_51a1b9e17fd67b10, []int{2} } func (m *MigrateRelayRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -350,15 +361,15 @@ func (m *MigrateRelayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_MigrateRelayRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *MigrateRelayRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_MigrateRelayRequest.Merge(dst, src) +func (m *MigrateRelayRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_MigrateRelayRequest.Merge(m, src) } func (m *MigrateRelayRequest) XXX_Size() int { return m.Size() @@ -392,7 +403,7 @@ func (m *OperateSubTaskRequest) Reset() { *m = OperateSubTaskRequest{} } func (m *OperateSubTaskRequest) String() string { return proto.CompactTextString(m) } func (*OperateSubTaskRequest) ProtoMessage() {} func (*OperateSubTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{3} + return fileDescriptor_51a1b9e17fd67b10, []int{3} } func (m *OperateSubTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -402,15 +413,15 @@ func (m *OperateSubTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byt return xxx_messageInfo_OperateSubTaskRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *OperateSubTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OperateSubTaskRequest.Merge(dst, src) +func (m *OperateSubTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_OperateSubTaskRequest.Merge(m, src) } func (m *OperateSubTaskRequest) XXX_Size() int { return m.Size() @@ -436,7 +447,7 @@ func (m *OperateSubTaskRequest) GetName() string { } type OperateSubTaskResponse struct { - Meta *CommonWorkerResponse `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` + Meta *CommonWorkerResponse `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` Op TaskOp `protobuf:"varint,2,opt,name=op,proto3,enum=pb.TaskOp" json:"op,omitempty"` LogID int64 `protobuf:"varint,3,opt,name=logID,proto3" json:"logID,omitempty"` } @@ -445,7 +456,7 @@ func (m *OperateSubTaskResponse) Reset() { *m = OperateSubTaskResponse{} func (m *OperateSubTaskResponse) String() string { return proto.CompactTextString(m) } func (*OperateSubTaskResponse) ProtoMessage() {} func (*OperateSubTaskResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{4} + return fileDescriptor_51a1b9e17fd67b10, []int{4} } func (m *OperateSubTaskResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -455,15 +466,15 @@ func (m *OperateSubTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]by return xxx_messageInfo_OperateSubTaskResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *OperateSubTaskResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_OperateSubTaskResponse.Merge(dst, src) +func (m *OperateSubTaskResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_OperateSubTaskResponse.Merge(m, src) } func (m *OperateSubTaskResponse) XXX_Size() int { return m.Size() @@ -504,7 +515,7 @@ func (m *QueryTaskOperationRequest) Reset() { *m = QueryTaskOperationReq func (m *QueryTaskOperationRequest) String() string { return proto.CompactTextString(m) } func (*QueryTaskOperationRequest) ProtoMessage() {} func (*QueryTaskOperationRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{5} + return fileDescriptor_51a1b9e17fd67b10, []int{5} } func (m *QueryTaskOperationRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -514,15 +525,15 @@ func (m *QueryTaskOperationRequest) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_QueryTaskOperationRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *QueryTaskOperationRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTaskOperationRequest.Merge(dst, src) +func (m *QueryTaskOperationRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTaskOperationRequest.Merge(m, src) } func (m *QueryTaskOperationRequest) XXX_Size() int { return m.Size() @@ -548,15 +559,15 @@ func (m *QueryTaskOperationRequest) GetLogID() int64 { } type QueryTaskOperationResponse struct { - Meta *CommonWorkerResponse `protobuf:"bytes,1,opt,name=meta" json:"meta,omitempty"` - Log *TaskLog `protobuf:"bytes,2,opt,name=log" json:"log,omitempty"` + Meta *CommonWorkerResponse `protobuf:"bytes,1,opt,name=meta,proto3" json:"meta,omitempty"` + Log *TaskLog `protobuf:"bytes,2,opt,name=log,proto3" json:"log,omitempty"` } func (m *QueryTaskOperationResponse) Reset() { *m = QueryTaskOperationResponse{} } func (m *QueryTaskOperationResponse) String() string { return proto.CompactTextString(m) } func (*QueryTaskOperationResponse) ProtoMessage() {} func (*QueryTaskOperationResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{6} + return fileDescriptor_51a1b9e17fd67b10, []int{6} } func (m *QueryTaskOperationResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -566,15 +577,15 @@ func (m *QueryTaskOperationResponse) XXX_Marshal(b []byte, deterministic bool) ( return xxx_messageInfo_QueryTaskOperationResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *QueryTaskOperationResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryTaskOperationResponse.Merge(dst, src) +func (m *QueryTaskOperationResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryTaskOperationResponse.Merge(m, src) } func (m *QueryTaskOperationResponse) XXX_Size() int { return m.Size() @@ -607,7 +618,7 @@ func (m *UpdateSubTaskRequest) Reset() { *m = UpdateSubTaskRequest{} } func (m *UpdateSubTaskRequest) String() string { return proto.CompactTextString(m) } func (*UpdateSubTaskRequest) ProtoMessage() {} func (*UpdateSubTaskRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{7} + return fileDescriptor_51a1b9e17fd67b10, []int{7} } func (m *UpdateSubTaskRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -617,15 +628,15 @@ func (m *UpdateSubTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_UpdateSubTaskRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *UpdateSubTaskRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UpdateSubTaskRequest.Merge(dst, src) +func (m *UpdateSubTaskRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UpdateSubTaskRequest.Merge(m, src) } func (m *UpdateSubTaskRequest) XXX_Size() int { return m.Size() @@ -651,7 +662,7 @@ func (m *QueryStatusRequest) Reset() { *m = QueryStatusRequest{} } func (m *QueryStatusRequest) String() string { return proto.CompactTextString(m) } func (*QueryStatusRequest) ProtoMessage() {} func (*QueryStatusRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{8} + return fileDescriptor_51a1b9e17fd67b10, []int{8} } func (m *QueryStatusRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -661,15 +672,15 @@ func (m *QueryStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_QueryStatusRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *QueryStatusRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStatusRequest.Merge(dst, src) +func (m *QueryStatusRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStatusRequest.Merge(m, src) } func (m *QueryStatusRequest) XXX_Size() int { return m.Size() @@ -695,7 +706,7 @@ func (m *QueryErrorRequest) Reset() { *m = QueryErrorRequest{} } func (m *QueryErrorRequest) String() string { return proto.CompactTextString(m) } func (*QueryErrorRequest) ProtoMessage() {} func (*QueryErrorRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{9} + return fileDescriptor_51a1b9e17fd67b10, []int{9} } func (m *QueryErrorRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -705,15 +716,15 @@ func (m *QueryErrorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_QueryErrorRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *QueryErrorRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryErrorRequest.Merge(dst, src) +func (m *QueryErrorRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryErrorRequest.Merge(m, src) } func (m *QueryErrorRequest) XXX_Size() int { return m.Size() @@ -735,7 +746,7 @@ func (m *QueryErrorRequest) GetName() string { type HandleSubTaskSQLsRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Op SQLOp `protobuf:"varint,2,opt,name=op,proto3,enum=pb.SQLOp" json:"op,omitempty"` - Args []string `protobuf:"bytes,3,rep,name=args" json:"args,omitempty"` + Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` BinlogPos string `protobuf:"bytes,4,opt,name=binlogPos,proto3" json:"binlogPos,omitempty"` SqlPattern string `protobuf:"bytes,5,opt,name=sqlPattern,proto3" json:"sqlPattern,omitempty"` } @@ -744,7 +755,7 @@ func (m *HandleSubTaskSQLsRequest) Reset() { *m = HandleSubTaskSQLsReque func (m *HandleSubTaskSQLsRequest) String() string { return proto.CompactTextString(m) } func (*HandleSubTaskSQLsRequest) ProtoMessage() {} func (*HandleSubTaskSQLsRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{10} + return fileDescriptor_51a1b9e17fd67b10, []int{10} } func (m *HandleSubTaskSQLsRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -754,15 +765,15 @@ func (m *HandleSubTaskSQLsRequest) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_HandleSubTaskSQLsRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *HandleSubTaskSQLsRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_HandleSubTaskSQLsRequest.Merge(dst, src) +func (m *HandleSubTaskSQLsRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_HandleSubTaskSQLsRequest.Merge(m, src) } func (m *HandleSubTaskSQLsRequest) XXX_Size() int { return m.Size() @@ -818,7 +829,7 @@ func (m *CommonWorkerResponse) Reset() { *m = CommonWorkerResponse{} } func (m *CommonWorkerResponse) String() string { return proto.CompactTextString(m) } func (*CommonWorkerResponse) ProtoMessage() {} func (*CommonWorkerResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{11} + return fileDescriptor_51a1b9e17fd67b10, []int{11} } func (m *CommonWorkerResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -828,15 +839,15 @@ func (m *CommonWorkerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_CommonWorkerResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *CommonWorkerResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommonWorkerResponse.Merge(dst, src) +func (m *CommonWorkerResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommonWorkerResponse.Merge(m, src) } func (m *CommonWorkerResponse) XXX_Size() int { return m.Size() @@ -874,8 +885,8 @@ type QueryStatusResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Worker string `protobuf:"bytes,2,opt,name=worker,proto3" json:"worker,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` - SubTaskStatus []*SubTaskStatus `protobuf:"bytes,4,rep,name=subTaskStatus" json:"subTaskStatus,omitempty"` - RelayStatus *RelayStatus `protobuf:"bytes,5,opt,name=relayStatus" json:"relayStatus,omitempty"` + SubTaskStatus []*SubTaskStatus `protobuf:"bytes,4,rep,name=subTaskStatus,proto3" json:"subTaskStatus,omitempty"` + RelayStatus *RelayStatus `protobuf:"bytes,5,opt,name=relayStatus,proto3" json:"relayStatus,omitempty"` SourceID string `protobuf:"bytes,6,opt,name=sourceID,proto3" json:"sourceID,omitempty"` } @@ -883,7 +894,7 @@ func (m *QueryStatusResponse) Reset() { *m = QueryStatusResponse{} } func (m *QueryStatusResponse) String() string { return proto.CompactTextString(m) } func (*QueryStatusResponse) ProtoMessage() {} func (*QueryStatusResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{12} + return fileDescriptor_51a1b9e17fd67b10, []int{12} } func (m *QueryStatusResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -893,15 +904,15 @@ func (m *QueryStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_QueryStatusResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *QueryStatusResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryStatusResponse.Merge(dst, src) +func (m *QueryStatusResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryStatusResponse.Merge(m, src) } func (m *QueryStatusResponse) XXX_Size() int { return m.Size() @@ -959,15 +970,15 @@ type QueryErrorResponse struct { Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"` Worker string `protobuf:"bytes,2,opt,name=worker,proto3" json:"worker,omitempty"` Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"` - SubTaskError []*SubTaskError `protobuf:"bytes,4,rep,name=subTaskError" json:"subTaskError,omitempty"` - RelayError *RelayError `protobuf:"bytes,5,opt,name=RelayError" json:"RelayError,omitempty"` + SubTaskError []*SubTaskError `protobuf:"bytes,4,rep,name=subTaskError,proto3" json:"subTaskError,omitempty"` + RelayError *RelayError `protobuf:"bytes,5,opt,name=RelayError,proto3" json:"RelayError,omitempty"` } func (m *QueryErrorResponse) Reset() { *m = QueryErrorResponse{} } func (m *QueryErrorResponse) String() string { return proto.CompactTextString(m) } func (*QueryErrorResponse) ProtoMessage() {} func (*QueryErrorResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{13} + return fileDescriptor_51a1b9e17fd67b10, []int{13} } func (m *QueryErrorResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -977,15 +988,15 @@ func (m *QueryErrorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_QueryErrorResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *QueryErrorResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryErrorResponse.Merge(dst, src) +func (m *QueryErrorResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryErrorResponse.Merge(m, src) } func (m *QueryErrorResponse) XXX_Size() int { return m.Size() @@ -1046,7 +1057,7 @@ func (m *CheckStatus) Reset() { *m = CheckStatus{} } func (m *CheckStatus) String() string { return proto.CompactTextString(m) } func (*CheckStatus) ProtoMessage() {} func (*CheckStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{14} + return fileDescriptor_51a1b9e17fd67b10, []int{14} } func (m *CheckStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1056,15 +1067,15 @@ func (m *CheckStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_CheckStatus.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *CheckStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckStatus.Merge(dst, src) +func (m *CheckStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckStatus.Merge(m, src) } func (m *CheckStatus) XXX_Size() int { return m.Size() @@ -1126,7 +1137,7 @@ func (m *DumpStatus) Reset() { *m = DumpStatus{} } func (m *DumpStatus) String() string { return proto.CompactTextString(m) } func (*DumpStatus) ProtoMessage() {} func (*DumpStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{15} + return fileDescriptor_51a1b9e17fd67b10, []int{15} } func (m *DumpStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1136,15 +1147,15 @@ func (m *DumpStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DumpStatus.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *DumpStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_DumpStatus.Merge(dst, src) +func (m *DumpStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_DumpStatus.Merge(m, src) } func (m *DumpStatus) XXX_Size() int { return m.Size() @@ -1167,7 +1178,7 @@ func (m *LoadStatus) Reset() { *m = LoadStatus{} } func (m *LoadStatus) String() string { return proto.CompactTextString(m) } func (*LoadStatus) ProtoMessage() {} func (*LoadStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{16} + return fileDescriptor_51a1b9e17fd67b10, []int{16} } func (m *LoadStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1177,15 +1188,15 @@ func (m *LoadStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LoadStatus.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *LoadStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadStatus.Merge(dst, src) +func (m *LoadStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadStatus.Merge(m, src) } func (m *LoadStatus) XXX_Size() int { return m.Size() @@ -1232,17 +1243,17 @@ func (m *LoadStatus) GetMetaBinlog() string { // unsynced: unsynced source tables type ShardingGroup struct { Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` - DDLs []string `protobuf:"bytes,2,rep,name=DDLs" json:"DDLs,omitempty"` + DDLs []string `protobuf:"bytes,2,rep,name=DDLs,proto3" json:"DDLs,omitempty"` FirstPos string `protobuf:"bytes,3,opt,name=firstPos,proto3" json:"firstPos,omitempty"` - Synced []string `protobuf:"bytes,4,rep,name=synced" json:"synced,omitempty"` - Unsynced []string `protobuf:"bytes,5,rep,name=unsynced" json:"unsynced,omitempty"` + Synced []string `protobuf:"bytes,4,rep,name=synced,proto3" json:"synced,omitempty"` + Unsynced []string `protobuf:"bytes,5,rep,name=unsynced,proto3" json:"unsynced,omitempty"` } func (m *ShardingGroup) Reset() { *m = ShardingGroup{} } func (m *ShardingGroup) String() string { return proto.CompactTextString(m) } func (*ShardingGroup) ProtoMessage() {} func (*ShardingGroup) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{17} + return fileDescriptor_51a1b9e17fd67b10, []int{17} } func (m *ShardingGroup) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1252,15 +1263,15 @@ func (m *ShardingGroup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_ShardingGroup.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *ShardingGroup) XXX_Merge(src proto.Message) { - xxx_messageInfo_ShardingGroup.Merge(dst, src) +func (m *ShardingGroup) XXX_Merge(src proto.Message) { + xxx_messageInfo_ShardingGroup.Merge(m, src) } func (m *ShardingGroup) XXX_Size() int { return m.Size() @@ -1315,8 +1326,8 @@ type SyncStatus struct { MasterBinlogGtid string `protobuf:"bytes,5,opt,name=masterBinlogGtid,proto3" json:"masterBinlogGtid,omitempty"` SyncerBinlog string `protobuf:"bytes,6,opt,name=syncerBinlog,proto3" json:"syncerBinlog,omitempty"` SyncerBinlogGtid string `protobuf:"bytes,7,opt,name=syncerBinlogGtid,proto3" json:"syncerBinlogGtid,omitempty"` - BlockingDDLs []string `protobuf:"bytes,8,rep,name=blockingDDLs" json:"blockingDDLs,omitempty"` - UnresolvedGroups []*ShardingGroup `protobuf:"bytes,9,rep,name=unresolvedGroups" json:"unresolvedGroups,omitempty"` + BlockingDDLs []string `protobuf:"bytes,8,rep,name=blockingDDLs,proto3" json:"blockingDDLs,omitempty"` + UnresolvedGroups []*ShardingGroup `protobuf:"bytes,9,rep,name=unresolvedGroups,proto3" json:"unresolvedGroups,omitempty"` Synced bool `protobuf:"varint,10,opt,name=synced,proto3" json:"synced,omitempty"` } @@ -1324,7 +1335,7 @@ func (m *SyncStatus) Reset() { *m = SyncStatus{} } func (m *SyncStatus) String() string { return proto.CompactTextString(m) } func (*SyncStatus) ProtoMessage() {} func (*SyncStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{18} + return fileDescriptor_51a1b9e17fd67b10, []int{18} } func (m *SyncStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1334,15 +1345,15 @@ func (m *SyncStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SyncStatus.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *SyncStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncStatus.Merge(dst, src) +func (m *SyncStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncStatus.Merge(m, src) } func (m *SyncStatus) XXX_Size() int { return m.Size() @@ -1432,14 +1443,14 @@ type RelayStatus struct { RelayBinlogGtid string `protobuf:"bytes,5,opt,name=relayBinlogGtid,proto3" json:"relayBinlogGtid,omitempty"` RelayCatchUpMaster bool `protobuf:"varint,6,opt,name=relayCatchUpMaster,proto3" json:"relayCatchUpMaster,omitempty"` Stage Stage `protobuf:"varint,7,opt,name=stage,proto3,enum=pb.Stage" json:"stage,omitempty"` - Result *ProcessResult `protobuf:"bytes,8,opt,name=result" json:"result,omitempty"` + Result *ProcessResult `protobuf:"bytes,8,opt,name=result,proto3" json:"result,omitempty"` } func (m *RelayStatus) Reset() { *m = RelayStatus{} } func (m *RelayStatus) String() string { return proto.CompactTextString(m) } func (*RelayStatus) ProtoMessage() {} func (*RelayStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{19} + return fileDescriptor_51a1b9e17fd67b10, []int{19} } func (m *RelayStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1449,15 +1460,15 @@ func (m *RelayStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_RelayStatus.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *RelayStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_RelayStatus.Merge(dst, src) +func (m *RelayStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_RelayStatus.Merge(m, src) } func (m *RelayStatus) XXX_Size() int { return m.Size() @@ -1538,7 +1549,7 @@ type SubTaskStatus struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Stage Stage `protobuf:"varint,2,opt,name=stage,proto3,enum=pb.Stage" json:"stage,omitempty"` Unit UnitType `protobuf:"varint,3,opt,name=unit,proto3,enum=pb.UnitType" json:"unit,omitempty"` - Result *ProcessResult `protobuf:"bytes,4,opt,name=result" json:"result,omitempty"` + Result *ProcessResult `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"` UnresolvedDDLLockID string `protobuf:"bytes,5,opt,name=unresolvedDDLLockID,proto3" json:"unresolvedDDLLockID,omitempty"` // Types that are valid to be assigned to Status: // *SubTaskStatus_Msg @@ -1553,7 +1564,7 @@ func (m *SubTaskStatus) Reset() { *m = SubTaskStatus{} } func (m *SubTaskStatus) String() string { return proto.CompactTextString(m) } func (*SubTaskStatus) ProtoMessage() {} func (*SubTaskStatus) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{20} + return fileDescriptor_51a1b9e17fd67b10, []int{20} } func (m *SubTaskStatus) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1563,15 +1574,15 @@ func (m *SubTaskStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_SubTaskStatus.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *SubTaskStatus) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubTaskStatus.Merge(dst, src) +func (m *SubTaskStatus) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubTaskStatus.Merge(m, src) } func (m *SubTaskStatus) XXX_Size() int { return m.Size() @@ -1589,19 +1600,19 @@ type isSubTaskStatus_Status interface { } type SubTaskStatus_Msg struct { - Msg string `protobuf:"bytes,6,opt,name=msg,proto3,oneof"` + Msg string `protobuf:"bytes,6,opt,name=msg,proto3,oneof" json:"msg,omitempty"` } type SubTaskStatus_Check struct { - Check *CheckStatus `protobuf:"bytes,7,opt,name=check,oneof"` + Check *CheckStatus `protobuf:"bytes,7,opt,name=check,proto3,oneof" json:"check,omitempty"` } type SubTaskStatus_Dump struct { - Dump *DumpStatus `protobuf:"bytes,8,opt,name=dump,oneof"` + Dump *DumpStatus `protobuf:"bytes,8,opt,name=dump,proto3,oneof" json:"dump,omitempty"` } type SubTaskStatus_Load struct { - Load *LoadStatus `protobuf:"bytes,9,opt,name=load,oneof"` + Load *LoadStatus `protobuf:"bytes,9,opt,name=load,proto3,oneof" json:"load,omitempty"` } type SubTaskStatus_Sync struct { - Sync *SyncStatus `protobuf:"bytes,10,opt,name=sync,oneof"` + Sync *SyncStatus `protobuf:"bytes,10,opt,name=sync,proto3,oneof" json:"sync,omitempty"` } func (*SubTaskStatus_Msg) isSubTaskStatus_Status() {} @@ -1687,9 +1698,9 @@ func (m *SubTaskStatus) GetSync() *SyncStatus { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*SubTaskStatus) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _SubTaskStatus_OneofMarshaler, _SubTaskStatus_OneofUnmarshaler, _SubTaskStatus_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SubTaskStatus) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*SubTaskStatus_Msg)(nil), (*SubTaskStatus_Check)(nil), (*SubTaskStatus_Dump)(nil), @@ -1698,132 +1709,16 @@ func (*SubTaskStatus) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) } } -func _SubTaskStatus_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*SubTaskStatus) - // status - switch x := m.Status.(type) { - case *SubTaskStatus_Msg: - _ = b.EncodeVarint(6<<3 | proto.WireBytes) - _ = b.EncodeStringBytes(x.Msg) - case *SubTaskStatus_Check: - _ = b.EncodeVarint(7<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Check); err != nil { - return err - } - case *SubTaskStatus_Dump: - _ = b.EncodeVarint(8<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Dump); err != nil { - return err - } - case *SubTaskStatus_Load: - _ = b.EncodeVarint(9<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Load); err != nil { - return err - } - case *SubTaskStatus_Sync: - _ = b.EncodeVarint(10<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Sync); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("SubTaskStatus.Status has unexpected type %T", x) - } - return nil -} - -func _SubTaskStatus_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*SubTaskStatus) - switch tag { - case 6: // status.msg - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.Status = &SubTaskStatus_Msg{x} - return true, err - case 7: // status.check - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(CheckStatus) - err := b.DecodeMessage(msg) - m.Status = &SubTaskStatus_Check{msg} - return true, err - case 8: // status.dump - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(DumpStatus) - err := b.DecodeMessage(msg) - m.Status = &SubTaskStatus_Dump{msg} - return true, err - case 9: // status.load - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(LoadStatus) - err := b.DecodeMessage(msg) - m.Status = &SubTaskStatus_Load{msg} - return true, err - case 10: // status.sync - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(SyncStatus) - err := b.DecodeMessage(msg) - m.Status = &SubTaskStatus_Sync{msg} - return true, err - default: - return false, nil - } -} - -func _SubTaskStatus_OneofSizer(msg proto.Message) (n int) { - m := msg.(*SubTaskStatus) - // status - switch x := m.Status.(type) { - case *SubTaskStatus_Msg: - n += 1 // tag and wire - n += proto.SizeVarint(uint64(len(x.Msg))) - n += len(x.Msg) - case *SubTaskStatus_Check: - s := proto.Size(x.Check) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case *SubTaskStatus_Dump: - s := proto.Size(x.Dump) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case *SubTaskStatus_Load: - s := proto.Size(x.Load) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case *SubTaskStatus_Sync: - s := proto.Size(x.Sync) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - // SubTaskStatusList used for internal jsonpb marshal type SubTaskStatusList struct { - Status []*SubTaskStatus `protobuf:"bytes,1,rep,name=status" json:"status,omitempty"` + Status []*SubTaskStatus `protobuf:"bytes,1,rep,name=status,proto3" json:"status,omitempty"` } func (m *SubTaskStatusList) Reset() { *m = SubTaskStatusList{} } func (m *SubTaskStatusList) String() string { return proto.CompactTextString(m) } func (*SubTaskStatusList) ProtoMessage() {} func (*SubTaskStatusList) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{21} + return fileDescriptor_51a1b9e17fd67b10, []int{21} } func (m *SubTaskStatusList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1833,15 +1728,15 @@ func (m *SubTaskStatusList) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_SubTaskStatusList.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *SubTaskStatusList) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubTaskStatusList.Merge(dst, src) +func (m *SubTaskStatusList) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubTaskStatusList.Merge(m, src) } func (m *SubTaskStatusList) XXX_Size() int { return m.Size() @@ -1869,7 +1764,7 @@ func (m *CheckError) Reset() { *m = CheckError{} } func (m *CheckError) String() string { return proto.CompactTextString(m) } func (*CheckError) ProtoMessage() {} func (*CheckError) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{22} + return fileDescriptor_51a1b9e17fd67b10, []int{22} } func (m *CheckError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1879,15 +1774,15 @@ func (m *CheckError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_CheckError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *CheckError) XXX_Merge(src proto.Message) { - xxx_messageInfo_CheckError.Merge(dst, src) +func (m *CheckError) XXX_Merge(src proto.Message) { + xxx_messageInfo_CheckError.Merge(m, src) } func (m *CheckError) XXX_Size() int { return m.Size() @@ -1915,7 +1810,7 @@ func (m *DumpError) Reset() { *m = DumpError{} } func (m *DumpError) String() string { return proto.CompactTextString(m) } func (*DumpError) ProtoMessage() {} func (*DumpError) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{23} + return fileDescriptor_51a1b9e17fd67b10, []int{23} } func (m *DumpError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1925,15 +1820,15 @@ func (m *DumpError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DumpError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *DumpError) XXX_Merge(src proto.Message) { - xxx_messageInfo_DumpError.Merge(dst, src) +func (m *DumpError) XXX_Merge(src proto.Message) { + xxx_messageInfo_DumpError.Merge(m, src) } func (m *DumpError) XXX_Size() int { return m.Size() @@ -1960,7 +1855,7 @@ func (m *LoadError) Reset() { *m = LoadError{} } func (m *LoadError) String() string { return proto.CompactTextString(m) } func (*LoadError) ProtoMessage() {} func (*LoadError) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{24} + return fileDescriptor_51a1b9e17fd67b10, []int{24} } func (m *LoadError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -1970,15 +1865,15 @@ func (m *LoadError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_LoadError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *LoadError) XXX_Merge(src proto.Message) { - xxx_messageInfo_LoadError.Merge(dst, src) +func (m *LoadError) XXX_Merge(src proto.Message) { + xxx_messageInfo_LoadError.Merge(m, src) } func (m *LoadError) XXX_Size() int { return m.Size() @@ -2007,7 +1902,7 @@ func (m *SyncSQLError) Reset() { *m = SyncSQLError{} } func (m *SyncSQLError) String() string { return proto.CompactTextString(m) } func (*SyncSQLError) ProtoMessage() {} func (*SyncSQLError) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{25} + return fileDescriptor_51a1b9e17fd67b10, []int{25} } func (m *SyncSQLError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2017,15 +1912,15 @@ func (m *SyncSQLError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_SyncSQLError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *SyncSQLError) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncSQLError.Merge(dst, src) +func (m *SyncSQLError) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncSQLError.Merge(m, src) } func (m *SyncSQLError) XXX_Size() int { return m.Size() @@ -2059,14 +1954,14 @@ func (m *SyncSQLError) GetErrorSQL() string { // SyncError represents error list for sync unit type SyncError struct { - Errors []*SyncSQLError `protobuf:"bytes,1,rep,name=errors" json:"errors,omitempty"` + Errors []*SyncSQLError `protobuf:"bytes,1,rep,name=errors,proto3" json:"errors,omitempty"` } func (m *SyncError) Reset() { *m = SyncError{} } func (m *SyncError) String() string { return proto.CompactTextString(m) } func (*SyncError) ProtoMessage() {} func (*SyncError) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{26} + return fileDescriptor_51a1b9e17fd67b10, []int{26} } func (m *SyncError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2076,15 +1971,15 @@ func (m *SyncError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_SyncError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *SyncError) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncError.Merge(dst, src) +func (m *SyncError) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncError.Merge(m, src) } func (m *SyncError) XXX_Size() int { return m.Size() @@ -2111,7 +2006,7 @@ func (m *RelayError) Reset() { *m = RelayError{} } func (m *RelayError) String() string { return proto.CompactTextString(m) } func (*RelayError) ProtoMessage() {} func (*RelayError) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{27} + return fileDescriptor_51a1b9e17fd67b10, []int{27} } func (m *RelayError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2121,15 +2016,15 @@ func (m *RelayError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_RelayError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *RelayError) XXX_Merge(src proto.Message) { - xxx_messageInfo_RelayError.Merge(dst, src) +func (m *RelayError) XXX_Merge(src proto.Message) { + xxx_messageInfo_RelayError.Merge(m, src) } func (m *RelayError) XXX_Size() int { return m.Size() @@ -2170,7 +2065,7 @@ func (m *SubTaskError) Reset() { *m = SubTaskError{} } func (m *SubTaskError) String() string { return proto.CompactTextString(m) } func (*SubTaskError) ProtoMessage() {} func (*SubTaskError) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{28} + return fileDescriptor_51a1b9e17fd67b10, []int{28} } func (m *SubTaskError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2180,15 +2075,15 @@ func (m *SubTaskError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_SubTaskError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *SubTaskError) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubTaskError.Merge(dst, src) +func (m *SubTaskError) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubTaskError.Merge(m, src) } func (m *SubTaskError) XXX_Size() int { return m.Size() @@ -2206,19 +2101,19 @@ type isSubTaskError_Error interface { } type SubTaskError_Msg struct { - Msg string `protobuf:"bytes,4,opt,name=msg,proto3,oneof"` + Msg string `protobuf:"bytes,4,opt,name=msg,proto3,oneof" json:"msg,omitempty"` } type SubTaskError_Check struct { - Check *CheckError `protobuf:"bytes,5,opt,name=check,oneof"` + Check *CheckError `protobuf:"bytes,5,opt,name=check,proto3,oneof" json:"check,omitempty"` } type SubTaskError_Dump struct { - Dump *DumpError `protobuf:"bytes,6,opt,name=dump,oneof"` + Dump *DumpError `protobuf:"bytes,6,opt,name=dump,proto3,oneof" json:"dump,omitempty"` } type SubTaskError_Load struct { - Load *LoadError `protobuf:"bytes,7,opt,name=load,oneof"` + Load *LoadError `protobuf:"bytes,7,opt,name=load,proto3,oneof" json:"load,omitempty"` } type SubTaskError_Sync struct { - Sync *SyncError `protobuf:"bytes,8,opt,name=sync,oneof"` + Sync *SyncError `protobuf:"bytes,8,opt,name=sync,proto3,oneof" json:"sync,omitempty"` } func (*SubTaskError_Msg) isSubTaskError_Error() {} @@ -2290,9 +2185,9 @@ func (m *SubTaskError) GetSync() *SyncError { return nil } -// XXX_OneofFuncs is for the internal use of the proto package. -func (*SubTaskError) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { - return _SubTaskError_OneofMarshaler, _SubTaskError_OneofUnmarshaler, _SubTaskError_OneofSizer, []interface{}{ +// XXX_OneofWrappers is for the internal use of the proto package. +func (*SubTaskError) XXX_OneofWrappers() []interface{} { + return []interface{}{ (*SubTaskError_Msg)(nil), (*SubTaskError_Check)(nil), (*SubTaskError_Dump)(nil), @@ -2301,132 +2196,16 @@ func (*SubTaskError) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) } } -func _SubTaskError_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { - m := msg.(*SubTaskError) - // error - switch x := m.Error.(type) { - case *SubTaskError_Msg: - _ = b.EncodeVarint(4<<3 | proto.WireBytes) - _ = b.EncodeStringBytes(x.Msg) - case *SubTaskError_Check: - _ = b.EncodeVarint(5<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Check); err != nil { - return err - } - case *SubTaskError_Dump: - _ = b.EncodeVarint(6<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Dump); err != nil { - return err - } - case *SubTaskError_Load: - _ = b.EncodeVarint(7<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Load); err != nil { - return err - } - case *SubTaskError_Sync: - _ = b.EncodeVarint(8<<3 | proto.WireBytes) - if err := b.EncodeMessage(x.Sync); err != nil { - return err - } - case nil: - default: - return fmt.Errorf("SubTaskError.Error has unexpected type %T", x) - } - return nil -} - -func _SubTaskError_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { - m := msg.(*SubTaskError) - switch tag { - case 4: // error.msg - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - x, err := b.DecodeStringBytes() - m.Error = &SubTaskError_Msg{x} - return true, err - case 5: // error.check - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(CheckError) - err := b.DecodeMessage(msg) - m.Error = &SubTaskError_Check{msg} - return true, err - case 6: // error.dump - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(DumpError) - err := b.DecodeMessage(msg) - m.Error = &SubTaskError_Dump{msg} - return true, err - case 7: // error.load - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(LoadError) - err := b.DecodeMessage(msg) - m.Error = &SubTaskError_Load{msg} - return true, err - case 8: // error.sync - if wire != proto.WireBytes { - return true, proto.ErrInternalBadWireType - } - msg := new(SyncError) - err := b.DecodeMessage(msg) - m.Error = &SubTaskError_Sync{msg} - return true, err - default: - return false, nil - } -} - -func _SubTaskError_OneofSizer(msg proto.Message) (n int) { - m := msg.(*SubTaskError) - // error - switch x := m.Error.(type) { - case *SubTaskError_Msg: - n += 1 // tag and wire - n += proto.SizeVarint(uint64(len(x.Msg))) - n += len(x.Msg) - case *SubTaskError_Check: - s := proto.Size(x.Check) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case *SubTaskError_Dump: - s := proto.Size(x.Dump) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case *SubTaskError_Load: - s := proto.Size(x.Load) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case *SubTaskError_Sync: - s := proto.Size(x.Sync) - n += 1 // tag and wire - n += proto.SizeVarint(uint64(s)) - n += s - case nil: - default: - panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) - } - return n -} - // SubTaskErrorList used for internal jsonpb marshal type SubTaskErrorList struct { - Error []*SubTaskError `protobuf:"bytes,1,rep,name=error" json:"error,omitempty"` + Error []*SubTaskError `protobuf:"bytes,1,rep,name=error,proto3" json:"error,omitempty"` } func (m *SubTaskErrorList) Reset() { *m = SubTaskErrorList{} } func (m *SubTaskErrorList) String() string { return proto.CompactTextString(m) } func (*SubTaskErrorList) ProtoMessage() {} func (*SubTaskErrorList) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{29} + return fileDescriptor_51a1b9e17fd67b10, []int{29} } func (m *SubTaskErrorList) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2436,15 +2215,15 @@ func (m *SubTaskErrorList) XXX_Marshal(b []byte, deterministic bool) ([]byte, er return xxx_messageInfo_SubTaskErrorList.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *SubTaskErrorList) XXX_Merge(src proto.Message) { - xxx_messageInfo_SubTaskErrorList.Merge(dst, src) +func (m *SubTaskErrorList) XXX_Merge(src proto.Message) { + xxx_messageInfo_SubTaskErrorList.Merge(m, src) } func (m *SubTaskErrorList) XXX_Size() int { return m.Size() @@ -2468,7 +2247,7 @@ func (m *SubTaskErrorList) GetError() []*SubTaskError { // errors: includes all (potential) errors occured when processing type ProcessResult struct { IsCanceled bool `protobuf:"varint,1,opt,name=isCanceled,proto3" json:"isCanceled,omitempty"` - Errors []*ProcessError `protobuf:"bytes,2,rep,name=errors" json:"errors,omitempty"` + Errors []*ProcessError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` Detail []byte `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"` } @@ -2476,7 +2255,7 @@ func (m *ProcessResult) Reset() { *m = ProcessResult{} } func (m *ProcessResult) String() string { return proto.CompactTextString(m) } func (*ProcessResult) ProtoMessage() {} func (*ProcessResult) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{30} + return fileDescriptor_51a1b9e17fd67b10, []int{30} } func (m *ProcessResult) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2486,15 +2265,15 @@ func (m *ProcessResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_ProcessResult.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *ProcessResult) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProcessResult.Merge(dst, src) +func (m *ProcessResult) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProcessResult.Merge(m, src) } func (m *ProcessResult) XXX_Size() int { return m.Size() @@ -2542,7 +2321,7 @@ func (m *TError) Reset() { *m = TError{} } func (m *TError) String() string { return proto.CompactTextString(m) } func (*TError) ProtoMessage() {} func (*TError) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{31} + return fileDescriptor_51a1b9e17fd67b10, []int{31} } func (m *TError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2552,15 +2331,15 @@ func (m *TError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *TError) XXX_Merge(src proto.Message) { - xxx_messageInfo_TError.Merge(dst, src) +func (m *TError) XXX_Merge(src proto.Message) { + xxx_messageInfo_TError.Merge(m, src) } func (m *TError) XXX_Size() int { return m.Size() @@ -2618,14 +2397,14 @@ func (m *TError) GetRawCause() string { type ProcessError struct { Type ErrorType `protobuf:"varint,1,opt,name=Type,proto3,enum=pb.ErrorType" json:"Type,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` - Error *TError `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` + Error *TError `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` } func (m *ProcessError) Reset() { *m = ProcessError{} } func (m *ProcessError) String() string { return proto.CompactTextString(m) } func (*ProcessError) ProtoMessage() {} func (*ProcessError) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{32} + return fileDescriptor_51a1b9e17fd67b10, []int{32} } func (m *ProcessError) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2635,15 +2414,15 @@ func (m *ProcessError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ProcessError.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *ProcessError) XXX_Merge(src proto.Message) { - xxx_messageInfo_ProcessError.Merge(dst, src) +func (m *ProcessError) XXX_Merge(src proto.Message) { + xxx_messageInfo_ProcessError.Merge(m, src) } func (m *ProcessError) XXX_Size() int { return m.Size() @@ -2683,14 +2462,14 @@ type DDLInfo struct { Task string `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` Schema string `protobuf:"bytes,2,opt,name=schema,proto3" json:"schema,omitempty"` Table string `protobuf:"bytes,3,opt,name=table,proto3" json:"table,omitempty"` - DDLs []string `protobuf:"bytes,4,rep,name=DDLs" json:"DDLs,omitempty"` + DDLs []string `protobuf:"bytes,4,rep,name=DDLs,proto3" json:"DDLs,omitempty"` } func (m *DDLInfo) Reset() { *m = DDLInfo{} } func (m *DDLInfo) String() string { return proto.CompactTextString(m) } func (*DDLInfo) ProtoMessage() {} func (*DDLInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{33} + return fileDescriptor_51a1b9e17fd67b10, []int{33} } func (m *DDLInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2700,15 +2479,15 @@ func (m *DDLInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_DDLInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *DDLInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_DDLInfo.Merge(dst, src) +func (m *DDLInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_DDLInfo.Merge(m, src) } func (m *DDLInfo) XXX_Size() int { return m.Size() @@ -2759,7 +2538,7 @@ func (m *DDLLockInfo) Reset() { *m = DDLLockInfo{} } func (m *DDLLockInfo) String() string { return proto.CompactTextString(m) } func (*DDLLockInfo) ProtoMessage() {} func (*DDLLockInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{34} + return fileDescriptor_51a1b9e17fd67b10, []int{34} } func (m *DDLLockInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2769,15 +2548,15 @@ func (m *DDLLockInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_DDLLockInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *DDLLockInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_DDLLockInfo.Merge(dst, src) +func (m *DDLLockInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_DDLLockInfo.Merge(m, src) } func (m *DDLLockInfo) XXX_Size() int { return m.Size() @@ -2808,14 +2587,14 @@ type ExecDDLRequest struct { LockID string `protobuf:"bytes,2,opt,name=lockID,proto3" json:"lockID,omitempty"` Exec bool `protobuf:"varint,3,opt,name=exec,proto3" json:"exec,omitempty"` TraceGID string `protobuf:"bytes,4,opt,name=traceGID,proto3" json:"traceGID,omitempty"` - DDLs []string `protobuf:"bytes,5,rep,name=DDLs" json:"DDLs,omitempty"` + DDLs []string `protobuf:"bytes,5,rep,name=DDLs,proto3" json:"DDLs,omitempty"` } func (m *ExecDDLRequest) Reset() { *m = ExecDDLRequest{} } func (m *ExecDDLRequest) String() string { return proto.CompactTextString(m) } func (*ExecDDLRequest) ProtoMessage() {} func (*ExecDDLRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{35} + return fileDescriptor_51a1b9e17fd67b10, []int{35} } func (m *ExecDDLRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2825,15 +2604,15 @@ func (m *ExecDDLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_ExecDDLRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *ExecDDLRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecDDLRequest.Merge(dst, src) +func (m *ExecDDLRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecDDLRequest.Merge(m, src) } func (m *ExecDDLRequest) XXX_Size() int { return m.Size() @@ -2896,7 +2675,7 @@ func (m *BreakDDLLockRequest) Reset() { *m = BreakDDLLockRequest{} } func (m *BreakDDLLockRequest) String() string { return proto.CompactTextString(m) } func (*BreakDDLLockRequest) ProtoMessage() {} func (*BreakDDLLockRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{36} + return fileDescriptor_51a1b9e17fd67b10, []int{36} } func (m *BreakDDLLockRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2906,15 +2685,15 @@ func (m *BreakDDLLockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_BreakDDLLockRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *BreakDDLLockRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_BreakDDLLockRequest.Merge(dst, src) +func (m *BreakDDLLockRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_BreakDDLLockRequest.Merge(m, src) } func (m *BreakDDLLockRequest) XXX_Size() int { return m.Size() @@ -2961,7 +2740,7 @@ func (m *SwitchRelayMasterRequest) Reset() { *m = SwitchRelayMasterReque func (m *SwitchRelayMasterRequest) String() string { return proto.CompactTextString(m) } func (*SwitchRelayMasterRequest) ProtoMessage() {} func (*SwitchRelayMasterRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{37} + return fileDescriptor_51a1b9e17fd67b10, []int{37} } func (m *SwitchRelayMasterRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -2971,15 +2750,15 @@ func (m *SwitchRelayMasterRequest) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_SwitchRelayMasterRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *SwitchRelayMasterRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_SwitchRelayMasterRequest.Merge(dst, src) +func (m *SwitchRelayMasterRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_SwitchRelayMasterRequest.Merge(m, src) } func (m *SwitchRelayMasterRequest) XXX_Size() int { return m.Size() @@ -2999,7 +2778,7 @@ func (m *OperateRelayRequest) Reset() { *m = OperateRelayRequest{} } func (m *OperateRelayRequest) String() string { return proto.CompactTextString(m) } func (*OperateRelayRequest) ProtoMessage() {} func (*OperateRelayRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{38} + return fileDescriptor_51a1b9e17fd67b10, []int{38} } func (m *OperateRelayRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3009,15 +2788,15 @@ func (m *OperateRelayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, return xxx_messageInfo_OperateRelayRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *OperateRelayRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_OperateRelayRequest.Merge(dst, src) +func (m *OperateRelayRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_OperateRelayRequest.Merge(m, src) } func (m *OperateRelayRequest) XXX_Size() int { return m.Size() @@ -3046,7 +2825,7 @@ func (m *OperateRelayResponse) Reset() { *m = OperateRelayResponse{} } func (m *OperateRelayResponse) String() string { return proto.CompactTextString(m) } func (*OperateRelayResponse) ProtoMessage() {} func (*OperateRelayResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{39} + return fileDescriptor_51a1b9e17fd67b10, []int{39} } func (m *OperateRelayResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3056,15 +2835,15 @@ func (m *OperateRelayResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_OperateRelayResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *OperateRelayResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_OperateRelayResponse.Merge(dst, src) +func (m *OperateRelayResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_OperateRelayResponse.Merge(m, src) } func (m *OperateRelayResponse) XXX_Size() int { return m.Size() @@ -3119,7 +2898,7 @@ func (m *PurgeRelayRequest) Reset() { *m = PurgeRelayRequest{} } func (m *PurgeRelayRequest) String() string { return proto.CompactTextString(m) } func (*PurgeRelayRequest) ProtoMessage() {} func (*PurgeRelayRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{40} + return fileDescriptor_51a1b9e17fd67b10, []int{40} } func (m *PurgeRelayRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3129,15 +2908,15 @@ func (m *PurgeRelayRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_PurgeRelayRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *PurgeRelayRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_PurgeRelayRequest.Merge(dst, src) +func (m *PurgeRelayRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_PurgeRelayRequest.Merge(m, src) } func (m *PurgeRelayRequest) XXX_Size() int { return m.Size() @@ -3183,7 +2962,7 @@ func (m *QueryWorkerConfigRequest) Reset() { *m = QueryWorkerConfigReque func (m *QueryWorkerConfigRequest) String() string { return proto.CompactTextString(m) } func (*QueryWorkerConfigRequest) ProtoMessage() {} func (*QueryWorkerConfigRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{41} + return fileDescriptor_51a1b9e17fd67b10, []int{41} } func (m *QueryWorkerConfigRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3193,15 +2972,15 @@ func (m *QueryWorkerConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([] return xxx_messageInfo_QueryWorkerConfigRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *QueryWorkerConfigRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWorkerConfigRequest.Merge(dst, src) +func (m *QueryWorkerConfigRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryWorkerConfigRequest.Merge(m, src) } func (m *QueryWorkerConfigRequest) XXX_Size() int { return m.Size() @@ -3224,7 +3003,7 @@ func (m *QueryWorkerConfigResponse) Reset() { *m = QueryWorkerConfigResp func (m *QueryWorkerConfigResponse) String() string { return proto.CompactTextString(m) } func (*QueryWorkerConfigResponse) ProtoMessage() {} func (*QueryWorkerConfigResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{42} + return fileDescriptor_51a1b9e17fd67b10, []int{42} } func (m *QueryWorkerConfigResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3234,15 +3013,15 @@ func (m *QueryWorkerConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([ return xxx_messageInfo_QueryWorkerConfigResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *QueryWorkerConfigResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_QueryWorkerConfigResponse.Merge(dst, src) +func (m *QueryWorkerConfigResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_QueryWorkerConfigResponse.Merge(m, src) } func (m *QueryWorkerConfigResponse) XXX_Size() int { return m.Size() @@ -3299,7 +3078,7 @@ func (m *TaskMeta) Reset() { *m = TaskMeta{} } func (m *TaskMeta) String() string { return proto.CompactTextString(m) } func (*TaskMeta) ProtoMessage() {} func (*TaskMeta) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{43} + return fileDescriptor_51a1b9e17fd67b10, []int{43} } func (m *TaskMeta) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3309,15 +3088,15 @@ func (m *TaskMeta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskMeta.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *TaskMeta) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskMeta.Merge(dst, src) +func (m *TaskMeta) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskMeta.Merge(m, src) } func (m *TaskMeta) XXX_Size() int { return m.Size() @@ -3358,7 +3137,7 @@ func (m *TaskMeta) GetTask() []byte { type TaskLog struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Task *TaskMeta `protobuf:"bytes,2,opt,name=task" json:"task,omitempty"` + Task *TaskMeta `protobuf:"bytes,2,opt,name=task,proto3" json:"task,omitempty"` Ts int64 `protobuf:"varint,3,opt,name=ts,proto3" json:"ts,omitempty"` // true means this log is applied successfully Success bool `protobuf:"varint,4,opt,name=success,proto3" json:"success,omitempty"` @@ -3369,7 +3148,7 @@ func (m *TaskLog) Reset() { *m = TaskLog{} } func (m *TaskLog) String() string { return proto.CompactTextString(m) } func (*TaskLog) ProtoMessage() {} func (*TaskLog) Descriptor() ([]byte, []int) { - return fileDescriptor_dmworker_197b0c00ed0d06a5, []int{44} + return fileDescriptor_51a1b9e17fd67b10, []int{44} } func (m *TaskLog) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -3379,15 +3158,15 @@ func (m *TaskLog) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_TaskLog.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *TaskLog) XXX_Merge(src proto.Message) { - xxx_messageInfo_TaskLog.Merge(dst, src) +func (m *TaskLog) XXX_Merge(src proto.Message) { + xxx_messageInfo_TaskLog.Merge(m, src) } func (m *TaskLog) XXX_Size() int { return m.Size() @@ -3434,6 +3213,12 @@ func (m *TaskLog) GetMessage() string { } func init() { + proto.RegisterEnum("pb.TaskOp", TaskOp_name, TaskOp_value) + proto.RegisterEnum("pb.SQLOp", SQLOp_name, SQLOp_value) + proto.RegisterEnum("pb.Stage", Stage_name, Stage_value) + proto.RegisterEnum("pb.UnitType", UnitType_name, UnitType_value) + proto.RegisterEnum("pb.ErrorType", ErrorType_name, ErrorType_value) + proto.RegisterEnum("pb.RelayOp", RelayOp_name, RelayOp_value) proto.RegisterType((*StartSubTaskRequest)(nil), "pb.StartSubTaskRequest") proto.RegisterType((*UpdateRelayRequest)(nil), "pb.UpdateRelayRequest") proto.RegisterType((*MigrateRelayRequest)(nil), "pb.MigrateRelayRequest") @@ -3479,12 +3264,161 @@ func init() { proto.RegisterType((*QueryWorkerConfigResponse)(nil), "pb.QueryWorkerConfigResponse") proto.RegisterType((*TaskMeta)(nil), "pb.TaskMeta") proto.RegisterType((*TaskLog)(nil), "pb.TaskLog") - proto.RegisterEnum("pb.TaskOp", TaskOp_name, TaskOp_value) - proto.RegisterEnum("pb.SQLOp", SQLOp_name, SQLOp_value) - proto.RegisterEnum("pb.Stage", Stage_name, Stage_value) - proto.RegisterEnum("pb.UnitType", UnitType_name, UnitType_value) - proto.RegisterEnum("pb.ErrorType", ErrorType_name, ErrorType_value) - proto.RegisterEnum("pb.RelayOp", RelayOp_name, RelayOp_value) +} + +func init() { proto.RegisterFile("dmworker.proto", fileDescriptor_51a1b9e17fd67b10) } + +var fileDescriptor_51a1b9e17fd67b10 = []byte{ + // 2372 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x19, 0x4d, 0x6f, 0x23, 0x59, + 0xd1, 0xdd, 0x6e, 0x3b, 0x76, 0xd9, 0xc9, 0x74, 0x5e, 0x66, 0x67, 0x3d, 0x66, 0x27, 0x84, 0x9e, + 0xd5, 0x6e, 0x36, 0x42, 0xd1, 0x6e, 0x00, 0x21, 0x01, 0x0b, 0xec, 0xc4, 0x99, 0x4c, 0xc0, 0x99, + 0x49, 0xda, 0x13, 0xe0, 0xb6, 0xea, 0xb4, 0x5f, 0x9c, 0x56, 0xda, 0xdd, 0x3d, 0xfd, 0x91, 0x4c, + 0x4e, 0x80, 0x38, 0x22, 0x21, 0x24, 0x4e, 0x88, 0x33, 0x37, 0x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e6, + 0x93, 0xf2, 0x0d, 0x5b, 0xc1, 0xa0, 0xb4, 0x33, 0xc7, 0xf3, 0xf9, 0x98, 0x62, 0xb2, 0x61, 0x4b, + 0x08, 0x33, 0xee, 0x95, 0x13, 0x07, 0x5e, 0x30, 0x21, 0x15, 0x1b, 0x76, 0x0e, 0xe2, 0x8a, 0x31, + 0x4f, 0x1d, 0xcf, 0x27, 0x47, 0x77, 0x6d, 0x09, 0x59, 0x5d, 0x80, 0x41, 0x36, 0x8d, 0x84, 0x96, + 0xd6, 0xef, 0x34, 0x80, 0x61, 0xe8, 0x8c, 0xa5, 0xd2, 0x1f, 0xc2, 0xf2, 0x99, 0x17, 0x78, 0xc9, + 0x39, 0x1f, 0x3f, 0xba, 0x4e, 0x79, 0x42, 0xba, 0xd7, 0xed, 0x2a, 0x12, 0x95, 0x25, 0xad, 0x05, + 0x8b, 0x48, 0x44, 0x0a, 0x06, 0x4f, 0x39, 0x8a, 0xc3, 0x49, 0xcc, 0x93, 0x44, 0x9e, 0x43, 0x01, + 0xe3, 0x5a, 0xcc, 0x32, 0x22, 0x89, 0xcb, 0x0b, 0xa6, 0x60, 0xac, 0xdf, 0x6a, 0xb0, 0x3c, 0x3a, + 0x77, 0xe2, 0xb1, 0x17, 0x4c, 0xf6, 0xe3, 0x30, 0x8b, 0xd0, 0x90, 0xd4, 0x89, 0x27, 0x3c, 0xaf, + 0x29, 0x12, 0xc2, 0xdb, 0x3b, 0x18, 0x0c, 0x71, 0x7f, 0xba, 0xbd, 0xf8, 0x8d, 0x3b, 0x9f, 0x79, + 0x71, 0x92, 0xe2, 0xe5, 0x95, 0x3b, 0xe7, 0x30, 0xca, 0x49, 0xae, 0x03, 0x97, 0x5c, 0x88, 0x2b, + 0x24, 0x84, 0x6b, 0xb2, 0x40, 0x52, 0x1a, 0x44, 0x29, 0x60, 0xeb, 0x37, 0x75, 0x80, 0xd1, 0x75, + 0xe0, 0x4a, 0xf7, 0x6c, 0x40, 0x87, 0xcc, 0xd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, 0xaf, + 0x61, 0x88, 0xb0, 0x05, 0x9e, 0x7d, 0x52, 0x64, 0xc8, 0x16, 0x65, 0x29, 0xf2, 0xf5, 0x51, 0x1c, + 0x62, 0xee, 0xb0, 0x89, 0x90, 0x27, 0x4d, 0xeb, 0x3f, 0x3a, 0x2c, 0x57, 0x72, 0xfa, 0xcc, 0x92, + 0x59, 0xec, 0xa8, 0xcf, 0xd9, 0x71, 0x03, 0x8c, 0x2c, 0xf0, 0x52, 0xf2, 0xd4, 0xca, 0x4e, 0x17, + 0xe9, 0x27, 0x81, 0x97, 0x3e, 0xbf, 0x8e, 0xb8, 0x4d, 0x14, 0x45, 0x27, 0xe3, 0x0d, 0x3a, 0xb1, + 0x4f, 0x61, 0xad, 0x8c, 0x84, 0xc1, 0x60, 0x38, 0x0c, 0xdd, 0x8b, 0x83, 0x81, 0xf4, 0xde, 0x2c, + 0x12, 0x63, 0x22, 0xc5, 0x53, 0x44, 0x3f, 0xa9, 0x89, 0x24, 0xff, 0x31, 0x34, 0x5c, 0xcc, 0xbe, + 0xe4, 0x25, 0x59, 0x86, 0x94, 0x74, 0xfc, 0xa4, 0x66, 0x0b, 0x3a, 0xfb, 0x10, 0x8c, 0x71, 0x36, + 0x8d, 0xa4, 0xaf, 0x28, 0xa3, 0x97, 0xf9, 0xf0, 0x49, 0xcd, 0x26, 0x2a, 0x72, 0xf9, 0xa1, 0x33, + 0xee, 0xb5, 0x4b, 0xae, 0x32, 0x4d, 0x22, 0x17, 0x52, 0x91, 0x0b, 0x43, 0x94, 0xc2, 0x55, 0x72, + 0x95, 0xd9, 0x02, 0xb9, 0x90, 0xfa, 0xa8, 0x05, 0xcd, 0x44, 0x64, 0xdb, 0x1f, 0xc2, 0x6a, 0xc5, + 0xfb, 0x43, 0x2f, 0x21, 0x57, 0x09, 0x72, 0x4f, 0x9b, 0x57, 0x78, 0xf3, 0xf5, 0xeb, 0x00, 0x64, + 0x93, 0xa8, 0x50, 0xb2, 0xd2, 0x69, 0x65, 0x93, 0xf0, 0x00, 0xda, 0x68, 0xcb, 0x02, 0x32, 0x1a, + 0x31, 0x8f, 0x1c, 0x41, 0x97, 0xb4, 0x3f, 0x1e, 0xce, 0xe1, 0x60, 0x3b, 0x70, 0x57, 0xd4, 0x9d, + 0xa2, 0x07, 0xf7, 0xb0, 0xd1, 0x94, 0x17, 0x6b, 0x26, 0x0d, 0x33, 0x22, 0x47, 0x71, 0xa3, 0xe3, + 0x61, 0x9e, 0x92, 0x73, 0xd8, 0xfa, 0x0e, 0xb4, 0x71, 0x47, 0xb1, 0xdd, 0x26, 0x34, 0x89, 0x90, + 0xfb, 0xc1, 0x2c, 0xdc, 0x29, 0x15, 0xb2, 0x25, 0x1d, 0xdd, 0x50, 0x16, 0xde, 0x19, 0x86, 0xfc, + 0x51, 0x87, 0xae, 0x5a, 0xd9, 0xff, 0x5f, 0x41, 0x2e, 0xe3, 0xd0, 0x50, 0xe3, 0xf0, 0xa3, 0x3c, + 0x0e, 0x95, 0x8e, 0xa1, 0x3c, 0xb3, 0x32, 0x0c, 0x1f, 0xca, 0x30, 0x6c, 0x12, 0xdb, 0x72, 0x1e, + 0x86, 0x39, 0x97, 0x88, 0xc2, 0x87, 0x32, 0x0a, 0x97, 0x4a, 0xa6, 0xe2, 0x00, 0x8b, 0x20, 0x7c, + 0x28, 0x83, 0xb0, 0x55, 0x32, 0x15, 0x4e, 0x2d, 0x62, 0x70, 0x09, 0x1a, 0xe4, 0x3c, 0xeb, 0x7b, + 0x60, 0xaa, 0xae, 0xa1, 0x08, 0xfc, 0x48, 0x12, 0x2b, 0x8e, 0x57, 0x3b, 0x23, 0xb9, 0xf6, 0x05, + 0x2c, 0x57, 0xae, 0x30, 0x16, 0x73, 0x2f, 0xd9, 0x75, 0x02, 0x97, 0xfb, 0x45, 0x9f, 0xa3, 0x60, + 0x94, 0x23, 0xd5, 0x4b, 0xc9, 0x52, 0x44, 0xe5, 0x48, 0x95, 0x6e, 0xa5, 0x5e, 0xe9, 0x56, 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0xa0, + 0xac, 0x97, 0x22, 0x50, 0x6e, 0xd5, 0xcf, 0x85, 0x5a, 0xec, 0xc3, 0xaa, 0xf2, 0x87, 0x8a, 0x28, + 0x6d, 0x22, 0x62, 0x6f, 0xff, 0xcf, 0xb2, 0x50, 0x90, 0x2d, 0x27, 0xe9, 0x6a, 0x8d, 0x14, 0xde, + 0x99, 0x57, 0x57, 0xfb, 0x0f, 0xe6, 0x50, 0x55, 0x17, 0xa9, 0xff, 0xde, 0x08, 0x17, 0xcd, 0xf8, + 0x3f, 0x67, 0x91, 0x62, 0x8f, 0x7a, 0x7f, 0x7f, 0xb5, 0xae, 0x7d, 0xf5, 0x6a, 0x5d, 0xfb, 0xd7, + 0xab, 0x75, 0xed, 0xf7, 0xaf, 0xd7, 0x6b, 0x5f, 0xbd, 0x5e, 0xaf, 0xfd, 0xe3, 0xf5, 0x7a, 0xed, + 0xb4, 0x49, 0x7f, 0x41, 0x7d, 0xeb, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xde, 0x4f, 0x95, 0x7e, + 0x94, 0x1a, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -3731,6 +3665,59 @@ type WorkerServer interface { MigrateRelay(context.Context, *MigrateRelayRequest) (*CommonWorkerResponse, error) } +// UnimplementedWorkerServer can be embedded to have forward compatible implementations. +type UnimplementedWorkerServer struct { +} + +func (*UnimplementedWorkerServer) StartSubTask(ctx context.Context, req *StartSubTaskRequest) (*OperateSubTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StartSubTask not implemented") +} +func (*UnimplementedWorkerServer) OperateSubTask(ctx context.Context, req *OperateSubTaskRequest) (*OperateSubTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperateSubTask not implemented") +} +func (*UnimplementedWorkerServer) UpdateSubTask(ctx context.Context, req *UpdateSubTaskRequest) (*OperateSubTaskResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateSubTask not implemented") +} +func (*UnimplementedWorkerServer) QueryStatus(ctx context.Context, req *QueryStatusRequest) (*QueryStatusResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryStatus not implemented") +} +func (*UnimplementedWorkerServer) QueryError(ctx context.Context, req *QueryErrorRequest) (*QueryErrorResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryError not implemented") +} +func (*UnimplementedWorkerServer) QueryTaskOperation(ctx context.Context, req *QueryTaskOperationRequest) (*QueryTaskOperationResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryTaskOperation not implemented") +} +func (*UnimplementedWorkerServer) HandleSQLs(ctx context.Context, req *HandleSubTaskSQLsRequest) (*CommonWorkerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method HandleSQLs not implemented") +} +func (*UnimplementedWorkerServer) FetchDDLInfo(srv Worker_FetchDDLInfoServer) error { + return status.Errorf(codes.Unimplemented, "method FetchDDLInfo not implemented") +} +func (*UnimplementedWorkerServer) ExecuteDDL(ctx context.Context, req *ExecDDLRequest) (*CommonWorkerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ExecuteDDL not implemented") +} +func (*UnimplementedWorkerServer) BreakDDLLock(ctx context.Context, req *BreakDDLLockRequest) (*CommonWorkerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method BreakDDLLock not implemented") +} +func (*UnimplementedWorkerServer) SwitchRelayMaster(ctx context.Context, req *SwitchRelayMasterRequest) (*CommonWorkerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method SwitchRelayMaster not implemented") +} +func (*UnimplementedWorkerServer) OperateRelay(ctx context.Context, req *OperateRelayRequest) (*OperateRelayResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method OperateRelay not implemented") +} +func (*UnimplementedWorkerServer) PurgeRelay(ctx context.Context, req *PurgeRelayRequest) (*CommonWorkerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method PurgeRelay not implemented") +} +func (*UnimplementedWorkerServer) UpdateRelayConfig(ctx context.Context, req *UpdateRelayRequest) (*CommonWorkerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UpdateRelayConfig not implemented") +} +func (*UnimplementedWorkerServer) QueryWorkerConfig(ctx context.Context, req *QueryWorkerConfigRequest) (*QueryWorkerConfigResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method QueryWorkerConfig not implemented") +} +func (*UnimplementedWorkerServer) MigrateRelay(ctx context.Context, req *MigrateRelayRequest) (*CommonWorkerResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method MigrateRelay not implemented") +} + func RegisterWorkerServer(s *grpc.Server, srv WorkerServer) { s.RegisterService(&_Worker_serviceDesc, srv) } @@ -4110,7 +4097,7 @@ var _Worker_serviceDesc = grpc.ServiceDesc{ func (m *StartSubTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4118,23 +4105,29 @@ func (m *StartSubTaskRequest) Marshal() (dAtA []byte, err error) { } func (m *StartSubTaskRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *StartSubTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Task) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Task) + copy(dAtA[i:], m.Task) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) - i += copy(dAtA[i:], m.Task) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateRelayRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4142,23 +4135,29 @@ func (m *UpdateRelayRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateRelayRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateRelayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Content) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Content) + copy(dAtA[i:], m.Content) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Content))) - i += copy(dAtA[i:], m.Content) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *MigrateRelayRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4166,28 +4165,34 @@ func (m *MigrateRelayRequest) Marshal() (dAtA []byte, err error) { } func (m *MigrateRelayRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MigrateRelayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.BinlogName) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.BinlogName))) - i += copy(dAtA[i:], m.BinlogName) - } if m.BinlogPos != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintDmworker(dAtA, i, uint64(m.BinlogPos)) + i-- + dAtA[i] = 0x10 + } + if len(m.BinlogName) > 0 { + i -= len(m.BinlogName) + copy(dAtA[i:], m.BinlogName) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.BinlogName))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *OperateSubTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4195,28 +4200,34 @@ func (m *OperateSubTaskRequest) Marshal() (dAtA []byte, err error) { } func (m *OperateSubTaskRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OperateSubTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Op != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) - } if len(m.Name) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Name) + copy(dAtA[i:], m.Name) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + i-- + dAtA[i] = 0x12 + } + if m.Op != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *OperateSubTaskResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4224,37 +4235,44 @@ func (m *OperateSubTaskResponse) Marshal() (dAtA []byte, err error) { } func (m *OperateSubTaskResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OperateSubTaskResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Meta != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Meta.Size())) - n1, err := m.Meta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + if m.LogID != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.LogID)) + i-- + dAtA[i] = 0x18 } if m.Op != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) + i-- + dAtA[i] = 0x10 } - if m.LogID != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.LogID)) + if m.Meta != nil { + { + size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *QueryTaskOperationRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4262,28 +4280,34 @@ func (m *QueryTaskOperationRequest) Marshal() (dAtA []byte, err error) { } func (m *QueryTaskOperationRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTaskOperationRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } if m.LogID != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintDmworker(dAtA, i, uint64(m.LogID)) + i-- + dAtA[i] = 0x10 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *QueryTaskOperationResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4291,37 +4315,46 @@ func (m *QueryTaskOperationResponse) Marshal() (dAtA []byte, err error) { } func (m *QueryTaskOperationResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryTaskOperationResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Meta != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Meta.Size())) - n2, err := m.Meta.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n2 - } if m.Log != nil { + { + size, err := m.Log.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) + } + i-- dAtA[i] = 0x12 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Log.Size())) - n3, err := m.Log.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if m.Meta != nil { + { + size, err := m.Meta.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - i += n3 + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *UpdateSubTaskRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4329,23 +4362,29 @@ func (m *UpdateSubTaskRequest) Marshal() (dAtA []byte, err error) { } func (m *UpdateSubTaskRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UpdateSubTaskRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Task) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Task) + copy(dAtA[i:], m.Task) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) - i += copy(dAtA[i:], m.Task) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *QueryStatusRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4353,23 +4392,29 @@ func (m *QueryStatusRequest) Marshal() (dAtA []byte, err error) { } func (m *QueryStatusRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryStatusRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Name) + copy(dAtA[i:], m.Name) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *QueryErrorRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4377,23 +4422,29 @@ func (m *QueryErrorRequest) Marshal() (dAtA []byte, err error) { } func (m *QueryErrorRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryErrorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Name) + copy(dAtA[i:], m.Name) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *HandleSubTaskSQLsRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4401,55 +4452,57 @@ func (m *HandleSubTaskSQLsRequest) Marshal() (dAtA []byte, err error) { } func (m *HandleSubTaskSQLsRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *HandleSubTaskSQLsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + if len(m.SqlPattern) > 0 { + i -= len(m.SqlPattern) + copy(dAtA[i:], m.SqlPattern) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.SqlPattern))) + i-- + dAtA[i] = 0x2a } - if m.Op != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) + if len(m.BinlogPos) > 0 { + i -= len(m.BinlogPos) + copy(dAtA[i:], m.BinlogPos) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.BinlogPos))) + i-- + dAtA[i] = 0x22 } if len(m.Args) > 0 { - for _, s := range m.Args { + for iNdEx := len(m.Args) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Args[iNdEx]) + copy(dAtA[i:], m.Args[iNdEx]) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Args[iNdEx]))) + i-- dAtA[i] = 0x1a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) } } - if len(m.BinlogPos) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.BinlogPos))) - i += copy(dAtA[i:], m.BinlogPos) + if m.Op != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) + i-- + dAtA[i] = 0x10 } - if len(m.SqlPattern) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.SqlPattern))) - i += copy(dAtA[i:], m.SqlPattern) + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *CommonWorkerResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4457,39 +4510,46 @@ func (m *CommonWorkerResponse) Marshal() (dAtA []byte, err error) { } func (m *CommonWorkerResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommonWorkerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x1a + } + if len(m.Worker) > 0 { + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Worker))) + i-- + dAtA[i] = 0x12 + } if m.Result { - dAtA[i] = 0x8 - i++ + i-- if m.Result { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.Worker) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Worker))) - i += copy(dAtA[i:], m.Worker) - } - if len(m.Msg) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *QueryStatusResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4497,67 +4557,79 @@ func (m *QueryStatusResponse) Marshal() (dAtA []byte, err error) { } func (m *QueryStatusResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryStatusResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Result { - dAtA[i] = 0x8 - i++ - if m.Result { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - if len(m.Worker) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Worker))) - i += copy(dAtA[i:], m.Worker) - } - if len(m.Msg) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + if len(m.SourceID) > 0 { + i -= len(m.SourceID) + copy(dAtA[i:], m.SourceID) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.SourceID))) + i-- + dAtA[i] = 0x32 } - if len(m.SubTaskStatus) > 0 { - for _, msg := range m.SubTaskStatus { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) + if m.RelayStatus != nil { + { + size, err := m.RelayStatus.MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } - i += n + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - } - if m.RelayStatus != nil { + i-- dAtA[i] = 0x2a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.RelayStatus.Size())) - n4, err := m.RelayStatus.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + } + if len(m.SubTaskStatus) > 0 { + for iNdEx := len(m.SubTaskStatus) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SubTaskStatus[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 } - i += n4 } - if len(m.SourceID) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.SourceID))) - i += copy(dAtA[i:], m.SourceID) + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x1a + } + if len(m.Worker) > 0 { + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Worker))) + i-- + dAtA[i] = 0x12 + } + if m.Result { + i-- + if m.Result { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *QueryErrorResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4565,61 +4637,72 @@ func (m *QueryErrorResponse) Marshal() (dAtA []byte, err error) { } func (m *QueryErrorResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryErrorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Result { - dAtA[i] = 0x8 - i++ - if m.Result { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.RelayError != nil { + { + size, err := m.RelayError.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - i++ + i-- + dAtA[i] = 0x2a } - if len(m.Worker) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Worker))) - i += copy(dAtA[i:], m.Worker) + if len(m.SubTaskError) > 0 { + for iNdEx := len(m.SubTaskError) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.SubTaskError[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x22 + } } if len(m.Msg) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x1a } - if len(m.SubTaskError) > 0 { - for _, msg := range m.SubTaskError { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if len(m.Worker) > 0 { + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Worker))) + i-- + dAtA[i] = 0x12 } - if m.RelayError != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.RelayError.Size())) - n5, err := m.RelayError.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Result { + i-- + if m.Result { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i += n5 + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *CheckStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4627,53 +4710,59 @@ func (m *CheckStatus) Marshal() (dAtA []byte, err error) { } func (m *CheckStatus) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if len(m.Detail) > 0 { + i -= len(m.Detail) + copy(dAtA[i:], m.Detail) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Detail))) + i-- + dAtA[i] = 0x32 + } + if m.Warning != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Warning)) + i-- + dAtA[i] = 0x28 + } + if m.Failed != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Failed)) + i-- + dAtA[i] = 0x20 + } + if m.Successful != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Successful)) + i-- + dAtA[i] = 0x18 + } + if m.Total != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Total)) + i-- + dAtA[i] = 0x10 + } if m.Passed { - dAtA[i] = 0x8 - i++ + i-- if m.Passed { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x8 } - if m.Total != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Total)) - } - if m.Successful != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Successful)) - } - if m.Failed != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Failed)) - } - if m.Warning != 0 { - dAtA[i] = 0x28 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Warning)) - } - if len(m.Detail) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Detail))) - i += copy(dAtA[i:], m.Detail) - } - return i, nil + return len(dAtA) - i, nil } func (m *DumpStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4681,17 +4770,22 @@ func (m *DumpStatus) Marshal() (dAtA []byte, err error) { } func (m *DumpStatus) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DumpStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + return len(dAtA) - i, nil } func (m *LoadStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4699,39 +4793,46 @@ func (m *LoadStatus) Marshal() (dAtA []byte, err error) { } func (m *LoadStatus) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LoadStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.FinishedBytes != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.FinishedBytes)) - } - if m.TotalBytes != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.TotalBytes)) + if len(m.MetaBinlog) > 0 { + i -= len(m.MetaBinlog) + copy(dAtA[i:], m.MetaBinlog) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.MetaBinlog))) + i-- + dAtA[i] = 0x22 } if len(m.Progress) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Progress) + copy(dAtA[i:], m.Progress) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Progress))) - i += copy(dAtA[i:], m.Progress) + i-- + dAtA[i] = 0x1a } - if len(m.MetaBinlog) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.MetaBinlog))) - i += copy(dAtA[i:], m.MetaBinlog) + if m.TotalBytes != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.TotalBytes)) + i-- + dAtA[i] = 0x10 + } + if m.FinishedBytes != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.FinishedBytes)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ShardingGroup) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4739,74 +4840,63 @@ func (m *ShardingGroup) Marshal() (dAtA []byte, err error) { } func (m *ShardingGroup) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ShardingGroup) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Target) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Target))) - i += copy(dAtA[i:], m.Target) + if len(m.Unsynced) > 0 { + for iNdEx := len(m.Unsynced) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Unsynced[iNdEx]) + copy(dAtA[i:], m.Unsynced[iNdEx]) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Unsynced[iNdEx]))) + i-- + dAtA[i] = 0x2a + } } - if len(m.DDLs) > 0 { - for _, s := range m.DDLs { - dAtA[i] = 0x12 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) + if len(m.Synced) > 0 { + for iNdEx := len(m.Synced) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Synced[iNdEx]) + copy(dAtA[i:], m.Synced[iNdEx]) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Synced[iNdEx]))) + i-- + dAtA[i] = 0x22 } } if len(m.FirstPos) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.FirstPos) + copy(dAtA[i:], m.FirstPos) i = encodeVarintDmworker(dAtA, i, uint64(len(m.FirstPos))) - i += copy(dAtA[i:], m.FirstPos) + i-- + dAtA[i] = 0x1a } - if len(m.Synced) > 0 { - for _, s := range m.Synced { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) + if len(m.DDLs) > 0 { + for iNdEx := len(m.DDLs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.DDLs[iNdEx]) + copy(dAtA[i:], m.DDLs[iNdEx]) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.DDLs[iNdEx]))) + i-- + dAtA[i] = 0x12 } } - if len(m.Unsynced) > 0 { - for _, s := range m.Unsynced { - dAtA[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } + if len(m.Target) > 0 { + i -= len(m.Target) + copy(dAtA[i:], m.Target) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Target))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SyncStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4814,93 +4904,98 @@ func (m *SyncStatus) Marshal() (dAtA []byte, err error) { } func (m *SyncStatus) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyncStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.TotalEvents != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.TotalEvents)) - } - if m.TotalTps != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.TotalTps)) + if m.Synced { + i-- + if m.Synced { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x50 } - if m.RecentTps != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.RecentTps)) + if len(m.UnresolvedGroups) > 0 { + for iNdEx := len(m.UnresolvedGroups) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.UnresolvedGroups[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x4a + } } - if len(m.MasterBinlog) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.MasterBinlog))) - i += copy(dAtA[i:], m.MasterBinlog) + if len(m.BlockingDDLs) > 0 { + for iNdEx := len(m.BlockingDDLs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.BlockingDDLs[iNdEx]) + copy(dAtA[i:], m.BlockingDDLs[iNdEx]) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.BlockingDDLs[iNdEx]))) + i-- + dAtA[i] = 0x42 + } } - if len(m.MasterBinlogGtid) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.MasterBinlogGtid))) - i += copy(dAtA[i:], m.MasterBinlogGtid) + if len(m.SyncerBinlogGtid) > 0 { + i -= len(m.SyncerBinlogGtid) + copy(dAtA[i:], m.SyncerBinlogGtid) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.SyncerBinlogGtid))) + i-- + dAtA[i] = 0x3a } if len(m.SyncerBinlog) > 0 { - dAtA[i] = 0x32 - i++ + i -= len(m.SyncerBinlog) + copy(dAtA[i:], m.SyncerBinlog) i = encodeVarintDmworker(dAtA, i, uint64(len(m.SyncerBinlog))) - i += copy(dAtA[i:], m.SyncerBinlog) + i-- + dAtA[i] = 0x32 } - if len(m.SyncerBinlogGtid) > 0 { - dAtA[i] = 0x3a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.SyncerBinlogGtid))) - i += copy(dAtA[i:], m.SyncerBinlogGtid) + if len(m.MasterBinlogGtid) > 0 { + i -= len(m.MasterBinlogGtid) + copy(dAtA[i:], m.MasterBinlogGtid) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.MasterBinlogGtid))) + i-- + dAtA[i] = 0x2a } - if len(m.BlockingDDLs) > 0 { - for _, s := range m.BlockingDDLs { - dAtA[i] = 0x42 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } + if len(m.MasterBinlog) > 0 { + i -= len(m.MasterBinlog) + copy(dAtA[i:], m.MasterBinlog) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.MasterBinlog))) + i-- + dAtA[i] = 0x22 } - if len(m.UnresolvedGroups) > 0 { - for _, msg := range m.UnresolvedGroups { - dAtA[i] = 0x4a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } + if m.RecentTps != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.RecentTps)) + i-- + dAtA[i] = 0x18 } - if m.Synced { - dAtA[i] = 0x50 - i++ - if m.Synced { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if m.TotalTps != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.TotalTps)) + i-- + dAtA[i] = 0x10 } - return i, nil + if m.TotalEvents != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.TotalEvents)) + i-- + dAtA[i] = 0x8 + } + return len(dAtA) - i, nil } func (m *RelayStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4908,72 +5003,84 @@ func (m *RelayStatus) Marshal() (dAtA []byte, err error) { } func (m *RelayStatus) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RelayStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.MasterBinlog) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.MasterBinlog))) - i += copy(dAtA[i:], m.MasterBinlog) - } - if len(m.MasterBinlogGtid) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.MasterBinlogGtid))) - i += copy(dAtA[i:], m.MasterBinlogGtid) - } - if len(m.RelaySubDir) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.RelaySubDir))) - i += copy(dAtA[i:], m.RelaySubDir) - } - if len(m.RelayBinlog) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.RelayBinlog))) - i += copy(dAtA[i:], m.RelayBinlog) + if m.Result != nil { + { + size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x42 } - if len(m.RelayBinlogGtid) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.RelayBinlogGtid))) - i += copy(dAtA[i:], m.RelayBinlogGtid) + if m.Stage != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Stage)) + i-- + dAtA[i] = 0x38 } if m.RelayCatchUpMaster { - dAtA[i] = 0x30 - i++ + i-- if m.RelayCatchUpMaster { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x30 } - if m.Stage != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Stage)) + if len(m.RelayBinlogGtid) > 0 { + i -= len(m.RelayBinlogGtid) + copy(dAtA[i:], m.RelayBinlogGtid) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.RelayBinlogGtid))) + i-- + dAtA[i] = 0x2a } - if m.Result != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Result.Size())) - n6, err := m.Result.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n6 + if len(m.RelayBinlog) > 0 { + i -= len(m.RelayBinlog) + copy(dAtA[i:], m.RelayBinlog) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.RelayBinlog))) + i-- + dAtA[i] = 0x22 + } + if len(m.RelaySubDir) > 0 { + i -= len(m.RelaySubDir) + copy(dAtA[i:], m.RelaySubDir) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.RelaySubDir))) + i-- + dAtA[i] = 0x1a + } + if len(m.MasterBinlogGtid) > 0 { + i -= len(m.MasterBinlogGtid) + copy(dAtA[i:], m.MasterBinlogGtid) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.MasterBinlogGtid))) + i-- + dAtA[i] = 0x12 + } + if len(m.MasterBinlog) > 0 { + i -= len(m.MasterBinlog) + copy(dAtA[i:], m.MasterBinlog) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.MasterBinlog))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SubTaskStatus) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -4981,120 +5088,165 @@ func (m *SubTaskStatus) Marshal() (dAtA []byte, err error) { } func (m *SubTaskStatus) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubTaskStatus) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.Stage != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Stage)) - } - if m.Unit != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Unit)) - } - if m.Result != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Result.Size())) - n7, err := m.Result.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Status != nil { + { + size := m.Status.Size() + i -= size + if _, err := m.Status.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } } - i += n7 } if len(m.UnresolvedDDLLockID) > 0 { - dAtA[i] = 0x2a - i++ + i -= len(m.UnresolvedDDLLockID) + copy(dAtA[i:], m.UnresolvedDDLLockID) i = encodeVarintDmworker(dAtA, i, uint64(len(m.UnresolvedDDLLockID))) - i += copy(dAtA[i:], m.UnresolvedDDLLockID) + i-- + dAtA[i] = 0x2a } - if m.Status != nil { - nn8, err := m.Status.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Result != nil { + { + size, err := m.Result.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - i += nn8 + i-- + dAtA[i] = 0x22 } - return i, nil + if m.Unit != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Unit)) + i-- + dAtA[i] = 0x18 + } + if m.Stage != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Stage)) + i-- + dAtA[i] = 0x10 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *SubTaskStatus_Msg) MarshalTo(dAtA []byte) (int, error) { - i := 0 - dAtA[i] = 0x32 - i++ + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubTaskStatus_Msg) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) - return i, nil + i-- + dAtA[i] = 0x32 + return len(dAtA) - i, nil } func (m *SubTaskStatus_Check) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubTaskStatus_Check) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Check != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Check.Size())) - n9, err := m.Check.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Check.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - i += n9 + i-- + dAtA[i] = 0x3a } - return i, nil + return len(dAtA) - i, nil } func (m *SubTaskStatus_Dump) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubTaskStatus_Dump) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Dump != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Dump.Size())) - n10, err := m.Dump.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Dump.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - i += n10 + i-- + dAtA[i] = 0x42 } - return i, nil + return len(dAtA) - i, nil } func (m *SubTaskStatus_Load) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubTaskStatus_Load) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Load != nil { - dAtA[i] = 0x4a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Load.Size())) - n11, err := m.Load.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Load.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - i += n11 + i-- + dAtA[i] = 0x4a } - return i, nil + return len(dAtA) - i, nil } func (m *SubTaskStatus_Sync) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubTaskStatus_Sync) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Sync != nil { - dAtA[i] = 0x52 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Sync.Size())) - n12, err := m.Sync.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Sync.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - i += n12 + i-- + dAtA[i] = 0x52 } - return i, nil + return len(dAtA) - i, nil } func (m *SubTaskStatusList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5102,29 +5254,36 @@ func (m *SubTaskStatusList) Marshal() (dAtA []byte, err error) { } func (m *SubTaskStatusList) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubTaskStatusList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Status) > 0 { - for _, msg := range m.Status { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Status) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Status[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *CheckError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5132,23 +5291,29 @@ func (m *CheckError) Marshal() (dAtA []byte, err error) { } func (m *CheckError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CheckError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Msg) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *DumpError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5156,23 +5321,29 @@ func (m *DumpError) Marshal() (dAtA []byte, err error) { } func (m *DumpError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DumpError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Msg) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *LoadError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5180,23 +5351,29 @@ func (m *LoadError) Marshal() (dAtA []byte, err error) { } func (m *LoadError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *LoadError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Msg) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SyncSQLError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5204,35 +5381,43 @@ func (m *SyncSQLError) Marshal() (dAtA []byte, err error) { } func (m *SyncSQLError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyncSQLError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Msg) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + if len(m.ErrorSQL) > 0 { + i -= len(m.ErrorSQL) + copy(dAtA[i:], m.ErrorSQL) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.ErrorSQL))) + i-- + dAtA[i] = 0x1a } if len(m.FailedBinlogPosition) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.FailedBinlogPosition) + copy(dAtA[i:], m.FailedBinlogPosition) i = encodeVarintDmworker(dAtA, i, uint64(len(m.FailedBinlogPosition))) - i += copy(dAtA[i:], m.FailedBinlogPosition) + i-- + dAtA[i] = 0x12 } - if len(m.ErrorSQL) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.ErrorSQL))) - i += copy(dAtA[i:], m.ErrorSQL) + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SyncError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5240,29 +5425,36 @@ func (m *SyncError) Marshal() (dAtA []byte, err error) { } func (m *SyncError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyncError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Errors) > 0 { - for _, msg := range m.Errors { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Errors) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Errors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *RelayError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5270,23 +5462,29 @@ func (m *RelayError) Marshal() (dAtA []byte, err error) { } func (m *RelayError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *RelayError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Msg) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SubTaskError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5294,104 +5492,146 @@ func (m *SubTaskError) Marshal() (dAtA []byte, err error) { } func (m *SubTaskError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubTaskError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } - if m.Stage != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Stage)) + if m.Error != nil { + { + size := m.Error.Size() + i -= size + if _, err := m.Error.MarshalTo(dAtA[i:]); err != nil { + return 0, err + } + } } if m.Unit != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintDmworker(dAtA, i, uint64(m.Unit)) + i-- + dAtA[i] = 0x18 } - if m.Error != nil { - nn13, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += nn13 + if m.Stage != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Stage)) + i-- + dAtA[i] = 0x10 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SubTaskError_Msg) MarshalTo(dAtA []byte) (int, error) { - i := 0 - dAtA[i] = 0x22 - i++ + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubTaskError_Msg) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) - return i, nil + i-- + dAtA[i] = 0x22 + return len(dAtA) - i, nil } func (m *SubTaskError_Check) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubTaskError_Check) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Check != nil { - dAtA[i] = 0x2a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Check.Size())) - n14, err := m.Check.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Check.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - i += n14 + i-- + dAtA[i] = 0x2a } - return i, nil + return len(dAtA) - i, nil } func (m *SubTaskError_Dump) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubTaskError_Dump) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Dump != nil { - dAtA[i] = 0x32 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Dump.Size())) - n15, err := m.Dump.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Dump.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - i += n15 + i-- + dAtA[i] = 0x32 } - return i, nil + return len(dAtA) - i, nil } func (m *SubTaskError_Load) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubTaskError_Load) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Load != nil { - dAtA[i] = 0x3a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Load.Size())) - n16, err := m.Load.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Load.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - i += n16 + i-- + dAtA[i] = 0x3a } - return i, nil + return len(dAtA) - i, nil } func (m *SubTaskError_Sync) MarshalTo(dAtA []byte) (int, error) { - i := 0 + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubTaskError_Sync) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) if m.Sync != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Sync.Size())) - n17, err := m.Sync.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + { + size, err := m.Sync.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - i += n17 + i-- + dAtA[i] = 0x42 } - return i, nil + return len(dAtA) - i, nil } func (m *SubTaskErrorList) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5399,29 +5639,36 @@ func (m *SubTaskErrorList) Marshal() (dAtA []byte, err error) { } func (m *SubTaskErrorList) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SubTaskErrorList) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Error) > 0 { - for _, msg := range m.Error { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Error) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Error[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *ProcessResult) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5429,45 +5676,53 @@ func (m *ProcessResult) Marshal() (dAtA []byte, err error) { } func (m *ProcessResult) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProcessResult) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if len(m.Detail) > 0 { + i -= len(m.Detail) + copy(dAtA[i:], m.Detail) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Detail))) + i-- + dAtA[i] = 0x1a + } + if len(m.Errors) > 0 { + for iNdEx := len(m.Errors) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Errors[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + } if m.IsCanceled { - dAtA[i] = 0x8 - i++ + i-- if m.IsCanceled { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.Errors) > 0 { - for _, msg := range m.Errors { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n - } - } - if len(m.Detail) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Detail))) - i += copy(dAtA[i:], m.Detail) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *TError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5475,49 +5730,56 @@ func (m *TError) Marshal() (dAtA []byte, err error) { } func (m *TError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.ErrCode != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.ErrCode)) - } - if m.ErrClass != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.ErrClass)) + if len(m.RawCause) > 0 { + i -= len(m.RawCause) + copy(dAtA[i:], m.RawCause) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.RawCause))) + i-- + dAtA[i] = 0x32 } - if m.ErrScope != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.ErrScope)) + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x2a } if m.ErrLevel != 0 { - dAtA[i] = 0x20 - i++ i = encodeVarintDmworker(dAtA, i, uint64(m.ErrLevel)) + i-- + dAtA[i] = 0x20 } - if len(m.Message) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) + if m.ErrScope != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.ErrScope)) + i-- + dAtA[i] = 0x18 } - if len(m.RawCause) > 0 { - dAtA[i] = 0x32 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.RawCause))) - i += copy(dAtA[i:], m.RawCause) + if m.ErrClass != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.ErrClass)) + i-- + dAtA[i] = 0x10 + } + if m.ErrCode != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.ErrCode)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ProcessError) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5525,38 +5787,46 @@ func (m *ProcessError) Marshal() (dAtA []byte, err error) { } func (m *ProcessError) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ProcessError) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Type != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Type)) + if m.Error != nil { + { + size, err := m.Error.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x12 } - if m.Error != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Error.Size())) - n18, err := m.Error.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n18 + if m.Type != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *DDLInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5564,50 +5834,52 @@ func (m *DDLInfo) Marshal() (dAtA []byte, err error) { } func (m *DDLInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DDLInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Task) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) - i += copy(dAtA[i:], m.Task) - } - if len(m.Schema) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Schema))) - i += copy(dAtA[i:], m.Schema) + if len(m.DDLs) > 0 { + for iNdEx := len(m.DDLs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.DDLs[iNdEx]) + copy(dAtA[i:], m.DDLs[iNdEx]) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.DDLs[iNdEx]))) + i-- + dAtA[i] = 0x22 + } } if len(m.Table) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Table) + copy(dAtA[i:], m.Table) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Table))) - i += copy(dAtA[i:], m.Table) + i-- + dAtA[i] = 0x1a } - if len(m.DDLs) > 0 { - for _, s := range m.DDLs { - dAtA[i] = 0x22 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } + if len(m.Schema) > 0 { + i -= len(m.Schema) + copy(dAtA[i:], m.Schema) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Schema))) + i-- + dAtA[i] = 0x12 + } + if len(m.Task) > 0 { + i -= len(m.Task) + copy(dAtA[i:], m.Task) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *DDLLockInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5615,29 +5887,36 @@ func (m *DDLLockInfo) Marshal() (dAtA []byte, err error) { } func (m *DDLLockInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *DDLLockInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Task) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) - i += copy(dAtA[i:], m.Task) - } if len(m.ID) > 0 { - dAtA[i] = 0x12 - i++ + i -= len(m.ID) + copy(dAtA[i:], m.ID) i = encodeVarintDmworker(dAtA, i, uint64(len(m.ID))) - i += copy(dAtA[i:], m.ID) + i-- + dAtA[i] = 0x12 + } + if len(m.Task) > 0 { + i -= len(m.Task) + copy(dAtA[i:], m.Task) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *ExecDDLRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5645,60 +5924,62 @@ func (m *ExecDDLRequest) Marshal() (dAtA []byte, err error) { } func (m *ExecDDLRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExecDDLRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Task) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) - i += copy(dAtA[i:], m.Task) + if len(m.DDLs) > 0 { + for iNdEx := len(m.DDLs) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.DDLs[iNdEx]) + copy(dAtA[i:], m.DDLs[iNdEx]) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.DDLs[iNdEx]))) + i-- + dAtA[i] = 0x2a + } } - if len(m.LockID) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.LockID))) - i += copy(dAtA[i:], m.LockID) + if len(m.TraceGID) > 0 { + i -= len(m.TraceGID) + copy(dAtA[i:], m.TraceGID) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.TraceGID))) + i-- + dAtA[i] = 0x22 } if m.Exec { - dAtA[i] = 0x18 - i++ + i-- if m.Exec { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x18 } - if len(m.TraceGID) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.TraceGID))) - i += copy(dAtA[i:], m.TraceGID) + if len(m.LockID) > 0 { + i -= len(m.LockID) + copy(dAtA[i:], m.LockID) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.LockID))) + i-- + dAtA[i] = 0x12 } - if len(m.DDLs) > 0 { - for _, s := range m.DDLs { - dAtA[i] = 0x2a - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) - } + if len(m.Task) > 0 { + i -= len(m.Task) + copy(dAtA[i:], m.Task) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *BreakDDLLockRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5706,49 +5987,56 @@ func (m *BreakDDLLockRequest) Marshal() (dAtA []byte, err error) { } func (m *BreakDDLLockRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BreakDDLLockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Task) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) - i += copy(dAtA[i:], m.Task) - } - if len(m.RemoveLockID) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.RemoveLockID))) - i += copy(dAtA[i:], m.RemoveLockID) - } - if m.ExecDDL { - dAtA[i] = 0x18 - i++ - if m.ExecDDL { + if m.SkipDDL { + i-- + if m.SkipDDL { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.SkipDDL { + i-- dAtA[i] = 0x20 - i++ - if m.SkipDDL { + } + if m.ExecDDL { + i-- + if m.ExecDDL { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x18 + } + if len(m.RemoveLockID) > 0 { + i -= len(m.RemoveLockID) + copy(dAtA[i:], m.RemoveLockID) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.RemoveLockID))) + i-- + dAtA[i] = 0x12 + } + if len(m.Task) > 0 { + i -= len(m.Task) + copy(dAtA[i:], m.Task) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SwitchRelayMasterRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5756,17 +6044,22 @@ func (m *SwitchRelayMasterRequest) Marshal() (dAtA []byte, err error) { } func (m *SwitchRelayMasterRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SwitchRelayMasterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + return len(dAtA) - i, nil } func (m *OperateRelayRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5774,22 +6067,27 @@ func (m *OperateRelayRequest) Marshal() (dAtA []byte, err error) { } func (m *OperateRelayRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OperateRelayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if m.Op != 0 { - dAtA[i] = 0x8 - i++ i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *OperateRelayResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5797,44 +6095,51 @@ func (m *OperateRelayResponse) Marshal() (dAtA []byte, err error) { } func (m *OperateRelayResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *OperateRelayResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Op != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x22 + } + if len(m.Worker) > 0 { + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Worker))) + i-- + dAtA[i] = 0x1a } if m.Result { - dAtA[i] = 0x10 - i++ + i-- if m.Result { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.Worker) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Worker))) - i += copy(dAtA[i:], m.Worker) + i-- + dAtA[i] = 0x10 } - if len(m.Msg) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + if m.Op != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *PurgeRelayRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5842,44 +6147,51 @@ func (m *PurgeRelayRequest) Marshal() (dAtA []byte, err error) { } func (m *PurgeRelayRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *PurgeRelayRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if len(m.SubDir) > 0 { + i -= len(m.SubDir) + copy(dAtA[i:], m.SubDir) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.SubDir))) + i-- + dAtA[i] = 0x22 + } + if len(m.Filename) > 0 { + i -= len(m.Filename) + copy(dAtA[i:], m.Filename) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Filename))) + i-- + dAtA[i] = 0x1a + } + if m.Time != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Time)) + i-- + dAtA[i] = 0x10 + } if m.Inactive { - dAtA[i] = 0x8 - i++ + i-- if m.Inactive { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.Time != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Time)) - } - if len(m.Filename) > 0 { - dAtA[i] = 0x1a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Filename))) - i += copy(dAtA[i:], m.Filename) - } - if len(m.SubDir) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.SubDir))) - i += copy(dAtA[i:], m.SubDir) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *QueryWorkerConfigRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5887,17 +6199,22 @@ func (m *QueryWorkerConfigRequest) Marshal() (dAtA []byte, err error) { } func (m *QueryWorkerConfigRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryWorkerConfigRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - return i, nil + return len(dAtA) - i, nil } func (m *QueryWorkerConfigResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5905,51 +6222,60 @@ func (m *QueryWorkerConfigResponse) Marshal() (dAtA []byte, err error) { } func (m *QueryWorkerConfigResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *QueryWorkerConfigResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Result { - dAtA[i] = 0x8 - i++ - if m.Result { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ + if len(m.Content) > 0 { + i -= len(m.Content) + copy(dAtA[i:], m.Content) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Content))) + i-- + dAtA[i] = 0x2a } - if len(m.Worker) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Worker))) - i += copy(dAtA[i:], m.Worker) + if len(m.SourceID) > 0 { + i -= len(m.SourceID) + copy(dAtA[i:], m.SourceID) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.SourceID))) + i-- + dAtA[i] = 0x22 } if len(m.Msg) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x1a } - if len(m.SourceID) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.SourceID))) - i += copy(dAtA[i:], m.SourceID) + if len(m.Worker) > 0 { + i -= len(m.Worker) + copy(dAtA[i:], m.Worker) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Worker))) + i-- + dAtA[i] = 0x12 } - if len(m.Content) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Content))) - i += copy(dAtA[i:], m.Content) + if m.Result { + i-- + if m.Result { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *TaskMeta) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5957,39 +6283,46 @@ func (m *TaskMeta) Marshal() (dAtA []byte, err error) { } func (m *TaskMeta) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TaskMeta) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Op != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) - } - if m.Stage != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Stage)) + if len(m.Task) > 0 { + i -= len(m.Task) + copy(dAtA[i:], m.Task) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) + i-- + dAtA[i] = 0x22 } if len(m.Name) > 0 { - dAtA[i] = 0x1a - i++ + i -= len(m.Name) + copy(dAtA[i:], m.Name) i = encodeVarintDmworker(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) + i-- + dAtA[i] = 0x1a } - if len(m.Task) > 0 { - dAtA[i] = 0x22 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Task))) - i += copy(dAtA[i:], m.Task) + if m.Stage != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Stage)) + i-- + dAtA[i] = 0x10 + } + if m.Op != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Op)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *TaskLog) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -5997,57 +6330,67 @@ func (m *TaskLog) Marshal() (dAtA []byte, err error) { } func (m *TaskLog) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *TaskLog) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Id != 0 { - dAtA[i] = 0x8 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Id)) - } - if m.Task != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Task.Size())) - n19, err := m.Task.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n19 - } - if m.Ts != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintDmworker(dAtA, i, uint64(m.Ts)) + if len(m.Message) > 0 { + i -= len(m.Message) + copy(dAtA[i:], m.Message) + i = encodeVarintDmworker(dAtA, i, uint64(len(m.Message))) + i-- + dAtA[i] = 0x2a } if m.Success { - dAtA[i] = 0x20 - i++ + i-- if m.Success { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x20 } - if len(m.Message) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintDmworker(dAtA, i, uint64(len(m.Message))) - i += copy(dAtA[i:], m.Message) + if m.Ts != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Ts)) + i-- + dAtA[i] = 0x18 + } + if m.Task != nil { + { + size, err := m.Task.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintDmworker(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 + } + if m.Id != 0 { + i = encodeVarintDmworker(dAtA, i, uint64(m.Id)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func encodeVarintDmworker(dAtA []byte, offset int, v uint64) int { + offset -= sovDmworker(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *StartSubTaskRequest) Size() (n int) { if m == nil { @@ -7103,14 +7446,7 @@ func (m *TaskLog) Size() (n int) { } func sovDmworker(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozDmworker(x uint64) (n int) { return sovDmworker(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -7130,7 +7466,7 @@ func (m *StartSubTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7158,7 +7494,7 @@ func (m *StartSubTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7168,6 +7504,9 @@ func (m *StartSubTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7182,6 +7521,9 @@ func (m *StartSubTaskRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7209,7 +7551,7 @@ func (m *UpdateRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7237,7 +7579,7 @@ func (m *UpdateRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7247,6 +7589,9 @@ func (m *UpdateRelayRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7261,6 +7606,9 @@ func (m *UpdateRelayRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7288,7 +7636,7 @@ func (m *MigrateRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7316,7 +7664,7 @@ func (m *MigrateRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7326,6 +7674,9 @@ func (m *MigrateRelayRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7345,7 +7696,7 @@ func (m *MigrateRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.BinlogPos |= (uint32(b) & 0x7F) << shift + m.BinlogPos |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -7359,6 +7710,9 @@ func (m *MigrateRelayRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7386,7 +7740,7 @@ func (m *OperateSubTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7414,7 +7768,7 @@ func (m *OperateSubTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= (TaskOp(b) & 0x7F) << shift + m.Op |= TaskOp(b&0x7F) << shift if b < 0x80 { break } @@ -7433,7 +7787,7 @@ func (m *OperateSubTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7443,6 +7797,9 @@ func (m *OperateSubTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7457,6 +7814,9 @@ func (m *OperateSubTaskRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7484,7 +7844,7 @@ func (m *OperateSubTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7512,7 +7872,7 @@ func (m *OperateSubTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7521,6 +7881,9 @@ func (m *OperateSubTaskResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7545,7 +7908,7 @@ func (m *OperateSubTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= (TaskOp(b) & 0x7F) << shift + m.Op |= TaskOp(b&0x7F) << shift if b < 0x80 { break } @@ -7564,7 +7927,7 @@ func (m *OperateSubTaskResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LogID |= (int64(b) & 0x7F) << shift + m.LogID |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -7578,6 +7941,9 @@ func (m *OperateSubTaskResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7605,7 +7971,7 @@ func (m *QueryTaskOperationRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7633,7 +7999,7 @@ func (m *QueryTaskOperationRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7643,6 +8009,9 @@ func (m *QueryTaskOperationRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7662,7 +8031,7 @@ func (m *QueryTaskOperationRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.LogID |= (int64(b) & 0x7F) << shift + m.LogID |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -7676,6 +8045,9 @@ func (m *QueryTaskOperationRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7703,7 +8075,7 @@ func (m *QueryTaskOperationResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7731,7 +8103,7 @@ func (m *QueryTaskOperationResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7740,6 +8112,9 @@ func (m *QueryTaskOperationResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7764,7 +8139,7 @@ func (m *QueryTaskOperationResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -7773,6 +8148,9 @@ func (m *QueryTaskOperationResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7792,6 +8170,9 @@ func (m *QueryTaskOperationResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7819,7 +8200,7 @@ func (m *UpdateSubTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7847,7 +8228,7 @@ func (m *UpdateSubTaskRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7857,6 +8238,9 @@ func (m *UpdateSubTaskRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7871,6 +8255,9 @@ func (m *UpdateSubTaskRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7898,7 +8285,7 @@ func (m *QueryStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7926,7 +8313,7 @@ func (m *QueryStatusRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -7936,6 +8323,9 @@ func (m *QueryStatusRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -7950,6 +8340,9 @@ func (m *QueryStatusRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -7977,7 +8370,7 @@ func (m *QueryErrorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8005,7 +8398,7 @@ func (m *QueryErrorRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8015,6 +8408,9 @@ func (m *QueryErrorRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8029,6 +8425,9 @@ func (m *QueryErrorRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8056,7 +8455,7 @@ func (m *HandleSubTaskSQLsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8084,7 +8483,7 @@ func (m *HandleSubTaskSQLsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8094,6 +8493,9 @@ func (m *HandleSubTaskSQLsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8113,7 +8515,7 @@ func (m *HandleSubTaskSQLsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= (SQLOp(b) & 0x7F) << shift + m.Op |= SQLOp(b&0x7F) << shift if b < 0x80 { break } @@ -8132,7 +8534,7 @@ func (m *HandleSubTaskSQLsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8142,6 +8544,9 @@ func (m *HandleSubTaskSQLsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8161,7 +8566,7 @@ func (m *HandleSubTaskSQLsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8171,6 +8576,9 @@ func (m *HandleSubTaskSQLsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8190,7 +8598,7 @@ func (m *HandleSubTaskSQLsRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8200,6 +8608,9 @@ func (m *HandleSubTaskSQLsRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8214,6 +8625,9 @@ func (m *HandleSubTaskSQLsRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8241,7 +8655,7 @@ func (m *CommonWorkerResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8269,7 +8683,7 @@ func (m *CommonWorkerResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8289,7 +8703,7 @@ func (m *CommonWorkerResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8299,6 +8713,9 @@ func (m *CommonWorkerResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8318,7 +8735,7 @@ func (m *CommonWorkerResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8328,6 +8745,9 @@ func (m *CommonWorkerResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8342,6 +8762,9 @@ func (m *CommonWorkerResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8369,7 +8792,7 @@ func (m *QueryStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8397,7 +8820,7 @@ func (m *QueryStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8417,7 +8840,7 @@ func (m *QueryStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8427,6 +8850,9 @@ func (m *QueryStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8446,7 +8872,7 @@ func (m *QueryStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8456,6 +8882,9 @@ func (m *QueryStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8475,7 +8904,7 @@ func (m *QueryStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8484,6 +8913,9 @@ func (m *QueryStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8506,7 +8938,7 @@ func (m *QueryStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8515,6 +8947,9 @@ func (m *QueryStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8539,7 +8974,7 @@ func (m *QueryStatusResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8549,6 +8984,9 @@ func (m *QueryStatusResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8563,6 +9001,9 @@ func (m *QueryStatusResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8590,7 +9031,7 @@ func (m *QueryErrorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8618,7 +9059,7 @@ func (m *QueryErrorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8638,7 +9079,7 @@ func (m *QueryErrorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8648,6 +9089,9 @@ func (m *QueryErrorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8667,7 +9111,7 @@ func (m *QueryErrorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8677,6 +9121,9 @@ func (m *QueryErrorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8696,7 +9143,7 @@ func (m *QueryErrorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8705,6 +9152,9 @@ func (m *QueryErrorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8727,7 +9177,7 @@ func (m *QueryErrorResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8736,6 +9186,9 @@ func (m *QueryErrorResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8755,6 +9208,9 @@ func (m *QueryErrorResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8782,7 +9238,7 @@ func (m *CheckStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8810,7 +9266,7 @@ func (m *CheckStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8830,7 +9286,7 @@ func (m *CheckStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Total |= (int32(b) & 0x7F) << shift + m.Total |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -8849,7 +9305,7 @@ func (m *CheckStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Successful |= (int32(b) & 0x7F) << shift + m.Successful |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -8868,7 +9324,7 @@ func (m *CheckStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Failed |= (int32(b) & 0x7F) << shift + m.Failed |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -8887,7 +9343,7 @@ func (m *CheckStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Warning |= (int32(b) & 0x7F) << shift + m.Warning |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -8906,7 +9362,7 @@ func (m *CheckStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -8915,6 +9371,9 @@ func (m *CheckStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -8932,6 +9391,9 @@ func (m *CheckStatus) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -8959,7 +9421,7 @@ func (m *DumpStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -8982,6 +9444,9 @@ func (m *DumpStatus) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -9009,7 +9474,7 @@ func (m *LoadStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9037,7 +9502,7 @@ func (m *LoadStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.FinishedBytes |= (int64(b) & 0x7F) << shift + m.FinishedBytes |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9056,7 +9521,7 @@ func (m *LoadStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalBytes |= (int64(b) & 0x7F) << shift + m.TotalBytes |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9075,7 +9540,7 @@ func (m *LoadStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9085,6 +9550,9 @@ func (m *LoadStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9104,7 +9572,7 @@ func (m *LoadStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9114,6 +9582,9 @@ func (m *LoadStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9128,6 +9599,9 @@ func (m *LoadStatus) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -9155,7 +9629,7 @@ func (m *ShardingGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9183,7 +9657,7 @@ func (m *ShardingGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9193,6 +9667,9 @@ func (m *ShardingGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9212,7 +9689,7 @@ func (m *ShardingGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9222,6 +9699,9 @@ func (m *ShardingGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9241,7 +9721,7 @@ func (m *ShardingGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9251,6 +9731,9 @@ func (m *ShardingGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9270,7 +9753,7 @@ func (m *ShardingGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9280,6 +9763,9 @@ func (m *ShardingGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9299,7 +9785,7 @@ func (m *ShardingGroup) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9309,6 +9795,9 @@ func (m *ShardingGroup) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9323,6 +9812,9 @@ func (m *ShardingGroup) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -9350,7 +9842,7 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9378,7 +9870,7 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalEvents |= (int64(b) & 0x7F) << shift + m.TotalEvents |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9397,7 +9889,7 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.TotalTps |= (int64(b) & 0x7F) << shift + m.TotalTps |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9416,7 +9908,7 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.RecentTps |= (int64(b) & 0x7F) << shift + m.RecentTps |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -9435,7 +9927,7 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9445,6 +9937,9 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9464,7 +9959,7 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9474,6 +9969,9 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9493,7 +9991,7 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9503,6 +10001,9 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9522,7 +10023,7 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9532,6 +10033,9 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9551,7 +10055,7 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9561,6 +10065,9 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9580,7 +10087,7 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9589,6 +10096,9 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9611,7 +10121,7 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9626,6 +10136,9 @@ func (m *SyncStatus) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -9653,7 +10166,7 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9681,7 +10194,7 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9691,6 +10204,9 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9710,7 +10226,7 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9720,6 +10236,9 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9739,7 +10258,7 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9749,6 +10268,9 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9768,7 +10290,7 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9778,6 +10300,9 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9797,7 +10322,7 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9807,6 +10332,9 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9826,7 +10354,7 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9846,7 +10374,7 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Stage |= (Stage(b) & 0x7F) << shift + m.Stage |= Stage(b&0x7F) << shift if b < 0x80 { break } @@ -9865,7 +10393,7 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -9874,6 +10402,9 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9893,6 +10424,9 @@ func (m *RelayStatus) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -9920,7 +10454,7 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9948,7 +10482,7 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -9958,6 +10492,9 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -9977,7 +10514,7 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Stage |= (Stage(b) & 0x7F) << shift + m.Stage |= Stage(b&0x7F) << shift if b < 0x80 { break } @@ -9996,7 +10533,7 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Unit |= (UnitType(b) & 0x7F) << shift + m.Unit |= UnitType(b&0x7F) << shift if b < 0x80 { break } @@ -10015,7 +10552,7 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10024,6 +10561,9 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10048,7 +10588,7 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10058,6 +10598,9 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10077,7 +10620,7 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10087,6 +10630,9 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10106,7 +10652,7 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10115,6 +10661,9 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10138,7 +10687,7 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10147,6 +10696,9 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10170,7 +10722,7 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10179,6 +10731,9 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10202,7 +10757,7 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10211,6 +10766,9 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10229,6 +10787,9 @@ func (m *SubTaskStatus) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -10256,7 +10817,7 @@ func (m *SubTaskStatusList) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10284,7 +10845,7 @@ func (m *SubTaskStatusList) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10293,6 +10854,9 @@ func (m *SubTaskStatusList) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10310,6 +10874,9 @@ func (m *SubTaskStatusList) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -10337,7 +10904,7 @@ func (m *CheckError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10365,7 +10932,7 @@ func (m *CheckError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10375,6 +10942,9 @@ func (m *CheckError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10389,6 +10959,9 @@ func (m *CheckError) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -10416,7 +10989,7 @@ func (m *DumpError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10444,7 +11017,7 @@ func (m *DumpError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10454,6 +11027,9 @@ func (m *DumpError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10468,6 +11044,9 @@ func (m *DumpError) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -10495,7 +11074,7 @@ func (m *LoadError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10523,7 +11102,7 @@ func (m *LoadError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10533,6 +11112,9 @@ func (m *LoadError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10547,6 +11129,9 @@ func (m *LoadError) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -10574,7 +11159,7 @@ func (m *SyncSQLError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10602,7 +11187,7 @@ func (m *SyncSQLError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10612,6 +11197,9 @@ func (m *SyncSQLError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10631,7 +11219,7 @@ func (m *SyncSQLError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10641,6 +11229,9 @@ func (m *SyncSQLError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10660,7 +11251,7 @@ func (m *SyncSQLError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10670,6 +11261,9 @@ func (m *SyncSQLError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10684,6 +11278,9 @@ func (m *SyncSQLError) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -10711,7 +11308,7 @@ func (m *SyncError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10739,7 +11336,7 @@ func (m *SyncError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -10748,6 +11345,9 @@ func (m *SyncError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10765,6 +11365,9 @@ func (m *SyncError) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -10792,7 +11395,7 @@ func (m *RelayError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10820,7 +11423,7 @@ func (m *RelayError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10830,6 +11433,9 @@ func (m *RelayError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10844,6 +11450,9 @@ func (m *RelayError) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -10871,7 +11480,7 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10899,7 +11508,7 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10909,6 +11518,9 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10928,7 +11540,7 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Stage |= (Stage(b) & 0x7F) << shift + m.Stage |= Stage(b&0x7F) << shift if b < 0x80 { break } @@ -10947,7 +11559,7 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Unit |= (UnitType(b) & 0x7F) << shift + m.Unit |= UnitType(b&0x7F) << shift if b < 0x80 { break } @@ -10966,7 +11578,7 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -10976,6 +11588,9 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -10995,7 +11610,7 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11004,6 +11619,9 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11027,7 +11645,7 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11036,6 +11654,9 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11059,7 +11680,7 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11068,6 +11689,9 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11091,7 +11715,7 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11100,6 +11724,9 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11118,6 +11745,9 @@ func (m *SubTaskError) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11145,7 +11775,7 @@ func (m *SubTaskErrorList) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11173,7 +11803,7 @@ func (m *SubTaskErrorList) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11182,6 +11812,9 @@ func (m *SubTaskErrorList) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11199,6 +11832,9 @@ func (m *SubTaskErrorList) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11226,7 +11862,7 @@ func (m *ProcessResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11254,7 +11890,7 @@ func (m *ProcessResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11274,7 +11910,7 @@ func (m *ProcessResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11283,6 +11919,9 @@ func (m *ProcessResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11305,7 +11944,7 @@ func (m *ProcessResult) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11314,6 +11953,9 @@ func (m *ProcessResult) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11331,6 +11973,9 @@ func (m *ProcessResult) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11358,7 +12003,7 @@ func (m *TError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11386,7 +12031,7 @@ func (m *TError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ErrCode |= (int32(b) & 0x7F) << shift + m.ErrCode |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -11405,7 +12050,7 @@ func (m *TError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ErrClass |= (int32(b) & 0x7F) << shift + m.ErrClass |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -11424,7 +12069,7 @@ func (m *TError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ErrScope |= (int32(b) & 0x7F) << shift + m.ErrScope |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -11443,7 +12088,7 @@ func (m *TError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ErrLevel |= (int32(b) & 0x7F) << shift + m.ErrLevel |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -11462,7 +12107,7 @@ func (m *TError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11472,6 +12117,9 @@ func (m *TError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11491,7 +12139,7 @@ func (m *TError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11501,6 +12149,9 @@ func (m *TError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11515,6 +12166,9 @@ func (m *TError) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11542,7 +12196,7 @@ func (m *ProcessError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11570,7 +12224,7 @@ func (m *ProcessError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (ErrorType(b) & 0x7F) << shift + m.Type |= ErrorType(b&0x7F) << shift if b < 0x80 { break } @@ -11589,7 +12243,7 @@ func (m *ProcessError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11599,6 +12253,9 @@ func (m *ProcessError) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11618,7 +12275,7 @@ func (m *ProcessError) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -11626,7 +12283,10 @@ func (m *ProcessError) Unmarshal(dAtA []byte) error { if msglen < 0 { return ErrInvalidLengthDmworker } - postIndex := iNdEx + msglen + postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11646,6 +12306,9 @@ func (m *ProcessError) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11673,7 +12336,7 @@ func (m *DDLInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11701,7 +12364,7 @@ func (m *DDLInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11711,6 +12374,9 @@ func (m *DDLInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11730,7 +12396,7 @@ func (m *DDLInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11740,6 +12406,9 @@ func (m *DDLInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11759,7 +12428,7 @@ func (m *DDLInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11769,6 +12438,9 @@ func (m *DDLInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11788,7 +12460,7 @@ func (m *DDLInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11798,6 +12470,9 @@ func (m *DDLInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11812,6 +12487,9 @@ func (m *DDLInfo) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11839,7 +12517,7 @@ func (m *DDLLockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11867,7 +12545,7 @@ func (m *DDLLockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11877,6 +12555,9 @@ func (m *DDLLockInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11896,7 +12577,7 @@ func (m *DDLLockInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11906,6 +12587,9 @@ func (m *DDLLockInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -11920,6 +12604,9 @@ func (m *DDLLockInfo) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -11947,7 +12634,7 @@ func (m *ExecDDLRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11975,7 +12662,7 @@ func (m *ExecDDLRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -11985,6 +12672,9 @@ func (m *ExecDDLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12004,7 +12694,7 @@ func (m *ExecDDLRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12014,6 +12704,9 @@ func (m *ExecDDLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12033,7 +12726,7 @@ func (m *ExecDDLRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12053,7 +12746,7 @@ func (m *ExecDDLRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12063,6 +12756,9 @@ func (m *ExecDDLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12082,7 +12778,7 @@ func (m *ExecDDLRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12092,6 +12788,9 @@ func (m *ExecDDLRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12106,6 +12805,9 @@ func (m *ExecDDLRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -12133,7 +12835,7 @@ func (m *BreakDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12161,7 +12863,7 @@ func (m *BreakDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12171,6 +12873,9 @@ func (m *BreakDDLLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12190,7 +12895,7 @@ func (m *BreakDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12200,6 +12905,9 @@ func (m *BreakDDLLockRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12219,7 +12927,7 @@ func (m *BreakDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12239,7 +12947,7 @@ func (m *BreakDDLLockRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12254,6 +12962,9 @@ func (m *BreakDDLLockRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -12281,7 +12992,7 @@ func (m *SwitchRelayMasterRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12304,6 +13015,9 @@ func (m *SwitchRelayMasterRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -12331,7 +13045,7 @@ func (m *OperateRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12359,7 +13073,7 @@ func (m *OperateRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= (RelayOp(b) & 0x7F) << shift + m.Op |= RelayOp(b&0x7F) << shift if b < 0x80 { break } @@ -12373,6 +13087,9 @@ func (m *OperateRelayRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -12400,7 +13117,7 @@ func (m *OperateRelayResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12428,7 +13145,7 @@ func (m *OperateRelayResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= (RelayOp(b) & 0x7F) << shift + m.Op |= RelayOp(b&0x7F) << shift if b < 0x80 { break } @@ -12447,7 +13164,7 @@ func (m *OperateRelayResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12467,7 +13184,7 @@ func (m *OperateRelayResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12477,6 +13194,9 @@ func (m *OperateRelayResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12496,7 +13216,7 @@ func (m *OperateRelayResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12506,6 +13226,9 @@ func (m *OperateRelayResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12520,6 +13243,9 @@ func (m *OperateRelayResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -12547,7 +13273,7 @@ func (m *PurgeRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12575,7 +13301,7 @@ func (m *PurgeRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12595,7 +13321,7 @@ func (m *PurgeRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Time |= (int64(b) & 0x7F) << shift + m.Time |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -12614,7 +13340,7 @@ func (m *PurgeRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12624,6 +13350,9 @@ func (m *PurgeRelayRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12643,7 +13372,7 @@ func (m *PurgeRelayRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12653,6 +13382,9 @@ func (m *PurgeRelayRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12667,6 +13399,9 @@ func (m *PurgeRelayRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -12694,7 +13429,7 @@ func (m *QueryWorkerConfigRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12717,6 +13452,9 @@ func (m *QueryWorkerConfigRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -12744,7 +13482,7 @@ func (m *QueryWorkerConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12772,7 +13510,7 @@ func (m *QueryWorkerConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -12792,7 +13530,7 @@ func (m *QueryWorkerConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12802,6 +13540,9 @@ func (m *QueryWorkerConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12821,7 +13562,7 @@ func (m *QueryWorkerConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12831,6 +13572,9 @@ func (m *QueryWorkerConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12850,7 +13594,7 @@ func (m *QueryWorkerConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12860,6 +13604,9 @@ func (m *QueryWorkerConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12879,7 +13626,7 @@ func (m *QueryWorkerConfigResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12889,6 +13636,9 @@ func (m *QueryWorkerConfigResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -12903,6 +13653,9 @@ func (m *QueryWorkerConfigResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -12930,7 +13683,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -12958,7 +13711,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Op |= (TaskOp(b) & 0x7F) << shift + m.Op |= TaskOp(b&0x7F) << shift if b < 0x80 { break } @@ -12977,7 +13730,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Stage |= (Stage(b) & 0x7F) << shift + m.Stage |= Stage(b&0x7F) << shift if b < 0x80 { break } @@ -12996,7 +13749,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13006,6 +13759,9 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13025,7 +13781,7 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - byteLen |= (int(b) & 0x7F) << shift + byteLen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -13034,6 +13790,9 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + byteLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13051,6 +13810,9 @@ func (m *TaskMeta) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -13078,7 +13840,7 @@ func (m *TaskLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13106,7 +13868,7 @@ func (m *TaskLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Id |= (int64(b) & 0x7F) << shift + m.Id |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -13125,7 +13887,7 @@ func (m *TaskLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -13134,6 +13896,9 @@ func (m *TaskLog) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13158,7 +13923,7 @@ func (m *TaskLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ts |= (int64(b) & 0x7F) << shift + m.Ts |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -13177,7 +13942,7 @@ func (m *TaskLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -13197,7 +13962,7 @@ func (m *TaskLog) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -13207,6 +13972,9 @@ func (m *TaskLog) Unmarshal(dAtA []byte) error { return ErrInvalidLengthDmworker } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthDmworker + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -13221,6 +13989,9 @@ func (m *TaskLog) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthDmworker } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthDmworker + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -13236,6 +14007,7 @@ func (m *TaskLog) Unmarshal(dAtA []byte) error { func skipDmworker(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -13267,10 +14039,8 @@ func skipDmworker(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -13287,208 +14057,34 @@ func skipDmworker(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthDmworker } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowDmworker - } - 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 := skipDmworker(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupDmworker + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthDmworker + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthDmworker = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowDmworker = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthDmworker = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowDmworker = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupDmworker = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("dmworker.proto", fileDescriptor_dmworker_197b0c00ed0d06a5) } - -var fileDescriptor_dmworker_197b0c00ed0d06a5 = []byte{ - // 2372 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x19, 0x4d, 0x6f, 0x23, 0x59, - 0xd1, 0xdd, 0x6e, 0x3b, 0x76, 0xd9, 0xc9, 0x74, 0x5e, 0x66, 0x67, 0x3d, 0x66, 0x27, 0x84, 0x9e, - 0xd5, 0x6e, 0x36, 0x42, 0xd1, 0x6e, 0x00, 0x21, 0x01, 0x0b, 0xec, 0xc4, 0x99, 0x4c, 0xc0, 0x99, - 0x49, 0xda, 0x13, 0xe0, 0xb6, 0xea, 0xb4, 0x5f, 0x9c, 0x56, 0xda, 0xdd, 0x3d, 0xfd, 0x91, 0x4c, - 0x4e, 0x80, 0x38, 0x22, 0x21, 0x24, 0x4e, 0x88, 0x33, 0x37, 0x7e, 0x02, 0x77, 0x38, 0xee, 0x91, - 0x1b, 0x68, 0xe6, 0x17, 0x70, 0xe7, 0x80, 0xaa, 0xde, 0xeb, 0xee, 0xd7, 0x89, 0xed, 0x19, 0xa1, - 0xe1, 0x62, 0x75, 0x7d, 0xbc, 0x7a, 0x55, 0xf5, 0xea, 0x55, 0xd5, 0x2b, 0xc3, 0xca, 0x78, 0x7a, - 0x15, 0xc6, 0x17, 0x3c, 0xde, 0x8e, 0xe2, 0x30, 0x0d, 0x99, 0x1e, 0x9d, 0x5a, 0x9f, 0xc0, 0xda, - 0x28, 0x75, 0xe2, 0x74, 0x94, 0x9d, 0x3e, 0x77, 0x92, 0x0b, 0x9b, 0xbf, 0xc8, 0x78, 0x92, 0x32, - 0x06, 0x46, 0xea, 0x24, 0x17, 0x3d, 0x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, 0x8b, 0x83, 0x81, 0xf4, 0xde, 0x2c, - 0x12, 0x63, 0x22, 0xc5, 0x53, 0x44, 0x3f, 0xa9, 0x89, 0x24, 0xff, 0x31, 0x34, 0x5c, 0xcc, 0xbe, - 0xe4, 0x25, 0x59, 0x86, 0x94, 0x74, 0xfc, 0xa4, 0x66, 0x0b, 0x3a, 0xfb, 0x10, 0x8c, 0x71, 0x36, - 0x8d, 0xa4, 0xaf, 0x28, 0xa3, 0x97, 0xf9, 0xf0, 0x49, 0xcd, 0x26, 0x2a, 0x72, 0xf9, 0xa1, 0x33, - 0xee, 0xb5, 0x4b, 0xae, 0x32, 0x4d, 0x22, 0x17, 0x52, 0x91, 0x0b, 0x43, 0x94, 0xc2, 0x55, 0x72, - 0x95, 0xd9, 0x02, 0xb9, 0x90, 0xfa, 0xa8, 0x05, 0xcd, 0x44, 0x64, 0xdb, 0x1f, 0xc2, 0x6a, 0xc5, - 0xfb, 0x43, 0x2f, 0x21, 0x57, 0x09, 0x72, 0x4f, 0x9b, 0x57, 0x78, 0xf3, 0xf5, 0xeb, 0x00, 0x64, - 0x93, 0xa8, 0x50, 0xb2, 0xd2, 0x69, 0x65, 0x93, 0xf0, 0x00, 0xda, 0x68, 0xcb, 0x02, 0x32, 0x1a, - 0x31, 0x8f, 0x1c, 0x41, 0x97, 0xb4, 0x3f, 0x1e, 0xce, 0xe1, 0x60, 0x3b, 0x70, 0x57, 0xd4, 0x9d, - 0xa2, 0x07, 0xf7, 0xb0, 0xd1, 0x94, 0x17, 0x6b, 0x26, 0x0d, 0x33, 0x22, 0x47, 0x71, 0xa3, 0xe3, - 0x61, 0x9e, 0x92, 0x73, 0xd8, 0xfa, 0x0e, 0xb4, 0x71, 0x47, 0xb1, 0xdd, 0x26, 0x34, 0x89, 0x90, - 0xfb, 0xc1, 0x2c, 0xdc, 0x29, 0x15, 0xb2, 0x25, 0x1d, 0xdd, 0x50, 0x16, 0xde, 0x19, 0x86, 0xfc, - 0x51, 0x87, 0xae,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, 0xaf, 0xfd, 0xe3, 0xf5, 0x7a, 0xed, - 0xb4, 0x49, 0x7f, 0x41, 0x7d, 0xeb, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xde, 0x4f, 0x95, 0x7e, - 0x94, 0x1a, 0x00, 0x00, -} diff --git a/dm/pb/tracer.pb.go b/dm/pb/tracer.pb.go index 4646582de1..ed4e99f436 100644 --- a/dm/pb/tracer.pb.go +++ b/dm/pb/tracer.pb.go @@ -4,17 +4,16 @@ package pb import ( - "fmt" - - proto "github.com/gogo/protobuf/proto" - + context "context" + fmt "fmt" + io "io" math "math" + math_bits "math/bits" - context "golang.org/x/net/context" - + proto "github.com/gogo/protobuf/proto" grpc "google.golang.org/grpc" - - io "io" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" ) // Reference imports to suppress errors if they are not otherwise used. @@ -26,7 +25,7 @@ var _ = math.Inf // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type GetTSORequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` @@ -36,7 +35,7 @@ func (m *GetTSORequest) Reset() { *m = GetTSORequest{} } func (m *GetTSORequest) String() string { return proto.CompactTextString(m) } func (*GetTSORequest) ProtoMessage() {} func (*GetTSORequest) Descriptor() ([]byte, []int) { - return fileDescriptor_tracer_1adb952205408096, []int{0} + return fileDescriptor_6d422d7c66fbbd8f, []int{0} } func (m *GetTSORequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -46,15 +45,15 @@ func (m *GetTSORequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_GetTSORequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *GetTSORequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTSORequest.Merge(dst, src) +func (m *GetTSORequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTSORequest.Merge(m, src) } func (m *GetTSORequest) XXX_Size() int { return m.Size() @@ -82,7 +81,7 @@ func (m *GetTSOResponse) Reset() { *m = GetTSOResponse{} } func (m *GetTSOResponse) String() string { return proto.CompactTextString(m) } func (*GetTSOResponse) ProtoMessage() {} func (*GetTSOResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_tracer_1adb952205408096, []int{1} + return fileDescriptor_6d422d7c66fbbd8f, []int{1} } func (m *GetTSOResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -92,15 +91,15 @@ func (m *GetTSOResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_GetTSOResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *GetTSOResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_GetTSOResponse.Merge(dst, src) +func (m *GetTSOResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTSOResponse.Merge(m, src) } func (m *GetTSOResponse) XXX_Size() int { return m.Size() @@ -141,7 +140,7 @@ func (m *CommonUploadResponse) Reset() { *m = CommonUploadResponse{} } func (m *CommonUploadResponse) String() string { return proto.CompactTextString(m) } func (*CommonUploadResponse) ProtoMessage() {} func (*CommonUploadResponse) Descriptor() ([]byte, []int) { - return fileDescriptor_tracer_1adb952205408096, []int{2} + return fileDescriptor_6d422d7c66fbbd8f, []int{2} } func (m *CommonUploadResponse) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -151,15 +150,15 @@ func (m *CommonUploadResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte return xxx_messageInfo_CommonUploadResponse.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *CommonUploadResponse) XXX_Merge(src proto.Message) { - xxx_messageInfo_CommonUploadResponse.Merge(dst, src) +func (m *CommonUploadResponse) XXX_Merge(src proto.Message) { + xxx_messageInfo_CommonUploadResponse.Merge(m, src) } func (m *CommonUploadResponse) XXX_Size() int { return m.Size() @@ -185,14 +184,14 @@ func (m *CommonUploadResponse) GetMsg() string { } type UploadSyncerBinlogEventRequest struct { - Events []*SyncerBinlogEvent `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"` + Events []*SyncerBinlogEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` } func (m *UploadSyncerBinlogEventRequest) Reset() { *m = UploadSyncerBinlogEventRequest{} } func (m *UploadSyncerBinlogEventRequest) String() string { return proto.CompactTextString(m) } func (*UploadSyncerBinlogEventRequest) ProtoMessage() {} func (*UploadSyncerBinlogEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_tracer_1adb952205408096, []int{3} + return fileDescriptor_6d422d7c66fbbd8f, []int{3} } func (m *UploadSyncerBinlogEventRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -202,15 +201,15 @@ func (m *UploadSyncerBinlogEventRequest) XXX_Marshal(b []byte, deterministic boo return xxx_messageInfo_UploadSyncerBinlogEventRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *UploadSyncerBinlogEventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UploadSyncerBinlogEventRequest.Merge(dst, src) +func (m *UploadSyncerBinlogEventRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UploadSyncerBinlogEventRequest.Merge(m, src) } func (m *UploadSyncerBinlogEventRequest) XXX_Size() int { return m.Size() @@ -229,14 +228,14 @@ func (m *UploadSyncerBinlogEventRequest) GetEvents() []*SyncerBinlogEvent { } type UploadSyncerJobEventRequest struct { - Events []*SyncerJobEvent `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"` + Events []*SyncerJobEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"` } func (m *UploadSyncerJobEventRequest) Reset() { *m = UploadSyncerJobEventRequest{} } func (m *UploadSyncerJobEventRequest) String() string { return proto.CompactTextString(m) } func (*UploadSyncerJobEventRequest) ProtoMessage() {} func (*UploadSyncerJobEventRequest) Descriptor() ([]byte, []int) { - return fileDescriptor_tracer_1adb952205408096, []int{4} + return fileDescriptor_6d422d7c66fbbd8f, []int{4} } func (m *UploadSyncerJobEventRequest) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -246,15 +245,15 @@ func (m *UploadSyncerJobEventRequest) XXX_Marshal(b []byte, deterministic bool) return xxx_messageInfo_UploadSyncerJobEventRequest.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *UploadSyncerJobEventRequest) XXX_Merge(src proto.Message) { - xxx_messageInfo_UploadSyncerJobEventRequest.Merge(dst, src) +func (m *UploadSyncerJobEventRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_UploadSyncerJobEventRequest.Merge(m, src) } func (m *UploadSyncerJobEventRequest) XXX_Size() int { return m.Size() @@ -280,6 +279,33 @@ func init() { proto.RegisterType((*UploadSyncerJobEventRequest)(nil), "pb.UploadSyncerJobEventRequest") } +func init() { proto.RegisterFile("tracer.proto", fileDescriptor_6d422d7c66fbbd8f) } + +var fileDescriptor_6d422d7c66fbbd8f = []byte{ + // 325 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x41, 0x4b, 0xc3, 0x30, + 0x18, 0x86, 0x9b, 0x16, 0x8a, 0x7e, 0xea, 0xd0, 0x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e, 0xd3, + 0x3c, 0x6a, 0x84, 0x7e, 0xe3, 0xb7, 0x3a, 0x17, 0xf1, 0x3b, 0x38, 0x5d, 0x06, 0xb6, 0xa5, 0xbf, + 0x42, 0x3b, 0x2b, 0xd0, 0xf0, 0x87, 0xb6, 0x90, 0xe6, 0x8a, 0xe6, 0x17, 0x01, 0xb7, 0x97, 0x56, + 0x8c, 0x17, 0xe0, 0x66, 0xa5, 0xe1, 0x81, 0x31, 0xac, 0x34, 0x5c, 0xc1, 0xe5, 0x55, 0xd6, 0x00, + 0xb7, 0xf0, 0x01, 0x4e, 0xfe, 0x48, 0x86, 0xdc, 0x18, 0x36, 0xc7, 0xae, 0x50, 0xa3, 0x59, 0x57, + 0x2e, 0xb7, 0xb0, 0x0b, 0xe5, 0x75, 0x19, 0xb1, 0x5a, 0xe4, 0x16, 0xd2, 0x6f, 0x82, 0xb6, 0xe8, + 0x7b, 0xcc, 0xc8, 0x2c, 0x66, 0xe4, 0x33, 0x66, 0xe4, 0x2d, 0x61, 0xd6, 0x2c, 0x61, 0xd6, 0x47, + 0xc2, 0x2c, 0xdf, 0x4d, 0x7f, 0xd6, 0xe5, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x89, 0x04, 0x0e, + 0x15, 0x82, 0x02, 0x00, 0x00, +} + // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn @@ -339,6 +365,20 @@ type TracerServer interface { UploadSyncerJobEvent(context.Context, *UploadSyncerJobEventRequest) (*CommonUploadResponse, error) } +// UnimplementedTracerServer can be embedded to have forward compatible implementations. +type UnimplementedTracerServer struct { +} + +func (*UnimplementedTracerServer) GetTSO(ctx context.Context, req *GetTSORequest) (*GetTSOResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetTSO not implemented") +} +func (*UnimplementedTracerServer) UploadSyncerBinlogEvent(ctx context.Context, req *UploadSyncerBinlogEventRequest) (*CommonUploadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UploadSyncerBinlogEvent not implemented") +} +func (*UnimplementedTracerServer) UploadSyncerJobEvent(ctx context.Context, req *UploadSyncerJobEventRequest) (*CommonUploadResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method UploadSyncerJobEvent not implemented") +} + func RegisterTracerServer(s *grpc.Server, srv TracerServer) { s.RegisterService(&_Tracer_serviceDesc, srv) } @@ -421,7 +461,7 @@ var _Tracer_serviceDesc = grpc.ServiceDesc{ func (m *GetTSORequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -429,23 +469,29 @@ func (m *GetTSORequest) Marshal() (dAtA []byte, err error) { } func (m *GetTSORequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetTSORequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Id) > 0 { - dAtA[i] = 0xa - i++ + i -= len(m.Id) + copy(dAtA[i:], m.Id) i = encodeVarintTracer(dAtA, i, uint64(len(m.Id))) - i += copy(dAtA[i:], m.Id) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *GetTSOResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -453,38 +499,44 @@ func (m *GetTSOResponse) Marshal() (dAtA []byte, err error) { } func (m *GetTSOResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *GetTSOResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if m.Ts != 0 { + i = encodeVarintTracer(dAtA, i, uint64(m.Ts)) + i-- + dAtA[i] = 0x18 + } + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintTracer(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x12 + } if m.Result { - dAtA[i] = 0x8 - i++ + i-- if m.Result { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintTracer(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) - } - if m.Ts != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintTracer(dAtA, i, uint64(m.Ts)) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *CommonUploadResponse) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -492,33 +544,39 @@ func (m *CommonUploadResponse) Marshal() (dAtA []byte, err error) { } func (m *CommonUploadResponse) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *CommonUploadResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l + if len(m.Msg) > 0 { + i -= len(m.Msg) + copy(dAtA[i:], m.Msg) + i = encodeVarintTracer(dAtA, i, uint64(len(m.Msg))) + i-- + dAtA[i] = 0x12 + } if m.Result { - dAtA[i] = 0x8 - i++ + i-- if m.Result { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if len(m.Msg) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintTracer(dAtA, i, uint64(len(m.Msg))) - i += copy(dAtA[i:], m.Msg) + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *UploadSyncerBinlogEventRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -526,29 +584,36 @@ func (m *UploadSyncerBinlogEventRequest) Marshal() (dAtA []byte, err error) { } func (m *UploadSyncerBinlogEventRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UploadSyncerBinlogEventRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Events) > 0 { - for _, msg := range m.Events { - dAtA[i] = 0xa - i++ - i = encodeVarintTracer(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracer(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func (m *UploadSyncerJobEventRequest) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -556,33 +621,42 @@ func (m *UploadSyncerJobEventRequest) Marshal() (dAtA []byte, err error) { } func (m *UploadSyncerJobEventRequest) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *UploadSyncerJobEventRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l if len(m.Events) > 0 { - for _, msg := range m.Events { - dAtA[i] = 0xa - i++ - i = encodeVarintTracer(dAtA, i, uint64(msg.Size())) - n, err := msg.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + for iNdEx := len(m.Events) - 1; iNdEx >= 0; iNdEx-- { + { + size, err := m.Events[iNdEx].MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracer(dAtA, i, uint64(size)) } - i += n + i-- + dAtA[i] = 0xa } } - return i, nil + return len(dAtA) - i, nil } func encodeVarintTracer(dAtA []byte, offset int, v uint64) int { + offset -= sovTracer(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *GetTSORequest) Size() (n int) { if m == nil { @@ -663,14 +737,7 @@ func (m *UploadSyncerJobEventRequest) Size() (n int) { } func sovTracer(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozTracer(x uint64) (n int) { return sovTracer(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -690,7 +757,7 @@ func (m *GetTSORequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -718,7 +785,7 @@ func (m *GetTSORequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -728,6 +795,9 @@ func (m *GetTSORequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracer } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTracer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -742,6 +812,9 @@ func (m *GetTSORequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTracer } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTracer + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -769,7 +842,7 @@ func (m *GetTSOResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -797,7 +870,7 @@ func (m *GetTSOResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -817,7 +890,7 @@ func (m *GetTSOResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -827,6 +900,9 @@ func (m *GetTSOResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracer } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTracer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -846,7 +922,7 @@ func (m *GetTSOResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Ts |= (int64(b) & 0x7F) << shift + m.Ts |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -860,6 +936,9 @@ func (m *GetTSOResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTracer } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTracer + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -887,7 +966,7 @@ func (m *CommonUploadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -915,7 +994,7 @@ func (m *CommonUploadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -935,7 +1014,7 @@ func (m *CommonUploadResponse) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -945,6 +1024,9 @@ func (m *CommonUploadResponse) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracer } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTracer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -959,6 +1041,9 @@ func (m *CommonUploadResponse) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTracer } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTracer + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -986,7 +1071,7 @@ func (m *UploadSyncerBinlogEventRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1014,7 +1099,7 @@ func (m *UploadSyncerBinlogEventRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1023,6 +1108,9 @@ func (m *UploadSyncerBinlogEventRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracer } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1040,6 +1128,9 @@ func (m *UploadSyncerBinlogEventRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTracer } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTracer + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1067,7 +1158,7 @@ func (m *UploadSyncerJobEventRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1095,7 +1186,7 @@ func (m *UploadSyncerJobEventRequest) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1104,6 +1195,9 @@ func (m *UploadSyncerJobEventRequest) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracer } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1121,6 +1215,9 @@ func (m *UploadSyncerJobEventRequest) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTracer } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTracer + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1136,6 +1233,7 @@ func (m *UploadSyncerJobEventRequest) Unmarshal(dAtA []byte) error { func skipTracer(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1167,10 +1265,8 @@ func skipTracer(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1187,80 +1283,34 @@ func skipTracer(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTracer } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTracer - } - 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 := skipTracer(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTracer + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthTracer + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthTracer = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTracer = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthTracer = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTracer = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTracer = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("tracer.proto", fileDescriptor_tracer_1adb952205408096) } - -var fileDescriptor_tracer_1adb952205408096 = []byte{ - // 325 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0x41, 0x4b, 0xc3, 0x30, - 0x18, 0x86, 0x9b, 0x16, 0x8a, 0x7e, 0xea, 0xd0, 0xcf, 0xa9, 0x61, 0x42, 0x36, 0x72, 0x1a, 0x82, - 0x03, 0xe7, 0x1f, 0x90, 0x89, 0x88, 0xbb, 0x0c, 0xba, 0x79, 0xf0, 0x24, 0xab, 0x0b, 0x63, 0xb0, - 0x35, 0xb5, 0xc9, 0x04, 0xff, 0x85, 0x3f, 0xcb, 0xe3, 0x8e, 0x1e, 0xa5, 0x3d, 0xfa, 0x27, 0x24, - 0x6d, 0x37, 0xb7, 0x3a, 0x07, 0xde, 0xf2, 0x7d, 0x79, 0xdf, 0x87, 0xbc, 0x2f, 0x81, 0x5d, 0x1d, - 0xf5, 0x9f, 0x44, 0xd4, 0x08, 0x23, 0xa9, 0x25, 0xda, 0xa1, 0x5f, 0x39, 0xcc, 0x36, 0x8f, 0xea, - 0x35, 0x58, 0x5c, 0xf0, 0x2a, 0xec, 0xdd, 0x0a, 0xdd, 0xeb, 0x76, 0x3c, 0xf1, 0x3c, 0x15, 0x4a, - 0x63, 0x09, 0xec, 0xd1, 0x80, 0x92, 0x1a, 0xa9, 0x6f, 0x7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6, 0x47, - 0xc2, 0x2c, 0xdf, 0x4d, 0x7f, 0xd6, 0xe5, 0x77, 0x00, 0x00, 0x00, 0xff, 0xff, 0x89, 0x04, 0x0e, - 0x15, 0x82, 0x02, 0x00, 0x00, -} diff --git a/dm/pb/tracer_base.pb.go b/dm/pb/tracer_base.pb.go index 77e5367bc3..176eb34bc3 100644 --- a/dm/pb/tracer_base.pb.go +++ b/dm/pb/tracer_base.pb.go @@ -4,13 +4,12 @@ package pb import ( - "fmt" - - proto "github.com/gogo/protobuf/proto" - + fmt "fmt" + io "io" math "math" + math_bits "math/bits" - io "io" + proto "github.com/gogo/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. @@ -22,7 +21,7 @@ var _ = math.Inf // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type TraceType int32 @@ -37,6 +36,7 @@ var TraceType_name = map[int32]string{ 1: "BinlogEvent", 2: "JobEvent", } + var TraceType_value = map[string]int32{ "DummyEvent": 0, "BinlogEvent": 1, @@ -46,8 +46,9 @@ var TraceType_value = map[string]int32{ func (x TraceType) String() string { return proto.EnumName(TraceType_name, int32(x)) } + func (TraceType) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_tracer_base_eb78fe39c9a10136, []int{0} + return fileDescriptor_be09eaf025e7bb5c, []int{0} } type BaseEvent struct { @@ -63,7 +64,7 @@ func (m *BaseEvent) Reset() { *m = BaseEvent{} } func (m *BaseEvent) String() string { return proto.CompactTextString(m) } func (*BaseEvent) ProtoMessage() {} func (*BaseEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_tracer_base_eb78fe39c9a10136, []int{0} + return fileDescriptor_be09eaf025e7bb5c, []int{0} } func (m *BaseEvent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -73,15 +74,15 @@ func (m *BaseEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { return xxx_messageInfo_BaseEvent.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *BaseEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_BaseEvent.Merge(dst, src) +func (m *BaseEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_BaseEvent.Merge(m, src) } func (m *BaseEvent) XXX_Size() int { return m.Size() @@ -135,13 +136,36 @@ func (m *BaseEvent) GetType() TraceType { } func init() { - proto.RegisterType((*BaseEvent)(nil), "pb.BaseEvent") proto.RegisterEnum("pb.TraceType", TraceType_name, TraceType_value) + proto.RegisterType((*BaseEvent)(nil), "pb.BaseEvent") +} + +func init() { proto.RegisterFile("tracer_base.proto", fileDescriptor_be09eaf025e7bb5c) } + +var fileDescriptor_be09eaf025e7bb5c = []byte{ + // 246 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x90, 0xb1, 0x4e, 0x84, 0x40, + 0x10, 0x86, 0x19, 0xe0, 0xce, 0x63, 0xd4, 0xf3, 0x9c, 0x6a, 0x63, 0xb1, 0x41, 0x2b, 0x62, 0x41, + 0xa1, 0x9d, 0x25, 0xc1, 0xe2, 0x2c, 0xc9, 0xf5, 0x86, 0x35, 0xeb, 0x85, 0x04, 0xd8, 0x0d, 0xec, + 0x99, 0xf0, 0x16, 0x3e, 0x84, 0x0f, 0x63, 0x79, 0xa5, 0xa5, 0x81, 0x17, 0x31, 0x2c, 0x1e, 0xdd, + 0xff, 0xfd, 0x5f, 0x76, 0x67, 0x32, 0x78, 0x6d, 0x9a, 0xfc, 0x4d, 0x36, 0xaf, 0x22, 0x6f, 0x65, + 0xac, 0x1b, 0x65, 0x14, 0xb9, 0x5a, 0xdc, 0x7d, 0x01, 0x06, 0x49, 0xde, 0xca, 0xe7, 0x0f, 0x59, + 0x1b, 0xba, 0xc1, 0xd5, 0x7b, 0x51, 0xca, 0x3a, 0xaf, 0x24, 0x83, 0x10, 0xa2, 0x20, 0x9b, 0x99, + 0x08, 0xfd, 0xb2, 0xa8, 0x25, 0x73, 0x43, 0x88, 0x16, 0x99, 0xcd, 0xb4, 0x41, 0xcf, 0xb4, 0x8a, + 0x79, 0x21, 0x44, 0x5e, 0x36, 0x46, 0x62, 0x78, 0x66, 0x07, 0x6d, 0x53, 0xe6, 0xdb, 0x0f, 0x4e, + 0x38, 0x9a, 0x7d, 0xa3, 0x0e, 0x7a, 0x9b, 0xb2, 0xc5, 0x64, 0xfe, 0x91, 0x6e, 0xd1, 0x37, 0x9d, + 0x96, 0x6c, 0x19, 0x42, 0xb4, 0x7e, 0xb8, 0x8c, 0xb5, 0x88, 0x77, 0xe3, 0xa3, 0x5d, 0xa7, 0x65, + 0x66, 0xd5, 0xfd, 0x13, 0x06, 0x73, 0x45, 0x6b, 0xc4, 0xf4, 0x50, 0x55, 0x9d, 0xdd, 0x79, 0xe3, + 0xd0, 0x15, 0x9e, 0x27, 0x45, 0x5d, 0xaa, 0xfd, 0x54, 0x00, 0x5d, 0xe0, 0xea, 0x45, 0x89, 0x89, + 0xdc, 0x84, 0x7d, 0xf7, 0x1c, 0x8e, 0x3d, 0x87, 0xdf, 0x9e, 0xc3, 0xe7, 0xc0, 0x9d, 0xe3, 0xc0, + 0x9d, 0x9f, 0x81, 0x3b, 0x62, 0x69, 0xef, 0xf0, 0xf8, 0x17, 0x00, 0x00, 0xff, 0xff, 0x25, 0x73, + 0x7a, 0x49, 0x1c, 0x01, 0x00, 0x00, } + func (m *BaseEvent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -149,54 +173,64 @@ func (m *BaseEvent) Marshal() (dAtA []byte, err error) { } func (m *BaseEvent) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *BaseEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Filename) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintTracerBase(dAtA, i, uint64(len(m.Filename))) - i += copy(dAtA[i:], m.Filename) - } - if m.Line != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintTracerBase(dAtA, i, uint64(m.Line)) + if m.Type != 0 { + i = encodeVarintTracerBase(dAtA, i, uint64(m.Type)) + i-- + dAtA[i] = 0x30 } - if m.Tso != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintTracerBase(dAtA, i, uint64(m.Tso)) + if len(m.GroupID) > 0 { + i -= len(m.GroupID) + copy(dAtA[i:], m.GroupID) + i = encodeVarintTracerBase(dAtA, i, uint64(len(m.GroupID))) + i-- + dAtA[i] = 0x2a } if len(m.TraceID) > 0 { - dAtA[i] = 0x22 - i++ + i -= len(m.TraceID) + copy(dAtA[i:], m.TraceID) i = encodeVarintTracerBase(dAtA, i, uint64(len(m.TraceID))) - i += copy(dAtA[i:], m.TraceID) + i-- + dAtA[i] = 0x22 } - if len(m.GroupID) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintTracerBase(dAtA, i, uint64(len(m.GroupID))) - i += copy(dAtA[i:], m.GroupID) + if m.Tso != 0 { + i = encodeVarintTracerBase(dAtA, i, uint64(m.Tso)) + i-- + dAtA[i] = 0x18 } - if m.Type != 0 { - dAtA[i] = 0x30 - i++ - i = encodeVarintTracerBase(dAtA, i, uint64(m.Type)) + if m.Line != 0 { + i = encodeVarintTracerBase(dAtA, i, uint64(m.Line)) + i-- + dAtA[i] = 0x10 } - return i, nil + if len(m.Filename) > 0 { + i -= len(m.Filename) + copy(dAtA[i:], m.Filename) + i = encodeVarintTracerBase(dAtA, i, uint64(len(m.Filename))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func encodeVarintTracerBase(dAtA []byte, offset int, v uint64) int { + offset -= sovTracerBase(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *BaseEvent) Size() (n int) { if m == nil { @@ -229,14 +263,7 @@ func (m *BaseEvent) Size() (n int) { } func sovTracerBase(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozTracerBase(x uint64) (n int) { return sovTracerBase(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -256,7 +283,7 @@ func (m *BaseEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -284,7 +311,7 @@ func (m *BaseEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -294,6 +321,9 @@ func (m *BaseEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerBase } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTracerBase + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -313,7 +343,7 @@ func (m *BaseEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Line |= (int32(b) & 0x7F) << shift + m.Line |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -332,7 +362,7 @@ func (m *BaseEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Tso |= (int64(b) & 0x7F) << shift + m.Tso |= int64(b&0x7F) << shift if b < 0x80 { break } @@ -351,7 +381,7 @@ func (m *BaseEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -361,6 +391,9 @@ func (m *BaseEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerBase } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTracerBase + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -380,7 +413,7 @@ func (m *BaseEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -390,6 +423,9 @@ func (m *BaseEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerBase } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTracerBase + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -409,7 +445,7 @@ func (m *BaseEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Type |= (TraceType(b) & 0x7F) << shift + m.Type |= TraceType(b&0x7F) << shift if b < 0x80 { break } @@ -423,6 +459,9 @@ func (m *BaseEvent) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTracerBase } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTracerBase + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -438,6 +477,7 @@ func (m *BaseEvent) Unmarshal(dAtA []byte) error { func skipTracerBase(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -469,10 +509,8 @@ func skipTracerBase(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -489,75 +527,34 @@ func skipTracerBase(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTracerBase } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTracerBase - } - 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 := skipTracerBase(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTracerBase + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthTracerBase + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthTracerBase = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTracerBase = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthTracerBase = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTracerBase = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTracerBase = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("tracer_base.proto", fileDescriptor_tracer_base_eb78fe39c9a10136) } - -var fileDescriptor_tracer_base_eb78fe39c9a10136 = []byte{ - // 246 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x3c, 0x90, 0xb1, 0x4e, 0x84, 0x40, - 0x10, 0x86, 0x19, 0xe0, 0xce, 0x63, 0xd4, 0xf3, 0x9c, 0x6a, 0x63, 0xb1, 0x41, 0x2b, 0x62, 0x41, - 0xa1, 0x9d, 0x25, 0xc1, 0xe2, 0x2c, 0xc9, 0xf5, 0x86, 0x35, 0xeb, 0x85, 0x04, 0xd8, 0x0d, 0xec, - 0x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xf0, 0xf8, 0x17, 0x00, 0x00, 0xff, 0xff, 0x25, 0x73, - 0x7a, 0x49, 0x1c, 0x01, 0x00, 0x00, -} diff --git a/dm/pb/tracer_syncer.pb.go b/dm/pb/tracer_syncer.pb.go index 864be1a33a..136951eb84 100644 --- a/dm/pb/tracer_syncer.pb.go +++ b/dm/pb/tracer_syncer.pb.go @@ -4,13 +4,12 @@ package pb import ( - "fmt" - - proto "github.com/gogo/protobuf/proto" - + fmt "fmt" + io "io" math "math" + math_bits "math/bits" - io "io" + proto "github.com/gogo/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. @@ -22,7 +21,7 @@ var _ = math.Inf // 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.GoGoProtoPackageIsVersion2 // please upgrade the proto package +const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package type SyncerJobState int32 @@ -39,6 +38,7 @@ var SyncerJobState_name = map[int32]string{ 2: "success", 3: "error", } + var SyncerJobState_value = map[string]int32{ "init": 0, "queued": 1, @@ -49,8 +49,9 @@ var SyncerJobState_value = map[string]int32{ func (x SyncerJobState) String() string { return proto.EnumName(SyncerJobState_name, int32(x)) } + func (SyncerJobState) EnumDescriptor() ([]byte, []int) { - return fileDescriptor_tracer_syncer_1170dba324220d8f, []int{0} + return fileDescriptor_aa4988ddb6d489fb, []int{0} } type MySQLPosition struct { @@ -62,7 +63,7 @@ func (m *MySQLPosition) Reset() { *m = MySQLPosition{} } func (m *MySQLPosition) String() string { return proto.CompactTextString(m) } func (*MySQLPosition) ProtoMessage() {} func (*MySQLPosition) Descriptor() ([]byte, []int) { - return fileDescriptor_tracer_syncer_1170dba324220d8f, []int{0} + return fileDescriptor_aa4988ddb6d489fb, []int{0} } func (m *MySQLPosition) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -72,15 +73,15 @@ func (m *MySQLPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error return xxx_messageInfo_MySQLPosition.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *MySQLPosition) XXX_Merge(src proto.Message) { - xxx_messageInfo_MySQLPosition.Merge(dst, src) +func (m *MySQLPosition) XXX_Merge(src proto.Message) { + xxx_messageInfo_MySQLPosition.Merge(m, src) } func (m *MySQLPosition) XXX_Size() int { return m.Size() @@ -108,15 +109,15 @@ func (m *MySQLPosition) GetPos() uint32 { type SyncerState struct { SafeMode bool `protobuf:"varint,1,opt,name=safeMode,proto3" json:"safeMode,omitempty"` TryReSync bool `protobuf:"varint,2,opt,name=tryReSync,proto3" json:"tryReSync,omitempty"` - LastPos *MySQLPosition `protobuf:"bytes,3,opt,name=lastPos" json:"lastPos,omitempty"` - CurrentPos *MySQLPosition `protobuf:"bytes,4,opt,name=currentPos" json:"currentPos,omitempty"` + LastPos *MySQLPosition `protobuf:"bytes,3,opt,name=lastPos,proto3" json:"lastPos,omitempty"` + CurrentPos *MySQLPosition `protobuf:"bytes,4,opt,name=currentPos,proto3" json:"currentPos,omitempty"` } func (m *SyncerState) Reset() { *m = SyncerState{} } func (m *SyncerState) String() string { return proto.CompactTextString(m) } func (*SyncerState) ProtoMessage() {} func (*SyncerState) Descriptor() ([]byte, []int) { - return fileDescriptor_tracer_syncer_1170dba324220d8f, []int{1} + return fileDescriptor_aa4988ddb6d489fb, []int{1} } func (m *SyncerState) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -126,15 +127,15 @@ func (m *SyncerState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_SyncerState.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *SyncerState) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncerState.Merge(dst, src) +func (m *SyncerState) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncerState.Merge(m, src) } func (m *SyncerState) XXX_Size() int { return m.Size() @@ -182,7 +183,7 @@ func (m *ExecDDLInfo) Reset() { *m = ExecDDLInfo{} } func (m *ExecDDLInfo) String() string { return proto.CompactTextString(m) } func (*ExecDDLInfo) ProtoMessage() {} func (*ExecDDLInfo) Descriptor() ([]byte, []int) { - return fileDescriptor_tracer_syncer_1170dba324220d8f, []int{2} + return fileDescriptor_aa4988ddb6d489fb, []int{2} } func (m *ExecDDLInfo) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -192,15 +193,15 @@ func (m *ExecDDLInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) return xxx_messageInfo_ExecDDLInfo.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *ExecDDLInfo) XXX_Merge(src proto.Message) { - xxx_messageInfo_ExecDDLInfo.Merge(dst, src) +func (m *ExecDDLInfo) XXX_Merge(src proto.Message) { + xxx_messageInfo_ExecDDLInfo.Merge(m, src) } func (m *ExecDDLInfo) XXX_Size() int { return m.Size() @@ -226,8 +227,8 @@ func (m *ExecDDLInfo) GetExec() bool { } type SyncerBinlogEvent struct { - Base *BaseEvent `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"` - State *SyncerState `protobuf:"bytes,2,opt,name=state" json:"state,omitempty"` + Base *BaseEvent `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` + State *SyncerState `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` EventType int32 `protobuf:"varint,3,opt,name=eventType,proto3" json:"eventType,omitempty"` OpType int32 `protobuf:"varint,4,opt,name=opType,proto3" json:"opType,omitempty"` } @@ -236,7 +237,7 @@ func (m *SyncerBinlogEvent) Reset() { *m = SyncerBinlogEvent{} } func (m *SyncerBinlogEvent) String() string { return proto.CompactTextString(m) } func (*SyncerBinlogEvent) ProtoMessage() {} func (*SyncerBinlogEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_tracer_syncer_1170dba324220d8f, []int{3} + return fileDescriptor_aa4988ddb6d489fb, []int{3} } func (m *SyncerBinlogEvent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -246,15 +247,15 @@ func (m *SyncerBinlogEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, e return xxx_messageInfo_SyncerBinlogEvent.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *SyncerBinlogEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncerBinlogEvent.Merge(dst, src) +func (m *SyncerBinlogEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncerBinlogEvent.Merge(m, src) } func (m *SyncerBinlogEvent) XXX_Size() int { return m.Size() @@ -294,14 +295,14 @@ func (m *SyncerBinlogEvent) GetOpType() int32 { } type SyncerJobEvent struct { - Base *BaseEvent `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"` + Base *BaseEvent `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"` OpType int32 `protobuf:"varint,2,opt,name=opType,proto3" json:"opType,omitempty"` - Pos *MySQLPosition `protobuf:"bytes,3,opt,name=pos" json:"pos,omitempty"` - CurrentPos *MySQLPosition `protobuf:"bytes,4,opt,name=currentPos" json:"currentPos,omitempty"` + Pos *MySQLPosition `protobuf:"bytes,3,opt,name=pos,proto3" json:"pos,omitempty"` + CurrentPos *MySQLPosition `protobuf:"bytes,4,opt,name=currentPos,proto3" json:"currentPos,omitempty"` Sql string `protobuf:"bytes,5,opt,name=sql,proto3" json:"sql,omitempty"` - Ddls []string `protobuf:"bytes,6,rep,name=ddls" json:"ddls,omitempty"` + Ddls []string `protobuf:"bytes,6,rep,name=ddls,proto3" json:"ddls,omitempty"` ArgsChecksum uint32 `protobuf:"varint,7,opt,name=argsChecksum,proto3" json:"argsChecksum,omitempty"` - DdlInfo *ExecDDLInfo `protobuf:"bytes,8,opt,name=ddlInfo" json:"ddlInfo,omitempty"` + DdlInfo *ExecDDLInfo `protobuf:"bytes,8,opt,name=ddlInfo,proto3" json:"ddlInfo,omitempty"` QueueBucket string `protobuf:"bytes,9,opt,name=queueBucket,proto3" json:"queueBucket,omitempty"` State SyncerJobState `protobuf:"varint,10,opt,name=state,proto3,enum=pb.SyncerJobState" json:"state,omitempty"` } @@ -310,7 +311,7 @@ func (m *SyncerJobEvent) Reset() { *m = SyncerJobEvent{} } func (m *SyncerJobEvent) String() string { return proto.CompactTextString(m) } func (*SyncerJobEvent) ProtoMessage() {} func (*SyncerJobEvent) Descriptor() ([]byte, []int) { - return fileDescriptor_tracer_syncer_1170dba324220d8f, []int{4} + return fileDescriptor_aa4988ddb6d489fb, []int{4} } func (m *SyncerJobEvent) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) @@ -320,15 +321,15 @@ func (m *SyncerJobEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, erro return xxx_messageInfo_SyncerJobEvent.Marshal(b, m, deterministic) } else { b = b[:cap(b)] - n, err := m.MarshalTo(b) + n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } -func (dst *SyncerJobEvent) XXX_Merge(src proto.Message) { - xxx_messageInfo_SyncerJobEvent.Merge(dst, src) +func (m *SyncerJobEvent) XXX_Merge(src proto.Message) { + xxx_messageInfo_SyncerJobEvent.Merge(m, src) } func (m *SyncerJobEvent) XXX_Size() int { return m.Size() @@ -410,17 +411,56 @@ func (m *SyncerJobEvent) GetState() SyncerJobState { } func init() { + proto.RegisterEnum("pb.SyncerJobState", SyncerJobState_name, SyncerJobState_value) proto.RegisterType((*MySQLPosition)(nil), "pb.MySQLPosition") proto.RegisterType((*SyncerState)(nil), "pb.SyncerState") proto.RegisterType((*ExecDDLInfo)(nil), "pb.ExecDDLInfo") proto.RegisterType((*SyncerBinlogEvent)(nil), "pb.SyncerBinlogEvent") proto.RegisterType((*SyncerJobEvent)(nil), "pb.SyncerJobEvent") - proto.RegisterEnum("pb.SyncerJobState", SyncerJobState_name, SyncerJobState_value) } + +func init() { proto.RegisterFile("tracer_syncer.proto", fileDescriptor_aa4988ddb6d489fb) } + +var fileDescriptor_aa4988ddb6d489fb = []byte{ + // 510 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xcf, 0x6e, 0xd3, 0x4e, + 0x10, 0xce, 0xe6, 0x7f, 0xc6, 0xbf, 0xf4, 0x97, 0x0c, 0x12, 0xb2, 0x2a, 0x64, 0x19, 0x23, 0xa4, + 0x00, 0x52, 0x24, 0x82, 0x38, 0x70, 0xe1, 0x10, 0xd2, 0x43, 0xab, 0x56, 0x2a, 0x1b, 0xee, 0xc8, + 0x7f, 0xa6, 0x25, 0x8a, 0xeb, 0x75, 0x77, 0xd7, 0xa8, 0x79, 0x0b, 0x24, 0x1e, 0x82, 0x57, 0xe1, + 0xd8, 0x23, 0x47, 0x94, 0xf0, 0x20, 0x68, 0xd7, 0x09, 0x71, 0x0f, 0x95, 0x10, 0xb7, 0xd9, 0xf9, + 0x66, 0x3e, 0xcf, 0x7c, 0xdf, 0x18, 0x1e, 0x68, 0x19, 0xc6, 0x24, 0x3f, 0xaa, 0x55, 0x16, 0x93, + 0x1c, 0xe7, 0x52, 0x68, 0x81, 0xf5, 0x3c, 0x3a, 0x1c, 0x6e, 0x81, 0x28, 0x54, 0x54, 0xa6, 0x83, + 0xd7, 0xd0, 0x3f, 0x5b, 0xcd, 0xdf, 0x9f, 0x9e, 0x0b, 0xb5, 0xd0, 0x0b, 0x91, 0x21, 0x42, 0x33, + 0x0b, 0xaf, 0xc8, 0x65, 0x3e, 0x1b, 0xf5, 0xb8, 0x8d, 0x71, 0x00, 0x8d, 0x5c, 0x28, 0xb7, 0xee, + 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x03, 0x00, 0x00, +} + func (m *MySQLPosition) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -428,28 +468,34 @@ func (m *MySQLPosition) Marshal() (dAtA []byte, err error) { } func (m *MySQLPosition) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *MySQLPosition) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.Name) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(len(m.Name))) - i += copy(dAtA[i:], m.Name) - } if m.Pos != 0 { - dAtA[i] = 0x10 - i++ i = encodeVarintTracerSyncer(dAtA, i, uint64(m.Pos)) + i-- + dAtA[i] = 0x10 + } + if len(m.Name) > 0 { + i -= len(m.Name) + copy(dAtA[i:], m.Name) + i = encodeVarintTracerSyncer(dAtA, i, uint64(len(m.Name))) + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func (m *SyncerState) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -457,57 +503,66 @@ func (m *SyncerState) Marshal() (dAtA []byte, err error) { } func (m *SyncerState) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyncerState) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.SafeMode { - dAtA[i] = 0x8 - i++ - if m.SafeMode { - dAtA[i] = 1 - } else { - dAtA[i] = 0 + if m.CurrentPos != nil { + { + size, err := m.CurrentPos.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracerSyncer(dAtA, i, uint64(size)) } - i++ + i-- + dAtA[i] = 0x22 + } + if m.LastPos != nil { + { + size, err := m.LastPos.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracerSyncer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x1a } if m.TryReSync { - dAtA[i] = 0x10 - i++ + i-- if m.TryReSync { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ - } - if m.LastPos != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(m.LastPos.Size())) - n1, err := m.LastPos.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n1 + i-- + dAtA[i] = 0x10 } - if m.CurrentPos != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(m.CurrentPos.Size())) - n2, err := m.CurrentPos.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.SafeMode { + i-- + if m.SafeMode { + dAtA[i] = 1 + } else { + dAtA[i] = 0 } - i += n2 + i-- + dAtA[i] = 0x8 } - return i, nil + return len(dAtA) - i, nil } func (m *ExecDDLInfo) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -515,33 +570,39 @@ func (m *ExecDDLInfo) Marshal() (dAtA []byte, err error) { } func (m *ExecDDLInfo) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *ExecDDLInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if len(m.LockID) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(len(m.LockID))) - i += copy(dAtA[i:], m.LockID) - } if m.Exec { - dAtA[i] = 0x10 - i++ + i-- if m.Exec { dAtA[i] = 1 } else { dAtA[i] = 0 } - i++ + i-- + dAtA[i] = 0x10 } - return i, nil + if len(m.LockID) > 0 { + i -= len(m.LockID) + copy(dAtA[i:], m.LockID) + i = encodeVarintTracerSyncer(dAtA, i, uint64(len(m.LockID))) + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *SyncerBinlogEvent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -549,47 +610,56 @@ func (m *SyncerBinlogEvent) Marshal() (dAtA []byte, err error) { } func (m *SyncerBinlogEvent) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyncerBinlogEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Base != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(m.Base.Size())) - n3, err := m.Base.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n3 - } - if m.State != nil { - dAtA[i] = 0x12 - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(m.State.Size())) - n4, err := m.State.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n4 + if m.OpType != 0 { + i = encodeVarintTracerSyncer(dAtA, i, uint64(m.OpType)) + i-- + dAtA[i] = 0x20 } if m.EventType != 0 { - dAtA[i] = 0x18 - i++ i = encodeVarintTracerSyncer(dAtA, i, uint64(m.EventType)) + i-- + dAtA[i] = 0x18 } - if m.OpType != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(m.OpType)) + if m.State != nil { + { + size, err := m.State.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracerSyncer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0x12 } - return i, nil + if m.Base != nil { + { + size, err := m.Base.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracerSyncer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa + } + return len(dAtA) - i, nil } func (m *SyncerJobEvent) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) + n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } @@ -597,103 +667,114 @@ func (m *SyncerJobEvent) Marshal() (dAtA []byte, err error) { } func (m *SyncerJobEvent) MarshalTo(dAtA []byte) (int, error) { - var i int + size := m.Size() + return m.MarshalToSizedBuffer(dAtA[:size]) +} + +func (m *SyncerJobEvent) MarshalToSizedBuffer(dAtA []byte) (int, error) { + i := len(dAtA) _ = i var l int _ = l - if m.Base != nil { - dAtA[i] = 0xa - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(m.Base.Size())) - n5, err := m.Base.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err - } - i += n5 + if m.State != 0 { + i = encodeVarintTracerSyncer(dAtA, i, uint64(m.State)) + i-- + dAtA[i] = 0x50 } - if m.OpType != 0 { - dAtA[i] = 0x10 - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(m.OpType)) + if len(m.QueueBucket) > 0 { + i -= len(m.QueueBucket) + copy(dAtA[i:], m.QueueBucket) + i = encodeVarintTracerSyncer(dAtA, i, uint64(len(m.QueueBucket))) + i-- + dAtA[i] = 0x4a } - if m.Pos != nil { - dAtA[i] = 0x1a - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(m.Pos.Size())) - n6, err := m.Pos.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.DdlInfo != nil { + { + size, err := m.DdlInfo.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracerSyncer(dAtA, i, uint64(size)) } - i += n6 + i-- + dAtA[i] = 0x42 } - if m.CurrentPos != nil { - dAtA[i] = 0x22 - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(m.CurrentPos.Size())) - n7, err := m.CurrentPos.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.ArgsChecksum != 0 { + i = encodeVarintTracerSyncer(dAtA, i, uint64(m.ArgsChecksum)) + i-- + dAtA[i] = 0x38 + } + if len(m.Ddls) > 0 { + for iNdEx := len(m.Ddls) - 1; iNdEx >= 0; iNdEx-- { + i -= len(m.Ddls[iNdEx]) + copy(dAtA[i:], m.Ddls[iNdEx]) + i = encodeVarintTracerSyncer(dAtA, i, uint64(len(m.Ddls[iNdEx]))) + i-- + dAtA[i] = 0x32 } - i += n7 } if len(m.Sql) > 0 { - dAtA[i] = 0x2a - i++ + i -= len(m.Sql) + copy(dAtA[i:], m.Sql) i = encodeVarintTracerSyncer(dAtA, i, uint64(len(m.Sql))) - i += copy(dAtA[i:], m.Sql) + i-- + dAtA[i] = 0x2a } - if len(m.Ddls) > 0 { - for _, s := range m.Ddls { - dAtA[i] = 0x32 - i++ - l = len(s) - for l >= 1<<7 { - dAtA[i] = uint8(uint64(l)&0x7f | 0x80) - l >>= 7 - i++ - } - dAtA[i] = uint8(l) - i++ - i += copy(dAtA[i:], s) + if m.CurrentPos != nil { + { + size, err := m.CurrentPos.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracerSyncer(dAtA, i, uint64(size)) } + i-- + dAtA[i] = 0x22 } - if m.ArgsChecksum != 0 { - dAtA[i] = 0x38 - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(m.ArgsChecksum)) - } - if m.DdlInfo != nil { - dAtA[i] = 0x42 - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(m.DdlInfo.Size())) - n8, err := m.DdlInfo.MarshalTo(dAtA[i:]) - if err != nil { - return 0, err + if m.Pos != nil { + { + size, err := m.Pos.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracerSyncer(dAtA, i, uint64(size)) } - i += n8 + i-- + dAtA[i] = 0x1a } - if len(m.QueueBucket) > 0 { - dAtA[i] = 0x4a - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(len(m.QueueBucket))) - i += copy(dAtA[i:], m.QueueBucket) + if m.OpType != 0 { + i = encodeVarintTracerSyncer(dAtA, i, uint64(m.OpType)) + i-- + dAtA[i] = 0x10 } - if m.State != 0 { - dAtA[i] = 0x50 - i++ - i = encodeVarintTracerSyncer(dAtA, i, uint64(m.State)) + if m.Base != nil { + { + size, err := m.Base.MarshalToSizedBuffer(dAtA[:i]) + if err != nil { + return 0, err + } + i -= size + i = encodeVarintTracerSyncer(dAtA, i, uint64(size)) + } + i-- + dAtA[i] = 0xa } - return i, nil + return len(dAtA) - i, nil } func encodeVarintTracerSyncer(dAtA []byte, offset int, v uint64) int { + offset -= sovTracerSyncer(v) + base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) - return offset + 1 + return base } func (m *MySQLPosition) Size() (n int) { if m == nil { @@ -822,14 +903,7 @@ func (m *SyncerJobEvent) Size() (n int) { } func sovTracerSyncer(x uint64) (n int) { - for { - n++ - x >>= 7 - if x == 0 { - break - } - } - return n + return (math_bits.Len64(x|1) + 6) / 7 } func sozTracerSyncer(x uint64) (n int) { return sovTracerSyncer(uint64((x << 1) ^ uint64((int64(x) >> 63)))) @@ -849,7 +923,7 @@ func (m *MySQLPosition) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -877,7 +951,7 @@ func (m *MySQLPosition) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -887,6 +961,9 @@ func (m *MySQLPosition) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerSyncer } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTracerSyncer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -906,7 +983,7 @@ func (m *MySQLPosition) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.Pos |= (uint32(b) & 0x7F) << shift + m.Pos |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -920,6 +997,9 @@ func (m *MySQLPosition) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTracerSyncer } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTracerSyncer + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -947,7 +1027,7 @@ func (m *SyncerState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -975,7 +1055,7 @@ func (m *SyncerState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -995,7 +1075,7 @@ func (m *SyncerState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1015,7 +1095,7 @@ func (m *SyncerState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1024,6 +1104,9 @@ func (m *SyncerState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerSyncer } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracerSyncer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1048,7 +1131,7 @@ func (m *SyncerState) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1057,6 +1140,9 @@ func (m *SyncerState) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerSyncer } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracerSyncer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1076,6 +1162,9 @@ func (m *SyncerState) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTracerSyncer } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTracerSyncer + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1103,7 +1192,7 @@ func (m *ExecDDLInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1131,7 +1220,7 @@ func (m *ExecDDLInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1141,6 +1230,9 @@ func (m *ExecDDLInfo) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerSyncer } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTracerSyncer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1160,7 +1252,7 @@ func (m *ExecDDLInfo) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - v |= (int(b) & 0x7F) << shift + v |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1175,6 +1267,9 @@ func (m *ExecDDLInfo) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTracerSyncer } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTracerSyncer + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1202,7 +1297,7 @@ func (m *SyncerBinlogEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1230,7 +1325,7 @@ func (m *SyncerBinlogEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1239,6 +1334,9 @@ func (m *SyncerBinlogEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerSyncer } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracerSyncer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1263,7 +1361,7 @@ func (m *SyncerBinlogEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1272,6 +1370,9 @@ func (m *SyncerBinlogEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerSyncer } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracerSyncer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1296,7 +1397,7 @@ func (m *SyncerBinlogEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.EventType |= (int32(b) & 0x7F) << shift + m.EventType |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -1315,7 +1416,7 @@ func (m *SyncerBinlogEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OpType |= (int32(b) & 0x7F) << shift + m.OpType |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -1329,6 +1430,9 @@ func (m *SyncerBinlogEvent) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTracerSyncer } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTracerSyncer + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1356,7 +1460,7 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - wire |= (uint64(b) & 0x7F) << shift + wire |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1384,7 +1488,7 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1393,6 +1497,9 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerSyncer } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracerSyncer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1417,7 +1524,7 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.OpType |= (int32(b) & 0x7F) << shift + m.OpType |= int32(b&0x7F) << shift if b < 0x80 { break } @@ -1436,7 +1543,7 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1445,6 +1552,9 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerSyncer } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracerSyncer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1469,7 +1579,7 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1478,6 +1588,9 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerSyncer } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracerSyncer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1502,7 +1615,7 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1512,6 +1625,9 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerSyncer } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTracerSyncer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1531,7 +1647,7 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1541,6 +1657,9 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerSyncer } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTracerSyncer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1560,7 +1679,7 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.ArgsChecksum |= (uint32(b) & 0x7F) << shift + m.ArgsChecksum |= uint32(b&0x7F) << shift if b < 0x80 { break } @@ -1579,7 +1698,7 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - msglen |= (int(b) & 0x7F) << shift + msglen |= int(b&0x7F) << shift if b < 0x80 { break } @@ -1588,6 +1707,9 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerSyncer } postIndex := iNdEx + msglen + if postIndex < 0 { + return ErrInvalidLengthTracerSyncer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1612,7 +1734,7 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - stringLen |= (uint64(b) & 0x7F) << shift + stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } @@ -1622,6 +1744,9 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { return ErrInvalidLengthTracerSyncer } postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthTracerSyncer + } if postIndex > l { return io.ErrUnexpectedEOF } @@ -1641,7 +1766,7 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { } b := dAtA[iNdEx] iNdEx++ - m.State |= (SyncerJobState(b) & 0x7F) << shift + m.State |= SyncerJobState(b&0x7F) << shift if b < 0x80 { break } @@ -1655,6 +1780,9 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { if skippy < 0 { return ErrInvalidLengthTracerSyncer } + if (iNdEx + skippy) < 0 { + return ErrInvalidLengthTracerSyncer + } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } @@ -1670,6 +1798,7 @@ func (m *SyncerJobEvent) Unmarshal(dAtA []byte) error { func skipTracerSyncer(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 + depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { @@ -1701,10 +1830,8 @@ func skipTracerSyncer(dAtA []byte) (n int, err error) { break } } - return iNdEx, nil case 1: iNdEx += 8 - return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { @@ -1721,91 +1848,34 @@ func skipTracerSyncer(dAtA []byte) (n int, err error) { break } } - iNdEx += length if length < 0 { return 0, ErrInvalidLengthTracerSyncer } - return iNdEx, nil + iNdEx += length case 3: - for { - var innerWire uint64 - var start int = iNdEx - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return 0, ErrIntOverflowTracerSyncer - } - 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 := skipTracerSyncer(dAtA[start:]) - if err != nil { - return 0, err - } - iNdEx = start + next - } - return iNdEx, nil + depth++ case 4: - return iNdEx, nil + if depth == 0 { + return 0, ErrUnexpectedEndOfGroupTracerSyncer + } + depth-- case 5: iNdEx += 4 - return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } + if iNdEx < 0 { + return 0, ErrInvalidLengthTracerSyncer + } + if depth == 0 { + return iNdEx, nil + } } - panic("unreachable") + return 0, io.ErrUnexpectedEOF } var ( - ErrInvalidLengthTracerSyncer = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowTracerSyncer = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthTracerSyncer = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowTracerSyncer = fmt.Errorf("proto: integer overflow") + ErrUnexpectedEndOfGroupTracerSyncer = fmt.Errorf("proto: unexpected end of group") ) - -func init() { proto.RegisterFile("tracer_syncer.proto", fileDescriptor_tracer_syncer_1170dba324220d8f) } - -var fileDescriptor_tracer_syncer_1170dba324220d8f = []byte{ - // 510 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0xcf, 0x6e, 0xd3, 0x4e, - 0x10, 0xce, 0xe6, 0x7f, 0xc6, 0xbf, 0xf4, 0x97, 0x0c, 0x12, 0xb2, 0x2a, 0x64, 0x19, 0x23, 0xa4, - 0x00, 0x52, 0x24, 0x82, 0x38, 0x70, 0xe1, 0x10, 0xd2, 0x43, 0xab, 0x56, 0x2a, 0x1b, 0xee, 0xc8, - 0x7f, 0xa6, 0x25, 0x8a, 0xeb, 0x75, 0x77, 0xd7, 0xa8, 0x79, 0x0b, 0x24, 0x1e, 0x82, 0x57, 0xe1, - 0xd8, 0x23, 0x47, 0x94, 0xf0, 0x20, 0x68, 0xd7, 0x09, 0x71, 0x0f, 0x95, 0x10, 0xb7, 0xd9, 0xf9, - 0x66, 0x3e, 0xcf, 0x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x04, 0x68, - 0x5b, 0xd2, 0x64, 0xc0, 0xd0, 0x81, 0x8e, 0x2a, 0xe2, 0x98, 0x94, 0x1a, 0xd4, 0xb1, 0x07, 0x2d, - 0x92, 0x52, 0xc8, 0x41, 0x63, 0xea, 0x7e, 0x5f, 0x7b, 0xec, 0x76, 0xed, 0xb1, 0x9f, 0x6b, 0x8f, - 0x7d, 0xd9, 0x78, 0xb5, 0xdb, 0x8d, 0x57, 0xfb, 0xb1, 0xf1, 0x6a, 0x51, 0xdb, 0xfe, 0x79, 0xaf, - 0x7e, 0x07, 0x00, 0x00, 0xff, 0xff, 0xae, 0x90, 0xfe, 0xb8, 0xa7, 0x03, 0x00, 0x00, -} diff --git a/generate-dm.sh b/generate-dm.sh index 67574c70a7..e23901ae9b 100755 --- a/generate-dm.sh +++ b/generate-dm.sh @@ -1,38 +1,66 @@ #!/usr/bin/env bash -cd dm/proto +# If the environment variable is unset, GOPATH defaults +# to a subdirectory named "go" in the user's home directory +# ($HOME/go on Unix, %USERPROFILE%\go on Windows), +# unless that directory holds a Go distribution. +# Run "go env GOPATH" to see the current GOPATH. +GOPATH=$(go env GOPATH) +echo "using GOPATH=$GOPATH" -echo "generate dm protobuf code..." -GOGO_ROOT=${GOPATH}/src/github.com/gogo/protobuf -if [ ! -d $GOGO_ROOT ]; then - echo "please use the following command to get gogo." - echo "go get -u github.com/gogo/protobuf/protoc-gen-gogofaster" - exit 1 +# we use `retool` to manage the tools written in Go. +# ensure it matches `-tool-dir` of `retool`. +TOOLS_BIN_DIR=$(pwd)/_tools/bin + +# use `protoc-gen-gogofaster` rather than `protoc-gen-go`. +GOGO_FASTER=$TOOLS_BIN_DIR/protoc-gen-gogofaster +if [ ! -f ${GOGO_FASTER} ]; then + echo "${GOGO_FASTER} does not exist, please run 'make retool_setup' first" + exit 1 +fi + +# get and construct the path to gogo/protobuf. +GO111MODULE=on go get -d github.com/gogo/protobuf +GOGO_MOD=$(GO111MODULE=on go list -m github.com/gogo/protobuf) +GOGO_PATH=$GOPATH/pkg/mod/${GOGO_MOD// /@} +if [ ! -d ${GOGO_PATH} ]; then + echo "${GOGO_PATH} does not exist, please ensure 'github.com/gogo/protobuf' is in go.mod" + exit 1 fi -which protoc-gen-grpc-gateway -if [ $? -ne 0 ]; then - echo "please use the following command to get grpc-gateway." - echo "go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway" - exit 1 +# we need `grpc-gateway` to generate HTTP API from gRPC API. +GRPC_GATEWAY=$TOOLS_BIN_DIR/protoc-gen-grpc-gateway +if [ ! -f ${GRPC_GATEWAY} ]; then + echo "${GRPC_GATEWAY} does not exist, please run 'make retool_setup' first" + exit 1 fi -GOOGLE_API_ROOT=${GOPATH}/src/github.com/googleapis/googleapis -if [ ! -d $GOOGLE_API_ROOT ]; then - echo "please use the following command to get google apis." - echo "go get -u github.com/googleapis/googleapis/google/api" - exit 1 +# fetch `github.com/googleapis/googleapis`, seems no `.go` file in it, +# so neither `go.mod` nor `retool` can track it. +# hardcode the version here now. +GO111MODULE=on go get github.com/googleapis/googleapis@91ef2d9 +GAPI_MOD=$(GO111MODULE=on go list -m github.com/googleapis/googleapis) +GAPI_PATH=$GOPATH/pkg/mod/${GAPI_MOD// /@} +GO111MODULE=on go mod tidy # keep `go.mod` and `go.sum` tidy +if [ ! -d ${GAPI_PATH} ]; then + echo "${GAPI_PATH} does not exist, try verify it manually" + exit 1 fi -cp -r ${GOPATH}/src/github.com/googleapis/googleapis/google ./ +cd dm/proto || exit 1 + +echo "generate dm protobuf code..." + +cp -r ${GAPI_PATH}/google ./ -protoc -I.:${GOGO_ROOT}:${GOGO_ROOT}/protobuf --gogofaster_out=plugins=grpc:../pb/ *.proto +protoc -I.:${GOGO_PATH}:${GOGO_PATH}/protobuf --plugin=${GOGO_FASTER} --gogofaster_out=plugins=grpc:../pb/ *.proto -protoc -I.:${GOGO_ROOT}:${GOGO_ROOT}/protobuf --grpc-gateway_out=logtostderr=true:../pb/ dmmaster.proto +protoc -I.:${GOGO_PATH}:${GOGO_PATH}/protobuf --plugin=${GRPC_GATEWAY} --grpc-gateway_out=logtostderr=true:../pb/ dmmaster.proto +chmod -R +w ./google # permission is `-r--r--r--` rm -r ./google -cd ../pb +cd ../pb || exit 1 sed -i.bak -E 's/import _ \"gogoproto\"//g' *.pb.go sed -i.bak -E 's/import fmt \"fmt\"//g' *.pb.go rm -f *.bak diff --git a/go.mod b/go.mod index 995055c972..a2d5b431c2 100644 --- a/go.mod +++ b/go.mod @@ -3,6 +3,7 @@ module github.com/pingcap/dm require ( github.com/BurntSushi/toml v0.3.1 github.com/DATA-DOG/go-sqlmock v1.3.3 + github.com/Masterminds/semver v1.5.0 // indirect github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d // indirect github.com/cespare/xxhash/v2 v2.1.1 // indirect github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e @@ -53,6 +54,7 @@ require ( github.com/spf13/pflag v1.0.5 // indirect github.com/syndtr/goleveldb v1.0.1-0.20190318030020-c3a204f8e965 github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 // indirect + github.com/twitchtv/retool v1.3.8-0.20180918173430-41330f8b4e07 github.com/uber-go/atomic v1.4.0 // indirect github.com/uber/jaeger-client-go v2.16.0+incompatible // indirect github.com/uber/jaeger-lib v2.0.0+incompatible // indirect @@ -60,7 +62,7 @@ require ( go.etcd.io/etcd v0.5.0-alpha.5.0.20191023171146-3cf2f69b5738 go.uber.org/zap v1.13.0 golang.org/x/crypto v0.0.0-20191112222119-e1110fd1c708 // indirect - golang.org/x/net v0.0.0-20191112182307-2180aed22343 + golang.org/x/net v0.0.0-20191112182307-2180aed22343 // indirect golang.org/x/sys v0.0.0-20191113165036-4c7a9d0fe056 golang.org/x/time v0.0.0-20191024005414-555d28b269f0 golang.org/x/tools v0.0.0-20191114222411-4191b8cbba09 // indirect diff --git a/go.sum b/go.sum index fabbfca996..e20d1887fd 100644 --- a/go.sum +++ b/go.sum @@ -3,6 +3,8 @@ github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/DATA-DOG/go-sqlmock v1.3.3 h1:CWUqKXe0s8A2z6qCgkP4Kru7wC11YoAnoupUKFDnH08= github.com/DATA-DOG/go-sqlmock v1.3.3/go.mod h1:f/Ixk793poVmq4qj/V1dPUg2JEAKC73Q5eFN3EC/SaM= +github.com/Masterminds/semver v1.5.0 h1:H65muMkzWKEuNDnfl9d70GUjFniHKHRbFPGBuZ3QEww= +github.com/Masterminds/semver v1.5.0/go.mod h1:MB6lktGJrhw8PrUyiEoblNEGEQ+RzHPF078ddwwvV3Y= github.com/StackExchange/wmi v0.0.0-20180725035823-b12b22c5341f h1:5ZfJxyXo8KyX8DgGXC5B7ILL8y51fci/qYz2B4j8iLY= github.com/StackExchange/wmi v0.0.0-20180725035823-b12b22c5341f/go.mod h1:3eOhrUMpNV+6aFIbp5/iudMxNCF27Vw2OZgy4xEx0Fg= github.com/StackExchange/wmi v0.0.0-20190523213315-cbe66965904d h1:G0m3OIz70MZUWq3EgK3CesDbo8upS2Vm9/P3FtgI+Jk= @@ -400,6 +402,8 @@ github.com/tmc/grpc-websocket-proxy v0.0.0-20171017195756-830351dc03c6 h1:lYIiVD github.com/tmc/grpc-websocket-proxy v0.0.0-20171017195756-830351dc03c6/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 h1:LnC5Kc/wtumK+WB441p7ynQJzVuNRJiqddSIE3IlSEQ= github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U= +github.com/twitchtv/retool v1.3.8-0.20180918173430-41330f8b4e07 h1:B7mW1TVxuJetvy38UK931b513rqNcIID3qd6A6y0wk8= +github.com/twitchtv/retool v1.3.8-0.20180918173430-41330f8b4e07/go.mod h1:88ZJJaNbdr4rvnbFzU5l5d17iJ69JoQX2+JJ5B0Wteo= github.com/uber-go/atomic v1.3.2 h1:Azu9lPBWRNKzYXSIwRfgRuDuS0YKsK4NFhiQv98gkxo= github.com/uber-go/atomic v1.3.2/go.mod h1:/Ct5t2lcmbJ4OSe/waGBoaVvVqtO0bmtfVNex1PFV8g= github.com/uber-go/atomic v1.4.0 h1:yOuPqEq4ovnhEjpHmfFwsqBXDYbQeT6Nb0bwD6XnD5o= diff --git a/tests/generate-mock.sh b/tests/generate-mock.sh index 020f679a27..91a8331ce1 100755 --- a/tests/generate-mock.sh +++ b/tests/generate-mock.sh @@ -3,9 +3,9 @@ cur=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) package="pbmock" -which mockgen >/dev/null +which retool >/dev/null if [ "$?" != 0 ]; then - echo "please install mockgen first, simplify run \`go get github.com/golang/mock/mockgen\`" + echo "'retool' does not exist, please run 'make retool_setup' first" exit 1 fi @@ -21,7 +21,7 @@ for file in ./*pb.go; do # extract public interface from pb source file ifs=$(grep -E "type [[:upper:]].*interface" $file|awk '{print $2}' 'ORS=,'|rev|cut -c 2-|rev) echo "generate mock for file $file" - mockgen -destination $cur/../dm/pbmock/$prefix.go -package $package github.com/pingcap/dm/dm/pb $ifs + retool do mockgen -destination $cur/../dm/pbmock/$prefix.go -package $package github.com/pingcap/dm/dm/pb $ifs done echo "generate grpc mock code successfully" diff --git a/tools.json b/tools.json new file mode 100644 index 0000000000..d8dfc8477c --- /dev/null +++ b/tools.json @@ -0,0 +1,37 @@ +{ + "Tools": [ + { + "Repository": "github.com/pingcap/failpoint/failpoint-ctl", + "Commit": "e7b1061e6e81d44326c449cf518992e0e2d47e98" + }, + { + "Repository": "github.com/kisielk/errcheck", + "Commit": "e14f8d59a22d460d56c5ee92507cd94c78fbf274" + }, + { + "Repository": "golang.org/x/lint/golint", + "Commit": "fdd1cda4f05fd1fd86124f0ef9ce31a0b72c8448" + }, + { + "Repository": "github.com/mattn/goveralls", + "Commit": "59534e121a04e409da2c9356fd6501e837d88007" + }, + { + "Repository": "github.com/zhouqiang-cl/gocovmerge", + "Commit": "5256314471af44fe8bccbf0a1db1dd1f85637c1a" + }, + { + "Repository": "github.com/gogo/protobuf/protoc-gen-gogofaster", + "Commit": "5628607bb4c51c3157aacc3a50f0ab707582b805" + }, + { + "Repository": "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway", + "Commit": "f7120437bb4f6c71f7f5076ad65a45310de2c009" + }, + { + "Repository": "github.com/golang/mock/mockgen", + "Commit": "d74b93584564161b2de771089ee697f07d8bd5b5" + } + ], + "RetoolVersion": "1.3.7" +} \ No newline at end of file diff --git a/tools/tools.go b/tools/tools.go new file mode 100644 index 0000000000..271530e34c --- /dev/null +++ b/tools/tools.go @@ -0,0 +1,24 @@ +// Copyright 2020 PingCAP, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// See the License for the specific language governing permissions and +// limitations under the License. + +// +build tools + +// Tool dependencies are tracked here to make go module happy +// Refer https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module + +package tools + +import ( + // make go module happy + _ "github.com/twitchtv/retool" +)