fix: quotaCenter collect metrics failed because the wrong param (#33398)

- issue: #33397

Signed-off-by: SimFG <bang.fu@zilliz.com>
pull/33411/head
SimFG 2024-05-27 18:17:42 +08:00 committed by GitHub
parent 59a7a46904
commit 1973ebbc42
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 4 deletions

View File

@ -437,10 +437,8 @@ func (q *QuotaCenter) collectMetrics() error {
q.diskMu.Lock()
if dataCoordTopology.Cluster.Self.QuotaMetrics != nil {
q.dataCoordMetrics = dataCoordTopology.Cluster.Self.QuotaMetrics
for _, metricCollections := range q.dataCoordMetrics.PartitionsBinlogSize {
for metricCollection := range metricCollections {
datacoordQuotaCollections = append(datacoordQuotaCollections, metricCollection)
}
for metricCollection := range q.dataCoordMetrics.PartitionsBinlogSize {
datacoordQuotaCollections = append(datacoordQuotaCollections, metricCollection)
}
}
q.diskMu.Unlock()