TSG-10275: 判断条件笔误导致tsg_register_topic函数一直失败
This commit is contained in:
@@ -2034,7 +2034,7 @@ int tsg_send_log(struct tsg_log_instance_t *instance, struct TLD_handle_t *handl
|
||||
int tsg_register_topic(struct tsg_log_instance_t *instance, char *topic_name)
|
||||
{
|
||||
struct tsg_log_instance_t *_instance=(struct tsg_log_instance_t *)instance;
|
||||
if(_instance==NULL || _instance->mode==CLOSE || topic_name==NULL || _instance->kafka_handle!=NULL)
|
||||
if(_instance==NULL || _instance->mode==CLOSE || topic_name==NULL || _instance->kafka_handle==NULL)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user