修复分区配置初始化写入流程
将安装向导写入、域名设置和安装完成流程统一接入分区配置事务,保留旧版配置覆盖保护。
This commit is contained in:
1 parent
20e1007f83
commit
ef4e4c2ce6
6 files changed
+205
-7
No files matched your search
@@ -26,9 +26,11 @@ func isPartitionedConfig(data []byte) (bool, error) {
|
||||
|
||||
// loadPartitionedCompatibility 仅构造旧业务所需的只读快照,不重写分区配置。
|
||||
func loadPartitionedCompatibility() (*Config, error) {
|
||||
runtime, err := NewConfigLoader(ROOT_PATH, ConfigLoaderOptions{
|
||||
Validation: RuntimeValidationOptions{HasSuperAdmin: true, Production: !DevelopmentMode},
|
||||
}).Load()
|
||||
return loadPartitionedCompatibilityWithOptions(RuntimeValidationOptions{HasSuperAdmin: true, Production: !DevelopmentMode})
|
||||
}
|
||||
|
||||
func loadPartitionedCompatibilityWithOptions(validation RuntimeValidationOptions) (*Config, error) {
|
||||
runtime, err := NewConfigLoader(ROOT_PATH, ConfigLoaderOptions{Validation: validation}).Load()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user