Merge pull request #69 from prometheus/fix-finalize-tail-errhandling

Add missing error handling for finalizeTail() call
pull/5805/head
Fabian Reinartz 2017-04-28 16:05:19 +02:00 committed by GitHub
commit b098c36d27
1 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,9 @@ func (w *chunkWriter) finalizeTail() error {
func (w *chunkWriter) cut() error {
// Sync current tail to disk and close.
w.finalizeTail()
if err := w.finalizeTail(); err != nil {
return err
}
p, _, err := nextSequenceFile(w.dirFile.Name(), "")
if err != nil {