From ce4563370cbbee2d67e86f1ba4668cce16b2cd03 Mon Sep 17 00:00:00 2001 From: kannappanr <30541348+kannappanr@users.noreply.github.com> Date: Tue, 12 Mar 2019 16:47:06 -0700 Subject: [PATCH] Distributed: Allow healing if all disks are on root partitions (#7358) If all the disks are on root partitions in distributed mode, consider it to be a test setup and allow healing to proceed. Fixes #7346 --- cmd/xl-sets.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/cmd/xl-sets.go b/cmd/xl-sets.go index 92d46be40..809cbe4e8 100644 --- a/cmd/xl-sets.go +++ b/cmd/xl-sets.go @@ -1010,9 +1010,6 @@ func (s *xlSets) ReloadFormat(ctx context.Context, dryRun bool) (err error) { // If it is a single node XL and all disks are root disks, it is most likely a test setup, else it is a production setup. // On a test setup we allow creation of format.json on root disks to help with dev/testing. func isTestSetup(infos []DiskInfo, errs []error) bool { - if globalIsDistXL { - return false - } rootDiskCount := 0 for i := range errs { if errs[i] != nil {