mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
fix: [2.3] Prevent use captured iteration variable partitionID (#33912)
Cherry-pick from master pr: #33906 See also #33902 Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
parent
2e01ae9141
commit
aea3cfefce
@ -279,8 +279,9 @@ func (sd *shardDelegator) applyBFInParallel(deleteDatas []*DeleteData, pool *con
|
||||
retIdx += 1
|
||||
tmpRetIdx := retIdx
|
||||
deleteDataId := didx
|
||||
partitionID := data.PartitionID
|
||||
future := pool.Submit(func() (any, error) {
|
||||
ret := sd.pkOracle.BatchGet(pks[startIdx:endIdx], pkoracle.WithPartitionID(data.PartitionID))
|
||||
ret := sd.pkOracle.BatchGet(pks[startIdx:endIdx], pkoracle.WithPartitionID(partitionID))
|
||||
retMap.Insert(tmpRetIdx, &BatchApplyRet{
|
||||
DeleteDataIdx: deleteDataId,
|
||||
StartIdx: startIdx,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user