Avoid config migration on every startup (#16278)

This commit is contained in:
Klaus Post
2022-12-19 20:10:14 +01:00
committed by GitHub
parent ed37b7a9d5
commit b4f71362e9
8 changed files with 59 additions and 30 deletions

View File

@@ -2135,7 +2135,7 @@ func fetchHealthInfo(healthCtx context.Context, objectAPI ObjectLayer, query *ur
getAndWriteMinioConfig := func() {
if query.Get("minioconfig") == "true" {
config, err := readServerConfig(healthCtx, objectAPI)
config, err := readServerConfig(healthCtx, objectAPI, nil)
if err != nil {
healthInfo.Minio.Config = madmin.MinioConfig{
Error: err.Error(),