mirror of https://github.com/prometheus/prometheus
Merge pull request #69 from prometheus/fix-finalize-tail-errhandling
Add missing error handling for finalizeTail() callpull/5805/head
commit
b098c36d27
|
@ -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 New Issue