Skip to content

Commit

Permalink
cluster: skip updating topology when reload with --skip-restart (#1513)
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroProfundis authored Aug 10, 2021
1 parent 9a1ad59 commit 8195da3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkg/cluster/manager/reload.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ func (m *Manager) Reload(name string, gOpt operator.Options, skipRestart, skipCo
if err != nil {
return err
}
if topo.Type() == spec.TopoTypeTiDB {
if topo.Type() == spec.TopoTypeTiDB && !skipRestart {
b.UpdateTopology(
name,
m.specManager.Path(name),
Expand All @@ -117,11 +117,11 @@ func (m *Manager) Reload(name string, gOpt operator.Options, skipRestart, skipCo
b.ParallelStep("+ Refresh monitor configs", gOpt.Force, monitorConfigTasks...)
}

tlsCfg, err := topo.TLSConfig(m.specManager.Path(name, spec.TLSCertKeyDir))
if err != nil {
return err
}
if !skipRestart {
tlsCfg, err := topo.TLSConfig(m.specManager.Path(name, spec.TLSCertKeyDir))
if err != nil {
return err
}
b.Func("UpgradeCluster", func(ctx context.Context) error {
return operator.Upgrade(ctx, topo, gOpt, tlsCfg)
})
Expand Down

0 comments on commit 8195da3

Please sign in to comment.