mirror of
https://github.com/minio/minio.git
synced 2025-01-23 20:53:18 -05:00
Allow decomission of pool even if a drive in it is down (#14656)
This commit is contained in:
parent
4d13ddf6b3
commit
36dcfee2f7
@ -804,13 +804,7 @@ func (z *erasureServerPools) getDecommissionPoolSpaceInfo(idx int) (pi poolSpace
|
||||
if idx+1 > len(z.serverPools) {
|
||||
return pi, errInvalidArgument
|
||||
}
|
||||
info, errs := z.serverPools[idx].StorageInfo(context.Background())
|
||||
for _, err := range errs {
|
||||
if err != nil {
|
||||
return pi, errInvalidArgument
|
||||
}
|
||||
}
|
||||
info.Backend = z.BackendInfo()
|
||||
info, _ := z.serverPools[idx].StorageInfo(context.Background())
|
||||
for _, disk := range info.Disks {
|
||||
if disk.Healing {
|
||||
return pi, decomError{
|
||||
|
Loading…
x
Reference in New Issue
Block a user