mirror of
https://github.com/minio/minio.git
synced 2024-12-23 21:55:53 -05: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 {
|
||||
continue
|
||||
}
|
||||
if err := saveFormatErasure(storageDisks[index], format, true); err != nil {
|
||||
return err
|
||||
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
Block a user