expect full quorum for writing 'format.json' everywhere (#15362)

This commit is contained in:
jiuker 2022-07-22 09:04:17 +08:00 committed by GitHub
parent 7560fb6f9a
commit 3faef829c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -646,9 +646,8 @@ func saveFormatErasureAll(ctx context.Context, storageDisks []StorageAPI, format
}, index) }, index)
} }
writeQuorum := (len(storageDisks) + 1/2)
// Wait for the routines to finish. // Wait for the routines to finish.
return reduceWriteQuorumErrs(ctx, g.Wait(), nil, writeQuorum) return reduceWriteQuorumErrs(ctx, g.Wait(), nil, len(storageDisks))
} }
// relinquishes the underlying connection for all storage disks. // relinquishes the underlying connection for all storage disks.