From 3faef829c51228ce56b8218037defef30dcb1c87 Mon Sep 17 00:00:00 2001 From: jiuker <2818723467@qq.com> Date: Fri, 22 Jul 2022 09:04:17 +0800 Subject: [PATCH] expect full quorum for writing 'format.json' everywhere (#15362) --- cmd/format-erasure.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/format-erasure.go b/cmd/format-erasure.go index ddc22b009..495655fe8 100644 --- a/cmd/format-erasure.go +++ b/cmd/format-erasure.go @@ -646,9 +646,8 @@ func saveFormatErasureAll(ctx context.Context, storageDisks []StorageAPI, format }, index) } - writeQuorum := (len(storageDisks) + 1/2) // 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.