From 7e7d4d5275c916d33940994975ecbe04be920f2f Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Tue, 11 Jun 2019 00:34:49 +0300 Subject: [PATCH] app/vmselect/promql: remove superflouos timeseries copy in `union` func --- app/vmselect/promql/transform.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/vmselect/promql/transform.go b/app/vmselect/promql/transform.go index 21aec90e9..e8e4828f3 100644 --- a/app/vmselect/promql/transform.go +++ b/app/vmselect/promql/transform.go @@ -643,9 +643,7 @@ func transformUnion(tfa *transformFuncArg) ([]*timeseries, error) { continue } m[string(bb.B)] = true - var dst timeseries - dst.CopyFrom(ts) - rvs = append(rvs, &dst) + rvs = append(rvs, ts) } } bbPool.Put(bb)