retrieval: don't erronously break appending

This commit is contained in:
Fabian Reinartz 2017-01-17 08:39:18 +01:00
parent d80a3de235
commit 598e2f01c0
1 changed files with 3 additions and 1 deletions

View File

@ -507,7 +507,9 @@ func (sl *scrapeLoop) append(b []byte, ts time.Time) (n int, err error) {
mets := string(met) mets := string(met)
ref, ok := sl.cache[mets] ref, ok := sl.cache[mets]
if ok { if ok {
if err = app.Add(ref, t, v); err != storage.ErrNotFound { if err = app.Add(ref, t, v); err == nil {
continue
} else if err != storage.ErrNotFound {
break break
} }
ok = false ok = false