Fix output file chunks sizes

Should reset file chunk size only when we doing final file close
This commit is contained in:
Leonid Bugaev
2021-08-30 19:11:50 +03:00
parent fcb215bcc4
commit ad65c854b7
+2 -1
View File
@@ -195,7 +195,6 @@ func (o *FileOutput) filename() string {
if nextChunk {
fileIndex++
o.currentFileSize = 0
}
}
@@ -309,6 +308,8 @@ func (o *FileOutput) closeLocked() error {
}
o.closed = true
o.currentFileSize = 0
return nil
}