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.

checking error

Chris Lu38f4425a6562
diff --git a/go/weed/export.go b/go/weed/export.go
index fd9d51164f..6b391024a2 100644
--- a/go/weed/export.go
+++ b/go/weed/export.go
@@ -89,7 +89,10 @@ func runExport(cmd *Command, args []string) bool {
}
defer indexFile.Close()
- nm := storage.LoadNeedleMap(indexFile)
+ nm, err := storage.LoadNeedleMap(indexFile)
+ if err != nil {
+ log.Fatalf("cannot load needle map from %s: %s", indexFile, err)
+ }
var version storage.Version