From c2b4b9138ddd8b0c1bff37b3d98fc66c57e6c906 Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 14 Jul 2020 14:27:50 +0300 Subject: [PATCH] app/vmagent/remotewrite: return proper value from `tssRelabelPool.New` Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/599 --- app/vmagent/remotewrite/remotewrite.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/vmagent/remotewrite/remotewrite.go b/app/vmagent/remotewrite/remotewrite.go index fdd1d021d..beadb85b9 100644 --- a/app/vmagent/remotewrite/remotewrite.go +++ b/app/vmagent/remotewrite/remotewrite.go @@ -233,6 +233,7 @@ func (rwctx *remoteWriteCtx) Push(tss []prompbmarshal.TimeSeries) { var tssRelabelPool = &sync.Pool{ New: func() interface{} { - return []prompbmarshal.TimeSeries{} + a := []prompbmarshal.TimeSeries{} + return &a }, }