fix: wrong msgType found by explain.sim

This commit is contained in:
Shengliang Guan 2022-05-17 19:36:19 +08:00
parent 091e7a625b
commit ed22513e52
2 changed files with 6 additions and 2 deletions

View File

@ -535,7 +535,10 @@ int32_t qwHandleTaskComplete(QW_FPARAMS_DEF, SQWTaskCtx *ctx) {
SExplainExecInfo *execInfo = NULL; SExplainExecInfo *execInfo = NULL;
int32_t resNum = 0; int32_t resNum = 0;
QW_ERR_RET(qGetExplainExecInfo(ctx->taskHandle, &resNum, &execInfo)); QW_ERR_RET(qGetExplainExecInfo(ctx->taskHandle, &resNum, &execInfo));
QW_ERR_RET(qwBuildAndSendExplainRsp(&ctx->ctrlConnInfo, execInfo, resNum));
SRpcHandleInfo connInfo = ctx->ctrlConnInfo;
connInfo.ahandle = NULL;
QW_ERR_RET(qwBuildAndSendExplainRsp(&connInfo, execInfo, resNum));
} }
qwFreeTaskHandle(QW_FPARAMS(), taskHandle); qwFreeTaskHandle(QW_FPARAMS(), taskHandle);

View File

@ -74,7 +74,7 @@ int32_t qwBuildAndSendReadyRsp(SRpcHandleInfo *pConn, int32_t code) {
.code = code, .code = code,
.info = *pConn, .info = *pConn,
}; };
rpcRsp.info.ahandle = NULL, rpcRsp.info.ahandle = NULL;
tmsgSendRsp(&rpcRsp); tmsgSendRsp(&rpcRsp);
@ -95,6 +95,7 @@ int32_t qwBuildAndSendExplainRsp(SRpcHandleInfo *pConn, SExplainExecInfo *execIn
.code = 0, .code = 0,
.info = *pConn, .info = *pConn,
}; };
rpcRsp.info.ahandle = NULL;
tmsgSendRsp(&rpcRsp); tmsgSendRsp(&rpcRsp);