From 53289a63e6e0f51215a5ad6add1c14a45d8d1338 Mon Sep 17 00:00:00 2001 From: "cai.zhang" Date: Fri, 28 Oct 2022 17:01:32 +0800 Subject: [PATCH] Specification log (#20119) Signed-off-by: cai.zhang Signed-off-by: cai.zhang --- cmd/tools/migration/backend/etcd210.go | 2 +- internal/proxy/error.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tools/migration/backend/etcd210.go b/cmd/tools/migration/backend/etcd210.go index 137ad51d8..7867bd2bd 100644 --- a/cmd/tools/migration/backend/etcd210.go +++ b/cmd/tools/migration/backend/etcd210.go @@ -464,12 +464,12 @@ func (b etcd210) BackupV2(file string) error { return err } for _, kv := range resp.Kvs { + currentKey = string(append(kv.Key, 0)) if kv.Lease != 0 { console.Warning(fmt.Sprintf("lease key won't be backuped: %s, lease id: %d", kv.Key, kv.Lease)) continue } saves[string(kv.Key)] = string(kv.Value) - currentKey = string(append(kv.Key, 0)) } } diff --git a/internal/proxy/error.go b/internal/proxy/error.go index 47d4d0587..039218bc7 100644 --- a/internal/proxy/error.go +++ b/internal/proxy/error.go @@ -88,7 +88,7 @@ func ErrProxyNotReady() error { } func ErrPartitionNotExist(partitionName string) error { - return fmt.Errorf("partitionID of partitionName:%s can not be find", partitionName) + return fmt.Errorf("partition is not exist: %s", partitionName) } func ErrAmbiguousIndexName() error { -- GitLab