app/vmselect/promql: remove superflouos timeseries copy in union func

This commit is contained in:
Aliaksandr Valialkin 2019-06-11 00:34:49 +03:00
parent bf9782eaf6
commit 7e7d4d5275

View file

@ -643,9 +643,7 @@ func transformUnion(tfa *transformFuncArg) ([]*timeseries, error) {
continue continue
} }
m[string(bb.B)] = true m[string(bb.B)] = true
var dst timeseries rvs = append(rvs, ts)
dst.CopyFrom(ts)
rvs = append(rvs, &dst)
} }
} }
bbPool.Put(bb) bbPool.Put(bb)