mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
fix: prevent queries from starting before initialization (#18756)
Prevent queries from starting before initialization
This commit is contained in:
parent
2cd98a0d21
commit
53ceb0791f
@ -2021,6 +2021,11 @@ func getReplicationClusterMetrics() *MetricsGroup {
|
||||
|
||||
mg.RegisterRead(func(_ context.Context) []Metric {
|
||||
var ml []Metric
|
||||
objLayer := newObjectLayerFn()
|
||||
// Service not initialized yet
|
||||
if objLayer == nil {
|
||||
return ml
|
||||
}
|
||||
// common operational metrics for bucket replication and site replication - published
|
||||
// at cluster level
|
||||
if globalReplicationStats != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user