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
}
m[string(bb.B)] = true
var dst timeseries
dst.CopyFrom(ts)
rvs = append(rvs, &dst)
rvs = append(rvs, ts)
}
}
bbPool.Put(bb)