[td-225].
This commit is contained in:
parent
901803abe6
commit
8195149c72
|
@ -259,8 +259,6 @@ void tscProcessMsgFromServer(SRpcMsg *rpcMsg, SRpcEpSet *pEpSet) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
pSql->pRpcCtx = NULL; // clear the rpcCtx
|
|
||||||
|
|
||||||
SQueryInfo* pQueryInfo = tscGetQueryInfoDetail(pCmd, 0);
|
SQueryInfo* pQueryInfo = tscGetQueryInfoDetail(pCmd, 0);
|
||||||
if (pQueryInfo != NULL && pQueryInfo->type == TSDB_QUERY_TYPE_FREE_RESOURCE) {
|
if (pQueryInfo != NULL && pQueryInfo->type == TSDB_QUERY_TYPE_FREE_RESOURCE) {
|
||||||
tscDebug("%p sqlObj needs to be released or DB connection is closed, cmd:%d type:%d, pObj:%p signature:%p",
|
tscDebug("%p sqlObj needs to be released or DB connection is closed, cmd:%d type:%d, pObj:%p signature:%p",
|
||||||
|
@ -389,6 +387,7 @@ void tscProcessMsgFromServer(SRpcMsg *rpcMsg, SRpcEpSet *pEpSet) {
|
||||||
}
|
}
|
||||||
|
|
||||||
rpcFreeCont(rpcMsg->pCont);
|
rpcFreeCont(rpcMsg->pCont);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int doProcessSql(SSqlObj *pSql) {
|
int doProcessSql(SSqlObj *pSql) {
|
||||||
|
@ -475,6 +474,7 @@ void tscKillSTableQuery(SSqlObj *pSql) {
|
||||||
pSub->res.code = TSDB_CODE_TSC_QUERY_CANCELLED;
|
pSub->res.code = TSDB_CODE_TSC_QUERY_CANCELLED;
|
||||||
if (pSub->pRpcCtx != NULL) {
|
if (pSub->pRpcCtx != NULL) {
|
||||||
rpcCancelRequest(pSub->pRpcCtx);
|
rpcCancelRequest(pSub->pRpcCtx);
|
||||||
|
pSub->pRpcCtx = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
tscQueueAsyncRes(pSub); // async res? not other functions?
|
tscQueueAsyncRes(pSub); // async res? not other functions?
|
||||||
|
|
|
@ -698,6 +698,7 @@ void taos_stop_query(TAOS_RES *res) {
|
||||||
tscKillSTableQuery(pSql);
|
tscKillSTableQuery(pSql);
|
||||||
} else {
|
} else {
|
||||||
if (pSql->cmd.command < TSDB_SQL_LOCAL) {
|
if (pSql->cmd.command < TSDB_SQL_LOCAL) {
|
||||||
|
assert(pSql->pRpcCtx != NULL);
|
||||||
rpcCancelRequest(pSql->pRpcCtx);
|
rpcCancelRequest(pSql->pRpcCtx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue