Skip to content

Commit

Permalink
fix: [2.3] Use k locations only for basic BF test location (milvus-io…
Browse files Browse the repository at this point in the history
…#35390)

Cherry-pick from master
pr: milvus-io#35380
Related to milvus-io#35379

Signed-off-by: Congqi Xia <[email protected]>
  • Loading branch information
congqixia authored Aug 9, 2024
1 parent e5681e5 commit f75b886
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/storage/pk_statistics.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (lc *BatchLocationsCache) Locations(k uint) [][]uint64 {
})
}

return lc.locations
return lo.Map(lc.locations, func(locations []uint64, _ int) []uint64 { return locations[:k] })
}

func NewBatchLocationsCache(pks []PrimaryKey) *BatchLocationsCache {
Expand Down

0 comments on commit f75b886

Please sign in to comment.