diff --git a/app/vmselect/promql/transform.go b/app/vmselect/promql/transform.go index 25ff45fbe8..65a06971da 100644 --- a/app/vmselect/promql/transform.go +++ b/app/vmselect/promql/transform.go @@ -420,7 +420,7 @@ func transformBucketsLimit(tfa *transformFuncArg) ([]*timeseries, error) { mn.CopyFrom(&ts.MetricName) mn.RemoveTag("le") b = marshalMetricNameSorted(b[:0], &mn) - k := bytesutil.ToUnsafeString(b) + k := string(b) m[k] = append(m[k], x{ le: le, ts: ts,