mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 08:13:28 +03:00
XL: format.json healing should cater for mismatching order. (#2285)
Fresh disks can be provided in any order, we need to make sure to preserve existing disk order and populate the fresh disks in new positions. Thanks for Anis Elleuch <vadmeste@gmail.com> for finding this issue.
This commit is contained in:
@@ -152,7 +152,7 @@ func newXLObjects(disks, ignoredDisks []string) (ObjectLayer, error) {
|
||||
}
|
||||
case errSomeDiskUnformatted:
|
||||
// All drives online but some report missing format.json.
|
||||
if err := healFormatXL(storageDisks); err != nil {
|
||||
if err := healFormatXLFreshDisks(storageDisks); err != nil {
|
||||
// There was an unexpected unrecoverable error during healing.
|
||||
return nil, fmt.Errorf("Unable to heal backend %s", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user