fix(stream): set the correct rsp msg start position.
This commit is contained in:
parent
79085015d6
commit
398a1b08ac
|
@ -118,6 +118,7 @@ int32_t streamTaskSendCheckpointTriggerMsg(SStreamTask* pTask, int32_t dstTaskId
|
||||||
pRsp->streamId = pTask->id.streamId;
|
pRsp->streamId = pTask->id.streamId;
|
||||||
pRsp->upstreamTaskId = pTask->id.taskId;
|
pRsp->upstreamTaskId = pTask->id.taskId;
|
||||||
pRsp->taskId = dstTaskId;
|
pRsp->taskId = dstTaskId;
|
||||||
|
pRsp->rspCode = code;
|
||||||
|
|
||||||
if (code == TSDB_CODE_SUCCESS) {
|
if (code == TSDB_CODE_SUCCESS) {
|
||||||
pRsp->checkpointId = pTask->chkInfo.pActiveInfo->activeId;
|
pRsp->checkpointId = pTask->chkInfo.pActiveInfo->activeId;
|
||||||
|
@ -127,8 +128,6 @@ int32_t streamTaskSendCheckpointTriggerMsg(SStreamTask* pTask, int32_t dstTaskId
|
||||||
pRsp->transId = -1;
|
pRsp->transId = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
pRsp->rspCode = code;
|
|
||||||
|
|
||||||
SRpcMsg rspMsg = {.code = 0, .pCont = pBuf, .contLen = size, .info = *pRpcInfo};
|
SRpcMsg rspMsg = {.code = 0, .pCont = pBuf, .contLen = size, .info = *pRpcInfo};
|
||||||
tmsgSendRsp(&rspMsg);
|
tmsgSendRsp(&rspMsg);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue