diff --git a/storage/local/persistence.go b/storage/local/persistence.go index 5702c8e57..590a6256a 100644 --- a/storage/local/persistence.go +++ b/storage/local/persistence.go @@ -505,6 +505,7 @@ func (p *persistence) checkpointSeriesMapAndHeads(fingerprintToSeries *seriesMap } defer func() { + f.Sync() closeErr := f.Close() if err != nil { return