Skip to content

Commit

Permalink
Merge 9ff0f19 into 9a1ad59
Browse files Browse the repository at this point in the history
  • Loading branch information
AstroProfundis authored Aug 10, 2021
2 parents 9a1ad59 + 9ff0f19 commit 7971e74
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 7971e74

Please sign in to comment.