mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -05:00
Avoid returning disk corrupted by servers in the middle of init all disks formats (#2964)
This commit is contained in:
parent
fee3f99a6e
commit
fa50312220
@ -165,7 +165,7 @@ func prepForInitXL(firstDisk bool, sErrs []error, diskCount int) InitActions {
|
|||||||
// Total disks unformatted are in quorum verify if we have some offline disks.
|
// Total disks unformatted are in quorum verify if we have some offline disks.
|
||||||
if disksUnformatted >= quorum {
|
if disksUnformatted >= quorum {
|
||||||
// Some disks offline and some disks unformatted, wait for all of them to come online.
|
// Some disks offline and some disks unformatted, wait for all of them to come online.
|
||||||
if disksUnformatted+disksOffline == diskCount {
|
if disksUnformatted+disksFormatted+disksOffline == diskCount {
|
||||||
return WaitForAll
|
return WaitForAll
|
||||||
}
|
}
|
||||||
// Some disks possibly corrupted and too many unformatted disks.
|
// Some disks possibly corrupted and too many unformatted disks.
|
||||||
|
Loading…
Reference in New Issue
Block a user