Fix incorrect setting loading order (#36735)

This commit is contained in:
wxiaoguang authored and GitHub committed 2026-02-24 23:46:08 +08:00
1 parent 429ba9c010
commit 75efc51e98
3 files changed
+6 -2

No files matched your search

+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)