mirror of
https://github.com/minio/minio
synced 2024-10-14 11:52:56 +00:00
parent
120951d9e9
commit
7148c2490a
|
@ -1383,7 +1383,7 @@ func getClusterStorageMetrics() MetricsGroup {
|
||||||
read: func(ctx context.Context) (metrics []Metric) {
|
read: func(ctx context.Context) (metrics []Metric) {
|
||||||
objLayer := newObjectLayerFn()
|
objLayer := newObjectLayerFn()
|
||||||
// Service not initialized yet
|
// Service not initialized yet
|
||||||
if objLayer == nil || globalIsGateway {
|
if objLayer == nil || !globalIsErasure {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue