Get the BackendInfo to fill the apporpriate struct fields (#14660)

This commit is contained in:
Krishna Srinivas 2022-03-30 10:48:35 -07:00 committed by GitHub
parent 36dcfee2f7
commit bdd816488d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -805,6 +805,7 @@ func (z *erasureServerPools) getDecommissionPoolSpaceInfo(idx int) (pi poolSpace
return pi, errInvalidArgument
}
info, _ := z.serverPools[idx].StorageInfo(context.Background())
info.Backend = z.BackendInfo()
for _, disk := range info.Disks {
if disk.Healing {
return pi, decomError{