Handle errSeriesDropped correctly

If metrics_relabel_configs are used to drop metrics, an errSeriesDropped
is returned. This shouldn't be used to return an error at the end of a
append() call.
This commit is contained in:
Tobias Schmidt 2017-05-05 14:58:36 +02:00
parent 8c483e27d3
commit 368206d2f5
1 changed files with 2 additions and 0 deletions

View File

@ -554,6 +554,7 @@ loop:
case storage.ErrNotFound:
ok = false
case errSeriesDropped:
err = nil
continue
default:
break loop
@ -568,6 +569,7 @@ loop:
switch err {
case nil:
case errSeriesDropped:
err = nil
continue
default:
break loop