[MM-16719] Setting the MM_SQLSETTINGS_DATASOURCEREPLICAS environment variable breaks the server startup (#11504)
* [MM-16719] fixing reflection: now recursing on value, not interface adding defaults to cfgWithoutEnvOverrides adding tests * don't modify the minimalConfig
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
620d941b6e
Коммит
8d100af052
@@ -110,6 +110,7 @@ func (cs *commonStore) load(f io.ReadCloser, needsSave bool, validate func(*mode
|
||||
needsSave = needsSave || loadedCfg.FileSettings.PublicLinkSalt == nil || len(*loadedCfg.FileSettings.PublicLinkSalt) == 0
|
||||
|
||||
loadedCfg.SetDefaults()
|
||||
loadedCfgWithoutEnvOverrides.SetDefaults()
|
||||
|
||||
if validate != nil {
|
||||
if err = validate(loadedCfg); err != nil {
|
||||
|
||||
Ссылка в новой задаче
Block a user