vacuum metrics and force sync dst files (#3832)

This commit is contained in:
Konstantin Lebedev
2022-10-13 12:51:20 +05:00
committed by GitHub
parent f5d4952d73
commit 1f7e52c63e
8 changed files with 70 additions and 33 deletions

View File

@@ -69,6 +69,9 @@ func (df *DiskFile) Truncate(off int64) error {
}
func (df *DiskFile) Close() error {
if err := df.Sync(); err != nil {
return err
}
return df.File.Close()
}