tsdb: writePostingsToTmpFiles returns nil instead of err (#6618)

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
Julien Pivotto 2020-01-13 23:40:12 +01:00 committed by Brian Brazil
parent 398bd84d6f
commit 0cff72d756

View file

@ -861,7 +861,7 @@ func (w *Writer) writePostingsToTmpFiles() error {
// Skip to next series. // Skip to next series.
d.Skip(l - (startLen - d.Len()) + crc32.Size) d.Skip(l - (startLen - d.Len()) + crc32.Size)
if err := d.Err(); err != nil { if err := d.Err(); err != nil {
return nil return err
} }
} }