mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08: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 {
|
||||
matrix = append(matrix, ss)
|
||||
} else {
|
||||
putPointSlice(ss.Points)
|
||||
}
|
||||
}
|
||||
return matrix
|
||||
|
|
Loading…
Reference in a new issue