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.

fix compilation error

Chris Ludc9457fb8718
diff --git a/weed/command/fix.go b/weed/command/fix.go
index e813efc328..8903595faa 100644
--- a/weed/command/fix.go
+++ b/weed/command/fix.go
@@ -76,7 +76,7 @@ func runFix(cmd *Command, args []string) bool {
nm: nm,
}
- if err = storage.ScanVolumeFile(*fixVolumePath, *fixVolumeCollection, vid, storage.NeedleMapInMemory, scanner); err != nil {
+ if err := storage.ScanVolumeFile(*fixVolumePath, *fixVolumeCollection, vid, storage.NeedleMapInMemory, scanner); err != nil {
glog.Fatalf("scan .dat File: %v", err)
os.Remove(indexFileName)
}