fix(stream): free msg after send checkpoint rsp.
This commit is contained in:
parent
f6515e2a2c
commit
16ee72ab06
|
@ -752,6 +752,7 @@ SArray *vmGetMsgHandles() {
|
|||
if (dmSetMgmtHandle(pArray, TDMT_STREAM_TASK_RESUME, vmPutMsgToWriteQueue, 0) == NULL) goto _OVER;
|
||||
if (dmSetMgmtHandle(pArray, TDMT_VND_STREAM_CHECK_POINT_SOURCE, vmPutMsgToStreamQueue, 0) == NULL) goto _OVER;
|
||||
if (dmSetMgmtHandle(pArray, TDMT_STREAM_TASK_CHECKPOINT, vmPutMsgToStreamQueue, 0) == NULL) goto _OVER;
|
||||
if (dmSetMgmtHandle(pArray, TDMT_STREAM_TASK_CHECKPOINT_RSP, vmPutMsgToStreamQueue, 0) == NULL) goto _OVER;
|
||||
|
||||
if (dmSetMgmtHandle(pArray, TDMT_VND_ALTER_REPLICA, vmPutMsgToMgmtQueue, 0) == NULL) goto _OVER;
|
||||
if (dmSetMgmtHandle(pArray, TDMT_VND_ALTER_CONFIG, vmPutMsgToWriteQueue, 0) == NULL) goto _OVER;
|
||||
|
|
|
@ -487,6 +487,8 @@ int32_t streamTaskSendCheckpointRsp(SStreamTask* pTask, int32_t vgId) {
|
|||
tmsgSendRsp(pMsg);
|
||||
}
|
||||
|
||||
taosArrayClear(pTask->pRpcMsgList);
|
||||
|
||||
int8_t prev = pTask->status.taskStatus;
|
||||
pTask->status.taskStatus = TASK_STATUS__NORMAL;
|
||||
qDebug("s-task:%s level:%d source checkpoint completed msg sent to upstream, set status:%s, prev:%s", pTask->id.idStr,
|
||||
|
@ -502,6 +504,8 @@ int32_t streamTaskSendCheckpointSourceRsp(SStreamTask* pTask) {
|
|||
|
||||
tmsgSendRsp(pMsg);
|
||||
|
||||
taosArrayClear(pTask->pRpcMsgList);
|
||||
|
||||
int8_t prev = pTask->status.taskStatus;
|
||||
pTask->status.taskStatus = TASK_STATUS__NORMAL;
|
||||
qDebug("s-task:%s level:%d source checkpoint completed msg sent to mnode, set status:%s, prev:%s", pTask->id.idStr,
|
||||
|
|
Loading…
Reference in New Issue