mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-24 21:24:05 -08:00
Addressed Brian's comments.
Signed-off-by: Bartlomiej Plotka <bwplotka@gmail.com>
This commit is contained in:
parent
fe802f29c9
commit
cd9516316a
|
@ -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)
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue