@@ -5,6 +5,36 @@ bool StorageApp_Config_Parament(int argc,char **argv)
55 LPCXSTR lpszBaseCfg = _X (" ./XEngine_Config/XEngine_Config.json" );
66 LPCXSTR lpszLoadCfg = _X (" ./XEngine_Config/XEngine_LBConfig.json" );
77
8+
9+ if (NULL != st_ServiceCfg.st_XVer .pStl_ListStorage )
10+ {
11+ delete st_ServiceCfg.st_XVer .pStl_ListStorage ;
12+ st_ServiceCfg.st_XVer .pStl_ListStorage = NULL ;
13+ }
14+ if (NULL != st_LoadbalanceCfg.st_LoadBalance .pStl_ListBucket )
15+ {
16+ delete st_LoadbalanceCfg.st_LoadBalance .pStl_ListBucket ;
17+ st_LoadbalanceCfg.st_LoadBalance .pStl_ListBucket = NULL ;
18+ }
19+ if (NULL != st_LoadbalanceCfg.st_LoadBalance .pStl_ListCenter )
20+ {
21+ delete st_LoadbalanceCfg.st_LoadBalance .pStl_ListCenter ;
22+ st_LoadbalanceCfg.st_LoadBalance .pStl_ListCenter = NULL ;
23+ }
24+ if (NULL != st_LoadbalanceCfg.st_LoadBalance .pStl_ListDownload )
25+ {
26+ delete st_LoadbalanceCfg.st_LoadBalance .pStl_ListDownload ;
27+ st_LoadbalanceCfg.st_LoadBalance .pStl_ListDownload = NULL ;
28+ }
29+ if (NULL != st_LoadbalanceCfg.st_LoadBalance .pStl_ListUPLoader )
30+ {
31+ delete st_LoadbalanceCfg.st_LoadBalance .pStl_ListUPLoader ;
32+ st_LoadbalanceCfg.st_LoadBalance .pStl_ListUPLoader = NULL ;
33+ }
34+
35+ memset (&st_ServiceCfg, ' \0 ' , sizeof (XENGINE_SERVERCONFIG));
36+ memset (&st_LoadbalanceCfg, ' \0 ' , sizeof (XENGINE_LBCONFIG));
37+
838 if (!Config_Json_File (lpszBaseCfg, &st_ServiceCfg))
939 {
1040 printf (" 解析配置文件失败,Config_Json_File:%lX\n " ,Config_GetLastError ());
0 commit comments