fix: Check the correct return error in MultiRemove (#33926)

See also #33925

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
pull/33951/head
congqixia 2024-06-18 15:23:59 +08:00 committed by GitHub
parent 5e906fd17f
commit 5772123ca2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -398,7 +398,7 @@ func (kv *txnTiKV) MultiRemove(keys []string) error {
for _, key := range keys {
key = path.Join(kv.rootPath, key)
loggingErr = txn.Delete([]byte(key))
err = txn.Delete([]byte(key))
if err != nil {
loggingErr = errors.Wrap(err, fmt.Sprintf("Failed to delete %s for MultiRemove", key))
return loggingErr