Specification log (#20119)

Signed-off-by: cai.zhang <cai.zhang@zilliz.com>

Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
This commit is contained in:
cai.zhang 2022-10-28 17:01:32 +08:00 committed by GitHub
parent 26d26aa8ab
commit 53289a63e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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))
}
}

View File

@ -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 {