Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion controllers/apps/cluster/transformer_cluster_restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (c *clusterRestoreTransformer) Transform(ctx graph.TransformContext, dag *g
}
if len(backup.Status.Targets) > int(spec.Shards) {
return intctrlutil.NewErrorf(intctrlutil.ErrorTypeRestoreFailed,
`the source targets count of the backup "%s" must be equal to or greater than the count of the shard components "%s"`,
`the source targets count of the backup "%s" must be equal to or less than the count of the shard components "%s"`,
backup.Name, spec.Name)
}
shardComponents, err := sharding.ListShardingComponents(c.Context, c.Client, c.Cluster, spec.Name)
Expand Down