mirror of
https://github.com/minio/minio.git
synced 2025-04-25 12:34:03 -04:00
Don't autoheal if disks are healing (#11558)
Don't spawn automatic healing ops if a disk is healing.
This commit is contained in:
parent
aa8450a2a1
commit
11b2220696
@ -328,7 +328,9 @@ func (er erasureObjects) getObjectWithFileInfo(ctx context.Context, bucket, obje
|
|||||||
}
|
}
|
||||||
if scan != madmin.HealUnknownScan {
|
if scan != madmin.HealUnknownScan {
|
||||||
healOnce.Do(func() {
|
healOnce.Do(func() {
|
||||||
go healObject(bucket, object, fi.VersionID, scan)
|
if _, healing := er.getOnlineDisksWithHealing(); !healing {
|
||||||
|
go healObject(bucket, object, fi.VersionID, scan)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -438,7 +440,9 @@ func (er erasureObjects) getObjectFileInfo(ctx context.Context, bucket, object s
|
|||||||
|
|
||||||
// if missing metadata can be reconstructed, attempt to reconstruct.
|
// if missing metadata can be reconstructed, attempt to reconstruct.
|
||||||
if missingBlocks > 0 && missingBlocks < readQuorum {
|
if missingBlocks > 0 && missingBlocks < readQuorum {
|
||||||
go healObject(bucket, object, fi.VersionID, madmin.HealNormalScan)
|
if _, healing := er.getOnlineDisksWithHealing(); !healing {
|
||||||
|
go healObject(bucket, object, fi.VersionID, madmin.HealNormalScan)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return fi, metaArr, onlineDisks, nil
|
return fi, metaArr, onlineDisks, nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user