From 0cff72d756d3b0eb1690dce66b9ca62b32f1deb8 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Mon, 13 Jan 2020 23:40:12 +0100 Subject: [PATCH] tsdb: writePostingsToTmpFiles returns nil instead of err (#6618) Signed-off-by: Julien Pivotto --- tsdb/index/index.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tsdb/index/index.go b/tsdb/index/index.go index d7f8e40fa3..744f24f88e 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 } }