do not call LocalStorageInfo on gateways (#11903)

fixes https://github.com/minio/mc/issues/3665
This commit is contained in:
Harshavardhana
2021-03-25 15:26:22 -07:00
committed by GitHub
parent 90d8ec6310
commit cf87303094

View File

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