mirror of
https://github.com/minio/minio.git
synced 2025-05-21 09:33:50 -04:00
fix: skip disks that are offline when healing the drives (#12931)
This commit is contained in:
parent
3becee9e5d
commit
9e88941515
@ -705,8 +705,10 @@ func saveUnformattedFormat(ctx context.Context, storageDisks []StorageAPI, forma
|
|||||||
if format == nil {
|
if format == nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if err := saveFormatErasure(storageDisks[index], format, true); err != nil {
|
if storageDisks[index] != nil && storageDisks[index].IsOnline() {
|
||||||
return err
|
if err := saveFormatErasure(storageDisks[index], format, true); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user