fix(stream): adjust critical section.
This commit is contained in:
parent
8e5db21c3f
commit
8925c721e5
|
@ -1939,10 +1939,12 @@ int32_t tqProcessTaskUpdateReq(STQ* pTq, SRpcMsg* pMsg) {
|
||||||
} else {
|
} else {
|
||||||
tqDebug("vgId:%d all %d task(s) nodeEp updated and closed", vgId, numOfTasks);
|
tqDebug("vgId:%d all %d task(s) nodeEp updated and closed", vgId, numOfTasks);
|
||||||
|
|
||||||
streamMetaWUnLock(pMeta);
|
|
||||||
#if 1
|
#if 1
|
||||||
tqStartStreamTaskAsync(pTq, true);
|
tqStartStreamTaskAsync(pTq, true);
|
||||||
|
streamMetaWUnLock(pMeta);
|
||||||
#else
|
#else
|
||||||
|
streamMetaWUnLock(pMeta);
|
||||||
|
|
||||||
// For debug purpose.
|
// For debug purpose.
|
||||||
// the following procedure consume many CPU resource, result in the re-election of leader
|
// the following procedure consume many CPU resource, result in the re-election of leader
|
||||||
// with high probability. So we employ it as a test case for the stream processing framework, with
|
// with high probability. So we employ it as a test case for the stream processing framework, with
|
||||||
|
|
Loading…
Reference in New Issue