提交 bd8b811b 编写于 作者: H Haojun Liao

refactor: do some internal refactor.

上级 0d1c4f9e
......@@ -785,12 +785,13 @@ void streamTaskPause(SStreamTask* pTask) {
// todo fix race condition
void streamTaskDisablePause(SStreamTask* pTask) {
// pre-condition check
const char* id = pTask->id.idStr;
while (pTask->status.taskStatus == TASK_STATUS__PAUSE) {
taosMsleep(10);
qDebug("s-task:%s already in pause, wait for pause being cancelled, and then set pause disabled", pTask->id.idStr);
taosMsleep(100);
qDebug("s-task:%s already in pause, wait for pause being cancelled, and set pause disabled, check in 100ms", id);
}
qDebug("s-task:%s disable task pause", pTask->id.idStr);
qDebug("s-task:%s disable task pause", id);
pTask->status.pauseAllowed = 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册