mirror of
https://github.com/minio/minio.git
synced 2025-02-25 12:29:15 -05:00
do not call LocalStorageInfo on gateways (#11903)
fixes https://github.com/minio/mc/issues/3665
This commit is contained in:
parent
90d8ec6310
commit
cf87303094
@ -69,7 +69,8 @@ func getLocalServerProperty(endpointServerPools EndpointServerPools, r *http.Req
|
||||
}
|
||||
|
||||
objLayer := newObjectLayerFn()
|
||||
if objLayer != nil {
|
||||
if objLayer != nil && !globalIsGateway {
|
||||
// only need Disks information in server mode.
|
||||
storageInfo, _ := objLayer.LocalStorageInfo(GlobalContext)
|
||||
props.State = string(madmin.ItemOnline)
|
||||
props.Disks = storageInfo.Disks
|
||||
|
Loading…
x
Reference in New Issue
Block a user