Improve init messages for distributed setup (#5786)

Fixes #5531
This commit is contained in:
Harshavardhana
2018-04-12 15:43:38 -07:00
committed by GitHub
parent e39de65367
commit 1f07545e2a
3 changed files with 26 additions and 4 deletions

View File

@@ -314,6 +314,11 @@ func shouldInitXLDisks(errs []error) bool {
return countErrs(errs, errUnformattedDisk) == len(errs)
}
// Check if unformatted disks are equal to write quorum.
func quorumUnformattedDisks(errs []error) bool {
return countErrs(errs, errUnformattedDisk) >= (len(errs)/2)+1
}
// loadFormatXLAll - load all format config from all input disks in parallel.
func loadFormatXLAll(storageDisks []StorageAPI) ([]*formatXLV3, []error) {
// Initialize sync waitgroup.