mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
allow restarting of decommissioning if completed, failed or canceld (#16464)
This commit is contained in:
parent
ca2a1c3f60
commit
d67a846ec4
@ -569,7 +569,10 @@ func (z *erasureServerPools) IsDecommissionRunning() bool {
|
||||
defer z.poolMetaMutex.RUnlock()
|
||||
meta := z.poolMeta
|
||||
for _, pool := range meta.Pools {
|
||||
if pool.Decommission != nil {
|
||||
if pool.Decommission != nil &&
|
||||
!pool.Decommission.Complete &&
|
||||
!pool.Decommission.Failed &&
|
||||
!pool.Decommission.Canceled {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user