fix(stream): add lock, and fix race condition.

This commit is contained in:
Haojun Liao 2024-04-10 18:42:44 +08:00 committed by wangjiaming0909
parent e051cdfbd0
commit 6d8687d239
1 changed files with 0 additions and 1 deletions

View File

@ -733,7 +733,6 @@ 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;