tweak healing to include version-id in healing result (#18225)

This commit is contained in:
Klaus Post 2023-11-22 12:30:31 -08:00 committed by GitHub
parent 70fbcfee4a
commit e6b0fc465b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()