ledgerupdate testing fix segfault in add ledger
This commit is contained in:
@@ -295,8 +295,8 @@ void my_rocketmq_send(Ckafka_data_t& data)
|
||||
static std::string cfg_Evt_tp;
|
||||
static std::string cfg_Alm_tp;
|
||||
static std::string cfg_Rt_tp;
|
||||
static bool inited = false;
|
||||
if (!inited) {
|
||||
static bool init = false;
|
||||
if (!init) {
|
||||
|
||||
cfg_His_tp = TOPIC_STAT;
|
||||
cfg_PLT_tp = TOPIC_PLT;
|
||||
@@ -305,7 +305,7 @@ void my_rocketmq_send(Ckafka_data_t& data)
|
||||
cfg_Alm_tp = TOPIC_ALARM;
|
||||
cfg_Rt_tp = TOPIC_RTDATA;
|
||||
|
||||
inited = true;
|
||||
init = true;
|
||||
}
|
||||
|
||||
std::string key = data.mp_id.toStdString();
|
||||
@@ -363,8 +363,8 @@ void my_kafka_send(Ckafka_data_t& data)
|
||||
static std::string cfg_Evt_tp;
|
||||
static std::string cfg_Alm_tp;
|
||||
static std::string cfg_Sng_tp;
|
||||
static bool inited = false;
|
||||
if (!inited) {
|
||||
static bool init = false;
|
||||
if (!init) {
|
||||
|
||||
cfg_His_tp = TOPIC_STAT;
|
||||
cfg_PLT_tp = TOPIC_PLT;
|
||||
@@ -393,7 +393,7 @@ void my_kafka_send(Ckafka_data_t& data)
|
||||
else
|
||||
printf("kafka producer init Failed(%s)\n", brokerlist.c_str());
|
||||
#endif
|
||||
inited = true;
|
||||
init = true;
|
||||
}
|
||||
|
||||
char tmp_str[256];
|
||||
@@ -472,8 +472,8 @@ void my_datahub_send(Ckafka_data_t& data)
|
||||
static std::string cfg_PST_tp;
|
||||
static std::string cfg_Evt_tp;
|
||||
static std::string cfg_Alm_tp;
|
||||
static bool inited = false;
|
||||
if (!inited) {
|
||||
static bool init = false;
|
||||
if (!init) {
|
||||
//QString MyKafkaIniFilename = QString("../etc/") + QString("mykafka.ini"); //+QString::fromAscii(subdir)
|
||||
//QSettings settings(MyKafkaIniFilename, QSettings::IniFormat);
|
||||
|
||||
@@ -496,7 +496,7 @@ void my_datahub_send(Ckafka_data_t& data)
|
||||
cfg_Evt_tp = TOPIC_EVENT;
|
||||
cfg_Alm_tp = TOPIC_ALARM;
|
||||
|
||||
inited = true;
|
||||
init = true;
|
||||
}
|
||||
|
||||
std::string key = data.mp_id.toStdString();
|
||||
|
||||
Reference in New Issue
Block a user