fix(stream): not restart tasks when in restoring procedure.
This commit is contained in:
parent
38bb123701
commit
4c7ad54c9c
|
@ -1884,9 +1884,11 @@ int32_t tqProcessTaskUpdateReq(STQ* pTq, SRpcMsg* pMsg) {
|
||||||
|
|
||||||
_end:
|
_end:
|
||||||
tDecoderClear(&decoder);
|
tDecoderClear(&decoder);
|
||||||
// tmsgSendRsp(&rsp);
|
|
||||||
|
|
||||||
if (restartTasks) {
|
if (restartTasks) {
|
||||||
|
if (!pTq->pVnode->restored) {
|
||||||
|
tqDebug("vgId:%d vnode restore not completed, not restart the tasks", vgId);
|
||||||
|
} else {
|
||||||
tqDebug("vgId:%d all tasks are stopped, restart them", vgId);
|
tqDebug("vgId:%d all tasks are stopped, restart them", vgId);
|
||||||
taosWLockLatch(&pMeta->lock);
|
taosWLockLatch(&pMeta->lock);
|
||||||
|
|
||||||
|
@ -1910,6 +1912,7 @@ _end:
|
||||||
tqCheckStreamStatus(pTq);
|
tqCheckStreamStatus(pTq);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return rsp.code;
|
return rsp.code;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue