mirror of
https://github.com/minio/minio.git
synced 2025-03-31 17:53:43 -04: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()
|
defer z.poolMetaMutex.RUnlock()
|
||||||
meta := z.poolMeta
|
meta := z.poolMeta
|
||||||
for _, pool := range meta.Pools {
|
for _, pool := range meta.Pools {
|
||||||
if pool.Decommission != nil {
|
if pool.Decommission != nil &&
|
||||||
|
!pool.Decommission.Complete &&
|
||||||
|
!pool.Decommission.Failed &&
|
||||||
|
!pool.Decommission.Canceled {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user