mirror of
https://github.com/minio/minio.git
synced 2026-11-25 23:23:49 +00:00
allow restarting of decommissioning if completed, failed or canceld (#16464)
This commit is contained in:
1 parent
ca2a1c3f60
commit
d67a846ec4
1 file changed
+4
-1
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user