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.

return nil if no error

Chris Lue8193ec201c9
diff --git a/go/topology/store_replicate.go b/go/topology/store_replicate.go
index 95799e4972..f67ea7732d 100644
--- a/go/topology/store_replicate.go
+++ b/go/topology/store_replicate.go
@@ -107,6 +107,9 @@ func (dr DistributedOperationResult) Error() error {
errs = append(errs, fmt.Sprintf("[%s]: %v", k, v))
}
}
+ if len(errs) == 0 {
+ return nil
+ }
return errors.New(strings.Join(errs, "\n"))
}