diff --git a/storage/fanout/fanout_test.go b/storage/fanout/fanout_test.go index 2ddbe09fa..e26106cca 100644 --- a/storage/fanout/fanout_test.go +++ b/storage/fanout/fanout_test.go @@ -79,7 +79,7 @@ func TestSelectSorted(t *testing.T) { matcher, err := labels.NewMatcher(labels.MatchEqual, model.MetricNameLabel, "a") testutil.Ok(t, err) - seriesSet, _, err := querier.Select(false, nil, matcher) + seriesSet, _, err := querier.Select(true, nil, matcher) testutil.Ok(t, err) result := make(map[int64]float64) diff --git a/tsdb/querier.go b/tsdb/querier.go index ca4fa5e5a..4652a3f78 100644 --- a/tsdb/querier.go +++ b/tsdb/querier.go @@ -98,7 +98,7 @@ func (q *querier) Select(sortSeries bool, hints *storage.SelectHints, ms ...*lab for i, b := range q.blocks { // Sorting Head series is slow, and unneeded when only the // Head is being queried. Sorting blocks is a noop. - // Still we have to sort if blocks > 1 as Merged Series requires. + // Still we have to sort if blocks > 1 as MergedSeriesSet requires it. s, w, err := b.Select(true, hints, ms...) ws = append(ws, w...) if err != nil {