fix(stream): fix dead-lock.

This commit is contained in:
Haojun Liao 2023-11-06 12:05:47 +08:00
parent d41fd27189
commit bfd14076d7
1 changed files with 4 additions and 1 deletions

View File

@ -165,12 +165,15 @@ int32_t tqRestartStreamTasks(STQ* pTq) {
if (vnodeIsRoleLeader(pTq->pVnode) && !tsDisableStream) {
tqInfo("vgId:%d restart all stream tasks after all tasks being updated", vgId);
tqResetStreamTaskStatus(pTq);
streamMetaWUnLock(pMeta);
tqStartStreamTasks(pTq);
} else {
streamMetaWUnLock(pMeta);
tqInfo("vgId:%d, follower node not start stream tasks", vgId);
}
streamMetaWUnLock(pMeta);
code = terrno;
return code;
}