From fa50312220ee56a46f93f1e4eb14817c5838ea42 Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Mon, 17 Oct 2016 16:39:55 +0100 Subject: [PATCH] Avoid returning disk corrupted by servers in the middle of init all disks formats (#2964) --- cmd/prepare-storage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/prepare-storage.go b/cmd/prepare-storage.go index 1dcb3e8bd..5832908e2 100644 --- a/cmd/prepare-storage.go +++ b/cmd/prepare-storage.go @@ -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. if disksUnformatted >= quorum { // 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 } // Some disks possibly corrupted and too many unformatted disks.