mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
fix: may exceed max tnx in etcd operations (#36773)
issue: #36772 pr: #36775 Signed-off-by: jaime <yun.zhang@zilliz.com>
This commit is contained in:
parent
a57626afa0
commit
4110f35f1a
@ -595,7 +595,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
Block a user