Skip to content

Commit 96b249b

Browse files
loomtsapecloud-bot
authored andcommitted
fix: sharding restore count (#9900)
(cherry picked from commit 1147ae5)
1 parent 2136c28 commit 96b249b

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
@@ -64,7 +64,7 @@ func (c *clusterRestoreTransformer) Transform(ctx graph.TransformContext, dag *g
6464
}
6565
if len(backup.Status.Targets) > int(spec.Shards) {
6666
return intctrlutil.NewErrorf(intctrlutil.ErrorTypeRestoreFailed,
67-
`the source targets count of the backup "%s" must be equal to or greater than the count of the shard components "%s"`,
67+
`the source targets count of the backup "%s" must be equal to or less than the count of the shard components "%s"`,
6868
backup.Name, spec.Name)
6969
}
7070
shardComponents, err := intctrlutil.ListShardingComponents(c.Context, c.Client, c.Cluster, spec.Name)

0 commit comments

Comments
 (0)