mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
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 {
|
||||
// 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 {
|
||||
|
|
Loading…
Reference in a new issue