Skip to content

Commit 1147ae5

Browse files
authored
fix: sharding restore count (#9900)
1 parent 5e72f57 commit 1147ae5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/apps/cluster/transformer_cluster_restore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (c *clusterRestoreTransformer) Transform(ctx graph.TransformContext, dag *g
6565
}
6666
if len(backup.Status.Targets) > int(spec.Shards) {
6767
return intctrlutil.NewErrorf(intctrlutil.ErrorTypeRestoreFailed,
68-
`the source targets count of the backup "%s" must be equal to or greater than the count of the shard components "%s"`,
68+
`the source targets count of the backup "%s" must be equal to or less than the count of the shard components "%s"`,
6969
backup.Name, spec.Name)
7070
}
7171
shardComponents, err := sharding.ListShardingComponents(c.Context, c.Client, c.Cluster, spec.Name)

0 commit comments

Comments
 (0)