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 nil

chrisludecfb07eea83
diff --git a/weed/cluster/master_client.go b/weed/cluster/master_client.go
index bab2360feb..69c53c1ded 100644
--- a/weed/cluster/master_client.go
+++ b/weed/cluster/master_client.go
@@ -16,6 +16,9 @@ func ListExistingPeerUpdates(master pb.ServerAddress, grpcDialOption grpc.DialOp
ClientType: clientType,
FilerGroup: filerGroup,
})
+ if err != nil {
+ return err
+ }
glog.V(0).Infof("the cluster has %d %s\n", len(resp.ClusterNodes), clientType)
for _, node := range resp.ClusterNodes {
@@ -26,7 +29,7 @@ func ListExistingPeerUpdates(master pb.ServerAddress, grpcDialOption grpc.DialOp
CreatedAtNs: node.CreatedAtNs,
})
}
- return err
+ return nil
}); grpcErr != nil {
glog.V(0).Infof("connect to %s: %v", master, grpcErr)
}