fix: the inspect script to use scheme per deployment (#18118)

This commit is contained in:
Harshavardhana
2023-09-27 08:22:50 -07:00
committed by GitHub
parent 6bc7d711b3
commit 3c470a6b8b
3 changed files with 14 additions and 6 deletions
+4
View File
@@ -496,8 +496,12 @@ func (er erasureObjects) deleteIfDangling(ctx context.Context, bucket, object st
m, ok := isObjectDangling(metaArr, errs, dataErrs)
if ok {
tags := make(map[string]interface{}, 4)
tags["size"] = m.Size
tags["set"] = er.setIndex
tags["pool"] = er.poolIndex
tags["merrs"] = errors.Join(errs...)
tags["derrs"] = errors.Join(dataErrs...)
tags["mtime"] = m.ModTime.Format(http.TimeFormat)
tags["parity"] = m.Erasure.ParityBlocks
if cok {
tags["caller"] = fmt.Sprintf("%s:%d", file, line)