提交 cd153ebe 编写于 作者: D dapan1121

fix: query cancel crash issue

上级 cf828940
......@@ -789,6 +789,9 @@ int tscBuildAndSendRequest(SSqlObj *pSql, SQueryInfo* pQueryInfo) {
int tscBuildFetchMsg(SSqlObj *pSql, SSqlInfo *pInfo) {
SRetrieveTableMsg *pRetrieveMsg = (SRetrieveTableMsg *) pSql->cmd.payload;
if (NULL == pRetrieveMsg) {
return TSDB_CODE_TSC_APP_ERROR;
}
SQueryInfo *pQueryInfo = tscGetQueryInfo(&pSql->cmd);
......
......@@ -628,7 +628,7 @@ static bool tscKillQueryInDnode(SSqlObj* pSql) {
SSqlCmd* pCmd = &pSql->cmd;
SSqlRes* pRes = &pSql->res;
if (pRes == NULL || pRes->qId == 0) {
if (pRes == NULL || pRes->qId == 0 || (pRes->qId == 0x1 && pCmd->payloadLen == 0)) {
return true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册