Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

also remove Sync() for idx file

chrislu06a8b174b598
diff --git a/weed/storage/volume_vacuum.go b/weed/storage/volume_vacuum.go
index 1ad4689588..143e6be6d0 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