fix stream fill history not finished

This commit is contained in:
wangjiaming0909 2024-04-09 11:37:08 +08:00
parent 039939196a
commit ce2cbd4ab5
1 changed files with 1 additions and 0 deletions

View File

@ -733,6 +733,7 @@ bool streamTaskIsAllUpstreamClosed(SStreamTask* pTask) {
bool streamTaskSetSchedStatusWait(SStreamTask* pTask) {
bool ret = false;
// double check
taosThreadMutexLock(&pTask->lock);
if (pTask->status.schedStatus == TASK_SCHED_STATUS__INACTIVE) {
pTask->status.schedStatus = TASK_SCHED_STATUS__WAITING;