mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 22:16:15 +03:00
do not call LocalStorageInfo on gateways (#11903)
fixes https://github.com/minio/mc/issues/3665
This commit is contained in:
@@ -69,7 +69,8 @@ func getLocalServerProperty(endpointServerPools EndpointServerPools, r *http.Req
|
|||||||
}
|
}
|
||||||
|
|
||||||
objLayer := newObjectLayerFn()
|
objLayer := newObjectLayerFn()
|
||||||
if objLayer != nil {
|
if objLayer != nil && !globalIsGateway {
|
||||||
|
// only need Disks information in server mode.
|
||||||
storageInfo, _ := objLayer.LocalStorageInfo(GlobalContext)
|
storageInfo, _ := objLayer.LocalStorageInfo(GlobalContext)
|
||||||
props.State = string(madmin.ItemOnline)
|
props.State = string(madmin.ItemOnline)
|
||||||
props.Disks = storageInfo.Disks
|
props.Disks = storageInfo.Disks
|
||||||
|
|||||||
Reference in New Issue
Block a user