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