现在可以只开日志并保留台账更新和进程控制
This commit is contained in:
@@ -34,6 +34,7 @@ extern apr_pool_t* g_init_pool;
|
||||
extern int g_DevFlag; //日志配置中读取的参数,暂无特定使用lnk20250121
|
||||
|
||||
extern int IED_COUNT;
|
||||
extern int RECALL_ONLY_FLAG; //lnk20260309添加一个全局变量,标志是否只运行补招程序
|
||||
|
||||
//lnk20250115end
|
||||
|
||||
@@ -1418,11 +1419,14 @@ void check_ledger_update()//lnk20250113
|
||||
//调试用
|
||||
print_trigger_update_xml(trigger_ledger_update_xml);
|
||||
|
||||
//处理台账更新加台账锁lnk20250114
|
||||
//pthread_mutex_lock(&mtx); printf("ledgerupdate hold lock !!!!!!!!!!!");
|
||||
process_ledger_update(trigger_ledger_update_xml); //台账更新
|
||||
//pthread_mutex_unlock(&mtx); printf("ledgerupdate free lock !!!!!!!!!!!");
|
||||
|
||||
//处理台账更新添加控制标志
|
||||
if (RECALL_ONLY_FLAG != 1 || (g_node_id != STAT_DATA_BASE_NODE_ID)) {
|
||||
process_ledger_update(trigger_ledger_update_xml); //台账更新
|
||||
}
|
||||
else{
|
||||
printf("only process recall config, skip ledger update\n");
|
||||
DIY_WARNLOG_CODE("process",LOG_CODE_SPACE_ALARM,"【WARN】当前配置为仅日志模式,统计数据进程跳过台账更新");
|
||||
}
|
||||
}
|
||||
|
||||
// 使用完后释放动态分配的内存
|
||||
|
||||
Reference in New Issue
Block a user