Addressed Brian's comments.

Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
This commit is contained in:
Bartlomiej Plotka 2020-03-13 14:37:47 +00:00
parent fe802f29c9
commit cd9516316a
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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 {