mirror of
https://github.com/minio/minio.git
synced 2025-01-11 15:03:22 -05:00
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
This commit is contained in:
parent
e463386921
commit
ce4563370c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user