fix:[TS-5679] auto commit error
This commit is contained in:
parent
e11adb498b
commit
dcd664c2cb
|
@ -1872,14 +1872,18 @@ int32_t tmq_subscribe(tmq_t* tmq, const tmq_list_t* topic_list) {
|
||||||
|
|
||||||
if (tmq->epTimer == NULL){
|
if (tmq->epTimer == NULL){
|
||||||
tmq->epTimer = taosTmrStart(tmqAssignAskEpTask, DEFAULT_ASKEP_INTERVAL, (void*)(tmq->refId), tmqMgmt.timer);
|
tmq->epTimer = taosTmrStart(tmqAssignAskEpTask, DEFAULT_ASKEP_INTERVAL, (void*)(tmq->refId), tmqMgmt.timer);
|
||||||
|
if (tmq->epTimer == NULL) {
|
||||||
|
code = TSDB_CODE_TSC_INTERNAL_ERROR;
|
||||||
|
goto END;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (tmq->autoCommit && tmq->commitTimer == NULL){
|
if (tmq->autoCommit && tmq->commitTimer == NULL){
|
||||||
tmq->commitTimer = taosTmrStart(tmqAssignDelayedCommitTask, tmq->autoCommitInterval, (void*)(tmq->refId), tmqMgmt.timer);
|
tmq->commitTimer = taosTmrStart(tmqAssignDelayedCommitTask, tmq->autoCommitInterval, (void*)(tmq->refId), tmqMgmt.timer);
|
||||||
}
|
if (tmq->commitTimer == NULL) {
|
||||||
if (tmq->epTimer == NULL || tmq->commitTimer == NULL) {
|
|
||||||
code = TSDB_CODE_TSC_INTERNAL_ERROR;
|
code = TSDB_CODE_TSC_INTERNAL_ERROR;
|
||||||
goto END;
|
goto END;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
END:
|
END:
|
||||||
taosArrayDestroyP(req.topicNames, taosMemoryFree);
|
taosArrayDestroyP(req.topicNames, taosMemoryFree);
|
||||||
|
|
Loading…
Reference in New Issue