Merge pull request #13043 from bboreham/remove-h

PromQL: reduce garbage in range-query evaluation
This commit is contained in:
Bryan Boreham 2023-10-30 16:40:20 +00:00 committed by GitHub
commit 6722a5bb86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1172,9 +1172,7 @@ func (ev *evaluator) rangeEval(prepSeries func(labels.Labels, *EvalSeriesHelper)
bufHelpers[i] = make([]EvalSeriesHelper, len(matrixes[i]))
for si, series := range matrixes[i] {
h := seriesHelpers[i][si]
prepSeries(series.Metric, &h)
seriesHelpers[i][si] = h
prepSeries(series.Metric, &seriesHelpers[i][si])
}
}
}