mirror of
https://github.com/minio/minio.git
synced 2025-02-25 04:19:13 -05:00
fix: provide a possible slice cap for heal failed metrics items (#17647)
Signed-off-by: Wu <yang.wu@daocloud.io>
This commit is contained in:
parent
005a4a275a
commit
04c792476f
@ -1664,8 +1664,9 @@ func getMinioHealingMetrics() *MetricsGroup {
|
||||
}
|
||||
|
||||
func getFailedItems(seq *healSequence) (m []Metric) {
|
||||
m = make([]Metric, 0, 1)
|
||||
for k, v := range seq.gethealFailedItemsMap() {
|
||||
items := seq.gethealFailedItemsMap()
|
||||
m = make([]Metric, 0, len(items))
|
||||
for k, v := range items {
|
||||
s := strings.Split(k, ",")
|
||||
m = append(m, Metric{
|
||||
Description: getHealObjectsFailTotalMD(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user