mirror of
https://github.com/sogou/workflow.git
synced 2026-10-20 22:26:59 +08:00
kafka: fix meta_callback set uninit state
This commit is contained in:
@@ -595,6 +595,11 @@ void ComplexKafkaTask::kafka_meta_callback(__WFKafkaTask *task)
|
||||
}
|
||||
else
|
||||
{
|
||||
t->meta_list.rewind();
|
||||
KafkaMeta *meta;
|
||||
while ((meta = t->meta_list.get_next()) != NULL)
|
||||
(*t->client->member->meta_map)[meta->get_topic()] = META_UNINIT;
|
||||
|
||||
t->state = WFT_STATE_TASK_ERROR;
|
||||
t->error = WFT_ERR_KAFKA_META_FAILED;
|
||||
t->finish = true;
|
||||
|
||||
Reference in New Issue
Block a user