mirror of
https://github.com/minio/minio.git
synced 2025-05-04 08:16:59 -04: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.
|
// 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.
|
// 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 {
|
func isTestSetup(infos []DiskInfo, errs []error) bool {
|
||||||
if globalIsDistXL {
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
rootDiskCount := 0
|
rootDiskCount := 0
|
||||||
for i := range errs {
|
for i := range errs {
|
||||||
if errs[i] != nil {
|
if errs[i] != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user