Skip to content

Commit

Permalink
fix: Fix data race on loadSealedSegmentFields opts (milvus-io#31230)
Browse files Browse the repository at this point in the history
See also milvus-io#31229

Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
  • Loading branch information
congqixia committed Mar 14, 2024
1 parent 1fafc72 commit b1ff8e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/querynodev2/segments/segment_loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,7 @@ func loadSealedSegmentFields(ctx context.Context, collection *Collection, segmen
}
runningGroup, _ := errgroup.WithContext(ctx)
for _, field := range fields {
opts := opts
fieldBinLog := field
fieldID := field.FieldID
mmapEnabled := common.IsFieldMmapEnabled(collection.Schema(), fieldID)
Expand Down

0 comments on commit b1ff8e2

Please sign in to comment.