1
0
mirror of https://github.com/prometheus/prometheus synced 2025-04-29 22:58:42 +00:00

add unused pointslices to the pool ()

Signed-off-by: Tony Lee <tl@hudson-trading.com>
This commit is contained in:
Tony Lee 2018-07-18 00:29:21 -04:00 committed by Brian Brazil
parent 1c6f2a1b68
commit bcdaf8e2d2

View File

@ -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