fix(stream): release the stream task.

This commit is contained in:
Haojun Liao 2023-08-24 17:16:34 +08:00
parent a750eb9699
commit caf20d7b5d
1 changed files with 2 additions and 0 deletions

View File

@ -318,10 +318,12 @@ int32_t createStreamTaskRunReq(SStreamMeta* pStreamMeta, bool* pScanIdle) {
}
taosThreadMutexLock(&pTask->lock);
pStatus = streamGetTaskStatusStr(pTask->status.taskStatus);
if (pTask->status.taskStatus != TASK_STATUS__NORMAL) {
tqDebug("s-task:%s not ready for submit block from wal, status:%s", pTask->id.idStr, pStatus);
taosThreadMutexUnlock(&pTask->lock);
streamMetaReleaseTask(pStreamMeta, pTask);
continue;
}