Merge pull request #590 from prometheus/beorn7/fix

Sync the checkpoints.
This commit is contained in:
Björn Rabenstein 2015-03-11 23:39:07 +01:00
commit d797546b2d

View file

@ -505,6 +505,7 @@ func (p *persistence) checkpointSeriesMapAndHeads(fingerprintToSeries *seriesMap
}
defer func() {
f.Sync()
closeErr := f.Close()
if err != nil {
return