Skip to content

Commit ded0b19

Browse files
avoid audit logs with unexpected errors (minio#20516)
fixes minio#20513
1 parent d0bb3dd commit ded0b19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/erasure-healing.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -234,11 +234,12 @@ func (er *erasureObjects) auditHealObject(ctx context.Context, bucket, object, v
234234
}
235235

236236
b, a := result.GetCorruptedCounts()
237-
if b == a {
237+
if b > 0 && b == a {
238238
opts.Error = fmt.Sprintf("unable to heal %d corrupted blocks on drives", b)
239239
}
240+
240241
b, a = result.GetMissingCounts()
241-
if b == a {
242+
if b > 0 && b == a {
242243
opts.Error = fmt.Sprintf("unable to heal %d missing blocks on drives", b)
243244
}
244245

0 commit comments

Comments
 (0)