volume: sync volume file right before compaction

fix https://github.com/chrislusf/seaweedfs/issues/1237
This commit is contained in:
Chris Lu
2020-03-19 23:54:52 -07:00
parent 709f231e23
commit 81797a059a
5 changed files with 22 additions and 0 deletions

View File

@@ -58,3 +58,7 @@ func (mmf *MemoryMappedFile) GetStat() (datSize int64, modTime time.Time, err er
func (mmf *MemoryMappedFile) Name() string {
return mmf.mm.File.Name()
}
func (mm *MemoryMappedFile) Sync() error {
return nil
}