diff --git a/tsdb/index/index.go b/tsdb/index/index.go index d7f8e40fa..744f24f88 100644 --- a/tsdb/index/index.go +++ b/tsdb/index/index.go @@ -861,7 +861,7 @@ func (w *Writer) writePostingsToTmpFiles() error { // Skip to next series. d.Skip(l - (startLen - d.Len()) + crc32.Size) if err := d.Err(); err != nil { - return nil + return err } }