pqdif进程跳过xml和报告初始化
This commit is contained in:
@@ -1176,7 +1176,8 @@ void process_ledger_update(trigger_update_xml_t *ledger_update_xml)
|
|||||||
//3-写入台账内容///////////////////////////////////
|
//3-写入台账内容///////////////////////////////////
|
||||||
|
|
||||||
//4-配置映射文件//////////////////////////////
|
//4-配置映射文件//////////////////////////////
|
||||||
char model[64] = {0};
|
if (g_node_id != PQDIF_DATA_BASE_NODE_ID) {
|
||||||
|
char model[64] = {0};
|
||||||
// 获取模型ID,检查是否返回 NULL
|
// 获取模型ID,检查是否返回 NULL
|
||||||
parse_model_cfg_web_one(ied,&model);//存储在/FeProject/dat/
|
parse_model_cfg_web_one(ied,&model);//存储在/FeProject/dat/
|
||||||
|
|
||||||
@@ -1210,6 +1211,11 @@ void process_ledger_update(trigger_update_xml_t *ledger_update_xml)
|
|||||||
//5-报告块初始化///////////////////////////////////
|
//5-报告块初始化///////////////////////////////////
|
||||||
|
|
||||||
//调试
|
//调试
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
printf("[PQDIF] skip model xml and report init terminal=%s\n", ied_usr->terminal_id);
|
||||||
|
}
|
||||||
|
|
||||||
printf("ledger id: %s\n", ((ied_usr_t*)ied->channel[0].ied->usr_ext)->terminal_id);
|
printf("ledger id: %s\n", ((ied_usr_t*)ied->channel[0].ied->usr_ext)->terminal_id);
|
||||||
|
|
||||||
//6-init_rem_dib_table//////////////////////////////
|
//6-init_rem_dib_table//////////////////////////////
|
||||||
@@ -1279,7 +1285,8 @@ void process_ledger_update(trigger_update_xml_t *ledger_update_xml)
|
|||||||
//3-写入台账内容////////////////////////////////////////////
|
//3-写入台账内容////////////////////////////////////////////
|
||||||
|
|
||||||
//4-配置映射文件///////////////////////////////////////////
|
//4-配置映射文件///////////////////////////////////////////
|
||||||
char model[64] = {0};
|
if (g_node_id != PQDIF_DATA_BASE_NODE_ID) {
|
||||||
|
char model[64] = {0};
|
||||||
// 获取模型ID,检查是否返回 NULL
|
// 获取模型ID,检查是否返回 NULL
|
||||||
parse_model_cfg_web_one(ied,&model);//存储在/FeProject/dat/
|
parse_model_cfg_web_one(ied,&model);//存储在/FeProject/dat/
|
||||||
|
|
||||||
@@ -1313,6 +1320,11 @@ void process_ledger_update(trigger_update_xml_t *ledger_update_xml)
|
|||||||
parse_rpt_log_ini_one(ied);
|
parse_rpt_log_ini_one(ied);
|
||||||
//5-报告块初始化///////////////////////////////////
|
//5-报告块初始化///////////////////////////////////
|
||||||
|
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
printf("[PQDIF] skip model xml and report init terminal=%s\n", ied_usr->terminal_id);
|
||||||
|
}
|
||||||
|
|
||||||
//6-init_rem_dib_table//////////////////////////////
|
//6-init_rem_dib_table//////////////////////////////
|
||||||
init_rem_dib_table_one(ied);
|
init_rem_dib_table_one(ied);
|
||||||
//6-init_rem_dib_table///////////////////////////////////
|
//6-init_rem_dib_table///////////////////////////////////
|
||||||
|
|||||||
@@ -205,27 +205,32 @@ apr_status_t init_rdb()
|
|||||||
//台账读取过后初始化各级的日志
|
//台账读取过后初始化各级的日志
|
||||||
init_loggers();
|
init_loggers();
|
||||||
|
|
||||||
rv = parse_model_cfg_web();
|
if (g_node_id != PQDIF_DATA_BASE_NODE_ID) {
|
||||||
if (rv != APR_SUCCESS) {//不可能
|
rv = parse_model_cfg_web();
|
||||||
echo_errg("Parsed model with error,try to run! \n");
|
if (rv != APR_SUCCESS) {//不可能
|
||||||
|
echo_errg("Parsed model with error,try to run! \n");
|
||||||
|
|
||||||
//char buf[256];
|
//char buf[256];
|
||||||
//format_log_msg(buf,sizeof(buf),"前置的%s%d号进程调用web模型接口失败", get_front_msg_from_subdir(), g_front_seg_index);
|
//format_log_msg(buf,sizeof(buf),"前置的%s%d号进程调用web模型接口失败", get_front_msg_from_subdir(), g_front_seg_index);
|
||||||
//log_error("process", buf);
|
//log_error("process", buf);
|
||||||
DIY_ERRORLOG_CODE("process",0,LOG_CODE_ICD_AND_DOWNLOAD,"【ERROR】前置的%s%d号进程调用web模型接口失败", get_front_msg_from_subdir(), g_front_seg_index);
|
DIY_ERRORLOG_CODE("process",0,LOG_CODE_ICD_AND_DOWNLOAD,"【ERROR】前置的%s%d号进程调用web模型接口失败", get_front_msg_from_subdir(), g_front_seg_index);
|
||||||
|
|
||||||
return rv;
|
return rv;
|
||||||
|
}
|
||||||
|
|
||||||
|
Set_xml_nodeinfo();//解析xml模型
|
||||||
|
|
||||||
|
rv = parse_rpt_log_ini();//报告块初始化
|
||||||
|
if (rv != APR_SUCCESS) {
|
||||||
|
echo_errg("Failed to parse report log define ini file! \n");
|
||||||
|
|
||||||
|
DIY_ERRORLOG_CODE("process",0,LOG_CODE_RPTINIT,"【ERROR】前置的%s%d号进程报告初始化失败", get_front_msg_from_subdir(), g_front_seg_index);
|
||||||
|
|
||||||
|
return rv;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
Set_xml_nodeinfo();//解析xml模型
|
printf("[PQDIF] skip model xml and report init in init_rdb\n");
|
||||||
|
|
||||||
rv = parse_rpt_log_ini();//报告块初始化
|
|
||||||
if (rv != APR_SUCCESS) {
|
|
||||||
echo_errg("Failed to parse report log define ini file! \n");
|
|
||||||
|
|
||||||
DIY_ERRORLOG_CODE("process",0,LOG_CODE_RPTINIT,"【ERROR】前置的%s%d号进程报告初始化失败", get_front_msg_from_subdir(), g_front_seg_index);
|
|
||||||
|
|
||||||
return rv;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user