Add missing error handling for finalizeTail() call
This commit is contained in:
parent
a5322c50fc
commit
9a3d857d8b
|
@ -125,7 +125,9 @@ func (w *chunkWriter) finalizeTail() error {
|
||||||
|
|
||||||
func (w *chunkWriter) cut() error {
|
func (w *chunkWriter) cut() error {
|
||||||
// Sync current tail to disk and close.
|
// Sync current tail to disk and close.
|
||||||
w.finalizeTail()
|
if err := w.finalizeTail(); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
p, _, err := nextSequenceFile(w.dirFile.Name(), "")
|
p, _, err := nextSequenceFile(w.dirFile.Name(), "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue