mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 00:23:18 +00:00
Update promql/engine.go
Signed-off-by: George Krajcsovits <krajorama@users.noreply.github.com>
This commit is contained in:
parent
b91acc61b0
commit
17b0b788da
@ -2357,7 +2357,7 @@ loop:
|
||||
histograms = append(histograms, HPoint{H: &histogram.FloatHistogram{}})
|
||||
}
|
||||
if histograms[n].H == nil {
|
||||
// Initialize to non zero to AtFloatHistogram does a copy for sure.
|
||||
// Make sure to pass non zero H to AtFloatHistogram so that it does a deep-copy.
|
||||
// Not an issue in the loop above since that uses an intermediate buffer.
|
||||
histograms[n].H = &histogram.FloatHistogram{}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user