mirror of
https://github.com/minio/minio.git
synced 2025-01-13 16:03:21 -05:00
tweak healing to include version-id in healing result (#18225)
This commit is contained in:
parent
70fbcfee4a
commit
e6b0fc465b
@ -23,6 +23,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
@ -1201,6 +1202,10 @@ func healTrace(funcName healingMetric, startTime time.Time, bucket, object strin
|
|||||||
"recreate": fmt.Sprint(opts.Recreate),
|
"recreate": fmt.Sprint(opts.Recreate),
|
||||||
"mode": fmt.Sprint(opts.ScanMode),
|
"mode": fmt.Sprint(opts.ScanMode),
|
||||||
}
|
}
|
||||||
|
if result != nil {
|
||||||
|
tr.Custom["version-id"] = result.VersionID
|
||||||
|
tr.Custom["disks"] = strconv.Itoa(result.DiskCount)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
tr.Error = err.Error()
|
tr.Error = err.Error()
|
||||||
|
Loading…
Reference in New Issue
Block a user