Skip to content

Commit b4df2b8

Browse files
santileiraaknuds1
andauthored
Update pkg/storegateway/bucket.go
Co-authored-by: Arve Knudsen <[email protected]>
1 parent fb27243 commit b4df2b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/storegateway/bucket.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ func (s *BucketStore) LabelNames(ctx context.Context, req *storepb.LabelNamesReq
14201420
}
14211421

14221422
names := util.MergeSlices(sets...)
1423-
if req.Limit != 0 && len(names) > int(req.Limit) {
1423+
if req.Limit > 0 && len(names) > int(req.Limit) {
14241424
names = names[:req.Limit]
14251425
}
14261426

0 commit comments

Comments
 (0)