Skip to content

Commit 7901e3e

Browse files
authored
fix(stream): fix mgmt add new calc reader task (#34358)
1 parent 4fff825 commit 7901e3e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/dnode/mnode/impl/src/mndStreamMgmt.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3584,6 +3584,9 @@ int32_t msmWatchRecordNewTask(SStmGrpCtx* pCtx, SStmTaskStatusMsg* pTask) {
35843584
TSDB_CHECK_NULL(pNewTask, code, lino, _exit, terrno);
35853585
} else {
35863586
TAOS_CHECK_EXIT(tdListAppend(pStatus->calcReaders, &taskStatus));
3587+
SListNode* pTailNode = tdListGetTail(pStatus->calcReaders);
3588+
QUERY_CHECK_NULL(pTailNode, code, lino, _exit, TSDB_CODE_INTERNAL_ERROR);
3589+
pNewTask = (SStmTaskStatus*)pTailNode->data;
35873590
}
35883591

35893592
TAOS_CHECK_EXIT(msmSTAddToTaskMap(pCtx, streamId, NULL, NULL, pNewTask));

0 commit comments

Comments
 (0)