mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
retrieval: don't erronously break appending
This commit is contained in:
parent
d80a3de235
commit
598e2f01c0
|
@ -507,7 +507,9 @@ func (sl *scrapeLoop) append(b []byte, ts time.Time) (n int, err error) {
|
|||
mets := string(met)
|
||||
ref, ok := sl.cache[mets]
|
||||
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
|
||||
}
|
||||
ok = false
|
||||
|
|
Loading…
Reference in a new issue