Fix incorrect setting loading order (#36735)

This commit is contained in:
wxiaoguang
2026-02-24 23:46:08 +08:00
committed by GitHub
parent 429ba9c010
commit 75efc51e98
3 changed files with 6 additions and 2 deletions
+3
View File
@@ -108,6 +108,9 @@ func LoadCommonSettings() {
// loadCommonSettingsFrom loads common configurations from a configuration provider.
func loadCommonSettingsFrom(cfg ConfigProvider) error {
// a lot of logic depends on InstallLock value, so it must be loaded before any other settings
InstallLock = HasInstallLock(cfg)
// WARNING: don't change the sequence except you know what you are doing.
loadRunModeFrom(cfg)
loadLogGlobalFrom(cfg)