mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 14:10:25 +03:00
Use loadCachedConfigs appropriately to load ENVs (#7187)
This commit is contained in:
committed by
Nitish Tiwari
parent
6f08edfb36
commit
ea6d61ab1f
@@ -203,6 +203,9 @@ func StartGateway(ctx *cli.Context, gw Gateway) {
|
||||
// Override any values from ENVs.
|
||||
srvCfg.loadFromEnvs()
|
||||
|
||||
// Load values to cached global values.
|
||||
srvCfg.loadToCachedConfigs()
|
||||
|
||||
// hold the mutex lock before a new config is assigned.
|
||||
globalServerConfigMu.Lock()
|
||||
globalServerConfig = srvCfg
|
||||
|
||||
Reference in New Issue
Block a user