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.

avoid file not exist error

Chris Lu018df9ceb04e
diff --git a/go/topology/topology.go b/go/topology/topology.go
index 74dc1cd09f..6f18a73eea 100644
--- a/go/topology/topology.go
+++ b/go/topology/topology.go
@@ -53,8 +53,9 @@ func (t *Topology) loadConfiguration(configurationFile string) error {
b, e := ioutil.ReadFile(configurationFile)
if e == nil {
t.configuration, e = NewConfiguration(b)
+ return e
}
- return e
+ return nil
}
func (t *Topology) Lookup(vid storage.VolumeId) []*DataNode {