Allow decomission of pool even if a drive in it is down (#14656)

This commit is contained in:
Krishna Srinivas 2022-03-29 22:51:31 -07:00 committed by GitHub
parent 4d13ddf6b3
commit 36dcfee2f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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{