From 41079f10156b1ae0e0872acb61e4a805211926b0 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 10 Mar 2022 02:45:14 -0800 Subject: [PATCH] heal: remove blocking healDiskMeta upon startup (#14514) This type of code is not necessary, read's of all metadata content at `.minio.sys/config` automatically triggers healing when necessary in the GetObjectNInfo() call-path. Having this code is not useful and this also adds to the overall startup time of MinIO when there are lots of users and policies. --- cmd/background-newdisks-heal-ops.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/cmd/background-newdisks-heal-ops.go b/cmd/background-newdisks-heal-ops.go index 1f74d245e..261eed1b5 100644 --- a/cmd/background-newdisks-heal-ops.go +++ b/cmd/background-newdisks-heal-ops.go @@ -277,14 +277,6 @@ func initAutoHeal(ctx context.Context, objAPI ObjectLayer) { } } - if err := bgSeq.healDiskMeta(objAPI); err != nil { - if newObjectLayerFn() != nil { - // log only in situations, when object layer - // has fully initialized. - logger.LogIf(bgSeq.ctx, err) - } - } - go monitorLocalDisksAndHeal(ctx, z, bgSeq) }