mirror of
https://github.com/minio/minio.git
synced 2026-02-04 18:00:15 -05:00
skip healing properly in the scanner when a drive is hotplugged (#19939)
skip healing properly in scanner when drive is hotplugged due to how the state is passed around the SkipHealing might not be the true state() of the system always, causing a situation where we might healing from the scanner on the same drive which is being. Due to this competing heals get triggered that slow each other down.
This commit is contained in:
@@ -464,10 +464,7 @@ func healFreshDisk(ctx context.Context, z *erasureServerPools, endpoint Endpoint
|
||||
}
|
||||
|
||||
// Remove .healing.bin from all disks with similar heal-id
|
||||
disks, err := z.GetDisks(poolIdx, setIdx)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
disks := z.serverPools[poolIdx].sets[setIdx].getDisks()
|
||||
|
||||
for _, disk := range disks {
|
||||
if disk == nil {
|
||||
|
||||
Reference in New Issue
Block a user