Skip to content

Commit

Permalink
fix: [2.4] Check the correct return error in MultiRemove (#33926) (#3…
Browse files Browse the repository at this point in the history
…3966)

Cherry-pick from master
pr: #33926
See also #33925

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
  • Loading branch information
congqixia committed Jun 20, 2024
1 parent 0326852 commit c28b693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/kv/tikv/txn_tikv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c28b693

Please sign in to comment.