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.
This commit is contained in:
Harshavardhana 2022-03-10 02:45:14 -08:00 committed by GitHub
parent 712dfa40cd
commit 41079f1015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) go monitorLocalDisksAndHeal(ctx, z, bgSeq)
} }