diff --git a/cmd/tools/migration/backend/etcd210.go b/cmd/tools/migration/backend/etcd210.go index 137ad51d8db0e8af1ef3316592e138da60fbf238..7867bd2bd6dda3f68bc6ae0cb1025e5c7359f47e 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 47d4d0587714a7797e6889e43a08656064f0ecad..039218bc7c0957b277739d044a8db22f7bb93a4f 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 {