mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 08:13:28 +03:00
+1
-1
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user