Don't regenerate label set for cached values.

This commit is contained in:
Tom Wilkie 2017-07-12 15:54:38 +01:00
parent 96e25adc8d
commit 240feb313b
1 changed files with 1 additions and 2 deletions

View File

@ -751,9 +751,8 @@ loop:
}
ref, ok := sl.cache.getRef(yoloString(met))
var lset labels.Labels
p.Metric(&lset)
if ok {
lset := sl.cache.lsets[ref].lset
switch err = app.AddFast(lset, ref, t, v); err {
case nil:
if tp == nil {