0
0

add fsync

This commit is contained in:
Marty Schoch 2017-12-09 20:52:01 -05:00
parent e0d9828cd0
commit dc0adc8827

View File

@ -87,6 +87,11 @@ func PersistSegment(memSegment *mem.Segment, path string, chunkFactor uint32) (e
return err
}
err = f.Sync()
if err != nil {
return err
}
err = f.Close()
if err != nil {
return err