mirror of
https://github.com/prometheus/prometheus
synced 2025-04-08 10:32:00 +00:00
add unused pointslices to the pool (#4363)
Signed-off-by: Tony Lee <tl@hudson-trading.com>
This commit is contained in:
parent
1c6f2a1b68
commit
bcdaf8e2d2
@ -1060,6 +1060,8 @@ func (ev *evaluator) matrixSelector(node *MatrixSelector) Matrix {
|
|||||||
|
|
||||||
if len(ss.Points) > 0 {
|
if len(ss.Points) > 0 {
|
||||||
matrix = append(matrix, ss)
|
matrix = append(matrix, ss)
|
||||||
|
} else {
|
||||||
|
putPointSlice(ss.Points)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return matrix
|
return matrix
|
||||||
|
Loading…
Reference in New Issue
Block a user