Skip to content

Commit

Permalink
Prohibit the clean operations during scale-out
Browse files Browse the repository at this point in the history
  • Loading branch information
srstack committed Nov 29, 2021
1 parent 9edf64e commit 9277508
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/cluster/manager/cleanup.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ func (m *Manager) CleanCluster(name string, gOpt operator.Options, cleanOpt oper
return err
}

// check locked
if err := m.specManager.ScaleOutLockedErr(name); err != nil {
return err
}

metadata, err := m.meta(name)
if err != nil {
return err
Expand Down

0 comments on commit 9277508

Please sign in to comment.