From 8ecffdb7a7265f12f35f71fbe3d720cfe7f14bb8 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Mon, 8 Mar 2021 16:12:17 -0800 Subject: [PATCH] Revert "Revert "heal: Heal bucket metadata when a fresh disk is inserted (#11734)"" This reverts commit 806df164b2e768da9af0e7ae150c0fe8f4811321. --- cmd/background-newdisks-heal-ops.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/background-newdisks-heal-ops.go b/cmd/background-newdisks-heal-ops.go index 36c398940..48f89944f 100644 --- a/cmd/background-newdisks-heal-ops.go +++ b/cmd/background-newdisks-heal-ops.go @@ -375,6 +375,12 @@ func monitorLocalDisksAndHeal(ctx context.Context, z *erasureServerPools, bgSeq Name: pathJoin(minioMetaBucket, minioConfigPrefix), }) + // Buckets data are dispersed in multiple zones/sets, make + // sure to heal all bucket metadata configuration. + buckets = append(buckets, []BucketInfo{ + {Name: pathJoin(minioMetaBucket, bucketMetaPrefix)}, + }...) + // Heal latest buckets first. sort.Slice(buckets, func(i, j int) bool { a, b := strings.HasPrefix(buckets[i].Name, minioMetaBucket), strings.HasPrefix(buckets[j].Name, minioMetaBucket)