mirror of https://github.com/milvus-io/milvus.git
fix: may exceed max tnx in etcd operations (#36775)
issue: #36772 Signed-off-by: jaime <yun.zhang@zilliz.com>pull/37141/head^2
parent
86687bd8ed
commit
33b0b8df80
|
@ -643,7 +643,7 @@ func (ss *SuffixSnapshot) batchRemoveExpiredKvs(keyGroup []string, originalKey s
|
|||
// to protect txn finished with ascend order, reverse the latest kv with tombstone to tail of array
|
||||
sort.Strings(keyGroup)
|
||||
removeFn := func(partialKeys []string) error {
|
||||
return ss.MetaKv.MultiRemove(keyGroup)
|
||||
return ss.MetaKv.MultiRemove(partialKeys)
|
||||
}
|
||||
return etcd.RemoveByBatchWithLimit(keyGroup, util.MaxEtcdTxnNum, removeFn)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue