mirror of
https://github.com/prometheus/prometheus.git
synced 2026-06-08 16:12:16 -04: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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