Add missing error handling for finalizeTail() call

This commit is contained in:
Julius Volz 2017-04-28 15:59:23 +02:00
parent a5322c50fc
commit 9a3d857d8b

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 {