fix(stream): ignore the fill-history tasks.

This commit is contained in:
Haojun Liao 2023-08-30 19:07:06 +08:00
parent 65eaa9b15f
commit 5d23df100c
1 changed files with 6 additions and 1 deletions

View File

@ -75,7 +75,12 @@ int32_t tqSetStreamTasksReady(STQ* pTq) {
for (int32_t i = 0; i < numOfTasks; ++i) {
SStreamTaskId* pTaskId = taosArrayGet(pTaskList, i);
SStreamTask* pTask = streamMetaAcquireTask(pMeta, pTaskId->streamId, pTaskId->taskId);
if (pTask == NULL || pTask->info.fillHistory == 1) {
if (pTask == NULL) {
continue;
}
if (pTask->info.fillHistory == 1) {
streamMetaReleaseTask(pMeta, pTask);
continue;
}