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.

minor: adjust ordering

chrislu7394f7feeea6
diff --git a/weed/command/fix.go b/weed/command/fix.go
index 46cfc40dbf..f0499a818b 100644
--- a/weed/command/fix.go
+++ b/weed/command/fix.go
@@ -127,11 +127,10 @@ func doFixOneVolume(basepath string, baseFileName string, collection string, vol
if err := storage.ScanVolumeFile(basepath, collection, vid, storage.NeedleMapInMemory, scanner); err != nil {
glog.Fatalf("scan .dat File: %v", err)
- os.Remove(indexFileName)
}
if err := nm.SaveToIdx(indexFileName); err != nil {
- glog.Fatalf("save to .idx File: %v", err)
os.Remove(indexFileName)
+ glog.Fatalf("save to .idx File: %v", err)
}
}