volume: sync volume file right before compaction
fix https://github.com/chrislusf/seaweedfs/issues/1237
This commit is contained in:
@@ -48,3 +48,7 @@ func (df *DiskFile) GetStat() (datSize int64, modTime time.Time, err error) {
|
||||
func (df *DiskFile) Name() string {
|
||||
return df.fullFilePath
|
||||
}
|
||||
|
||||
func (df *DiskFile) Sync() error {
|
||||
return df.File.Sync()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user