Skip to content

Commit

Permalink
fix pr comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Y-Rookie committed Dec 18, 2024
1 parent 84f57d9 commit 0ccee5a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions controllers/apps/cluster_plan_builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,7 @@ func (c *clusterTransformContext) sharding(name string) (bool, error) {
// sharding defined in cd topology
if len(c.Cluster.Spec.ClusterDef) > 0 && len(c.Cluster.Spec.Topology) > 0 {
if c.clusterDef == nil {
if err := loadNCheckClusterDefinition(c, c.Cluster); err != nil {
return false, err
}
return false, fmt.Errorf("clusterDefinition is not initialized")
}
for _, topo := range c.clusterDef.Spec.Topologies {
if c.Cluster.Spec.Topology != topo.Name {
Expand Down

0 comments on commit 0ccee5a

Please sign in to comment.