From e6b0fc465bb7d5f1ce60da5329d85f57bb3c7ba4 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Wed, 22 Nov 2023 12:30:31 -0800 Subject: [PATCH] tweak healing to include version-id in healing result (#18225) --- cmd/erasure-healing.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/erasure-healing.go b/cmd/erasure-healing.go index 21106c0aa..0637dac29 100644 --- a/cmd/erasure-healing.go +++ b/cmd/erasure-healing.go @@ -23,6 +23,7 @@ import ( "errors" "fmt" "io" + "strconv" "strings" "sync" "time" @@ -1201,6 +1202,10 @@ func healTrace(funcName healingMetric, startTime time.Time, bucket, object strin "recreate": fmt.Sprint(opts.Recreate), "mode": fmt.Sprint(opts.ScanMode), } + if result != nil { + tr.Custom["version-id"] = result.VersionID + tr.Custom["disks"] = strconv.Itoa(result.DiskCount) + } } if err != nil { tr.Error = err.Error()