Skip to content

Commit 4d68aaa

Browse files
committed
Use atomic.LoadInt32() when reading back numChunks
Signed-off-by: Marco Pracucci <[email protected]>
1 parent 86a66f5 commit 4d68aaa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/querier/blocks_store_queryable.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ func (q *blocksStoreQuerier) fetchSeriesFromStores(
552552
return nil, nil, nil, 0, err
553553
}
554554

555-
return seriesSets, queriedBlocks, warnings, int(numChunks), nil
555+
return seriesSets, queriedBlocks, warnings, int(atomic.LoadInt32(&numChunks)), nil
556556
}
557557

558558
func createSeriesRequest(minT, maxT int64, matchers []storepb.LabelMatcher, blockIDs []ulid.ULID) (*storepb.SeriesRequest, error) {

0 commit comments

Comments
 (0)