fix(stream): not enable the pause before receive all finish rsp

This commit is contained in:
Haojun Liao 2023-08-30 14:28:45 +08:00
parent dec4d69529
commit 646b339bde
1 changed files with 1 additions and 2 deletions

View File

@ -465,8 +465,7 @@ int32_t streamProcessScanHistoryFinishReq(SStreamTask* pTask, SStreamScanHistory
// mnode will not send the pause/resume message to the sink task, so no need to enable the pause for sink tasks. // mnode will not send the pause/resume message to the sink task, so no need to enable the pause for sink tasks.
if (taskLevel == TASK_LEVEL__AGG) { if (taskLevel == TASK_LEVEL__AGG) {
streamTaskEnablePause(pTask); /*int32_t code = */streamTaskScanHistoryDataComplete(pTask);
int32_t code = streamTaskScanHistoryDataComplete(pTask);
} else { // for sink task, set normal } else { // for sink task, set normal
if (pTask->status.taskStatus != TASK_STATUS__PAUSE && pTask->status.taskStatus != TASK_STATUS__STOP && if (pTask->status.taskStatus != TASK_STATUS__PAUSE && pTask->status.taskStatus != TASK_STATUS__STOP &&
pTask->status.taskStatus != TASK_STATUS__DROPPING) { pTask->status.taskStatus != TASK_STATUS__DROPPING) {