Skip to content

Commit

Permalink
Skip atuo-start cluster before scale-out action
Browse files Browse the repository at this point in the history
Fix pingcap#823

Signed-off-by: lucklove <gnu.crazier@gmail.com>
  • Loading branch information
lucklove committed Oct 16, 2020
1 parent b8f201d commit 1d6c6ee
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions pkg/cluster/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -2138,11 +2138,7 @@ func buildScaleOutTask(
afterDeploy(builder, newPart)
}

// TODO: find another way to make sure current cluster started
builder.
Func("StartCluster", func(ctx *task.Context) error {
return operator.Start(ctx, metadata.GetTopology(), operator.Options{OptTimeout: optTimeout}, tlsCfg)
}).
ClusterSSH(newPart, base.User, sshTimeout, sshType, topo.BaseTopo().GlobalOptions.SSHType).
Func("Save meta", func(_ *task.Context) error {
metadata.SetTopology(mergedTopo)
Expand Down

0 comments on commit 1d6c6ee

Please sign in to comment.