Skip to content

Commit

Permalink
Merge pull request prometheus#14663 from aknuds1/arve/promql-comment
Browse files Browse the repository at this point in the history
PromQL engine: Fix comment regarding non-nil histogram pointer
  • Loading branch information
aknuds1 authored Aug 13, 2024
2 parents 5fd66ba + 0503d4f commit 6f1fd4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion promql/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -2357,7 +2357,7 @@ loop:
histograms = append(histograms, HPoint{H: &histogram.FloatHistogram{}})
}
if histograms[n].H == nil {
// Make sure to pass non zero H to AtFloatHistogram so that it does a deep-copy.
// Make sure to pass non-nil 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{}
}
Expand Down

0 comments on commit 6f1fd4b

Please sign in to comment.