mirror of
https://github.com/minio/minio.git
synced 2025-01-27 06:33:18 -05:00
parent
d0bb3dd136
commit
ded0b19d97
@ -234,11 +234,12 @@ func (er *erasureObjects) auditHealObject(ctx context.Context, bucket, object, v
|
|||||||
}
|
}
|
||||||
|
|
||||||
b, a := result.GetCorruptedCounts()
|
b, a := result.GetCorruptedCounts()
|
||||||
if b == a {
|
if b > 0 && b == a {
|
||||||
opts.Error = fmt.Sprintf("unable to heal %d corrupted blocks on drives", b)
|
opts.Error = fmt.Sprintf("unable to heal %d corrupted blocks on drives", b)
|
||||||
}
|
}
|
||||||
|
|
||||||
b, a = result.GetMissingCounts()
|
b, a = result.GetMissingCounts()
|
||||||
if b == a {
|
if b > 0 && b == a {
|
||||||
opts.Error = fmt.Sprintf("unable to heal %d missing blocks on drives", b)
|
opts.Error = fmt.Sprintf("unable to heal %d missing blocks on drives", b)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user