Skip to content

Commit b02668f

Browse files
authored
fix: sharding restore count (#9900) (#9902)
1 parent 5684fe7 commit b02668f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/apps/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(shardingSpec.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, shardingSpec.Name)
6969
}
7070
shardComponents, err := intctrlutil.ListShardingComponents(c.Context, c.Client, c.Cluster, shardingSpec.Name)

0 commit comments

Comments
 (0)