@@ -296,44 +296,36 @@ bool CConfig_Json::Config_Json_LoadBalance(LPCXSTR lpszConfigFile, XENGINE_LBCON
296296 }
297297 pSt_ServerConfig->bDistributed = st_JsonRoot[" bDistributed" ].asInt ();
298298
299- if (st_JsonRoot[" LBDistributed" ].empty () || (4 != st_JsonRoot[" LBDistributed" ].size ()))
299+ if (st_JsonRoot[" LBDistributed" ].empty () || (3 != st_JsonRoot[" LBDistributed" ].size ()))
300300 {
301301 Config_IsErrorOccur = true ;
302302 Config_dwErrorCode = ERROR_XENGINE_BLOGIC_CONFIG_JSON_LBDISTRIBUTED;
303303 return false ;
304304 }
305305 Json::Value st_JsonLBDistributed = st_JsonRoot[" LBDistributed" ];
306- pSt_ServerConfig->st_LBDistributed .nCenterMode = st_JsonLBDistributed[" nCenterMode" ].asInt ();
307306 pSt_ServerConfig->st_LBDistributed .nUPLoadMode = st_JsonLBDistributed[" nUPLoadMode" ].asInt ();
308307 pSt_ServerConfig->st_LBDistributed .nDownldMode = st_JsonLBDistributed[" nDownldMode" ].asInt ();
309308 pSt_ServerConfig->st_LBDistributed .nStorageMode = st_JsonLBDistributed[" nStorageMode" ].asInt ();
310309
311- if (st_JsonRoot[" LBLocation" ].empty () || (4 != st_JsonRoot[" LBLocation" ].size ()))
310+ if (st_JsonRoot[" LBLocation" ].empty () || (3 != st_JsonRoot[" LBLocation" ].size ()))
312311 {
313312 Config_IsErrorOccur = true ;
314313 Config_dwErrorCode = ERROR_XENGINE_BLOGIC_CONFIG_JSON_LBLOCATION;
315314 return false ;
316315 }
317316 Json::Value st_JsonLBLocation = st_JsonRoot[" LBLocation" ];
318- pSt_ServerConfig->st_LBLocation .nCenterMode = st_JsonLBLocation[" nCenterMode" ].asInt ();
319317 pSt_ServerConfig->st_LBLocation .nUPLoadMode = st_JsonLBLocation[" nUPLoadMode" ].asInt ();
320318 pSt_ServerConfig->st_LBLocation .nDownldMode = st_JsonLBLocation[" nDownldMode" ].asInt ();
321319 pSt_ServerConfig->st_LBLocation .nStorageMode = st_JsonLBLocation[" nStorageMode" ].asInt ();
322320
323- if (st_JsonRoot[" LoadBalance" ].empty () || (4 != st_JsonRoot[" LoadBalance" ].size ()))
321+ if (st_JsonRoot[" LoadBalance" ].empty () || (3 != st_JsonRoot[" LoadBalance" ].size ()))
324322 {
325323 Config_IsErrorOccur = true ;
326324 Config_dwErrorCode = ERROR_XENGINE_BLOGIC_CONFIG_JSON_LAODBALANCE;
327325 return false ;
328326 }
329327 Json::Value st_JsonLoadBalance = st_JsonRoot[" LoadBalance" ];
330328
331- pSt_ServerConfig->st_LoadBalance .pStl_ListCenter = new list<string>;
332- for (unsigned int i = 0 ; i < st_JsonLoadBalance[" CenterAddr" ].size (); i++)
333- {
334- pSt_ServerConfig->st_LoadBalance .pStl_ListCenter ->push_back (st_JsonLoadBalance[" CenterAddr" ][i].asCString ());
335- }
336-
337329 pSt_ServerConfig->st_LoadBalance .pStl_ListDownload = new list<string>;
338330 for (unsigned int i = 0 ; i < st_JsonLoadBalance[" DownloadAddr" ].size (); i++)
339331 {
0 commit comments