diff options
| author | chrislu <chris.lu@gmail.com> | 2022-06-30 13:50:53 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2022-06-30 13:50:53 -0700 |
| commit | 06a8b174b598676306643d937570102083d2c594 (patch) | |
| tree | 2c61d4c59302d9e02478eb7f56972a3d3af753a6 | |
| parent | 52580743b9de1931b149e1df40e27048d99ca3bf (diff) | |
| download | seaweedfs-06a8b174b598676306643d937570102083d2c594.tar.xz seaweedfs-06a8b174b598676306643d937570102083d2c594.zip | |
also remove Sync() for idx file
| -rw-r--r-- | weed/storage/volume_vacuum.go | 3 |
1 files changed, 0 insertions, 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 |
