mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 14:10:25 +03:00
fix: skip disks that are offline when healing the drives (#12931)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user