From 06a8b174b598676306643d937570102083d2c594 Mon Sep 17 00:00:00 2001 From: chrislu Date: Thu, 30 Jun 2022 13:50:53 -0700 Subject: [PATCH] also remove Sync() for idx file --- weed/storage/volume_vacuum.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/weed/storage/volume_vacuum.go b/weed/storage/volume_vacuum.go index 1ad468958..143e6be6d 100644 --- a/weed/storage/volume_vacuum.go +++ b/weed/storage/volume_vacuum.go @@ -317,9 +317,6 @@ func (v *Volume) makeupDiff(newDatFileName, newIdxFileName, oldDatFileName, oldI if err != nil { return fmt.Errorf("cannot write indexfile %s: %v", newIdxFileName, err) } - if err := idx.Sync(); err != nil { - return fmt.Errorf("cannot sync indexfile %s: %v", newIdxFileName, err) - } } return nil