提交 c6fedd09 编写于 作者: A Alex Duan

feat(rpc): check valid in broken callback

上级 49ac4cb2
......@@ -369,8 +369,7 @@ void checkBrokenQueries(STscObj *pTscObj) {
// kill query
if(kill) {
//taos_stop_query(pSql);
tscInfo("PROBE do not kill.");
taos_stop_query(pSql);
}
// move next
......@@ -401,7 +400,7 @@ void tscProcessActivityTimer(void *handle, void *tmrId) {
// call check if have query doing
if(pObj->sqlList) {
// have queries executing
//checkBrokenQueries(pObj);
checkBrokenQueries(pObj);
}
}
......
......@@ -3391,6 +3391,10 @@ static void doFreeInsertSupporter(SSqlObj* pSqlObj) {
}
static void multiVnodeInsertFinalize(void* param, TAOS_RES* tres, int numOfRows) {
if(param == NULL) {
tscError("callback multiVnodeInsertFinalize param is NULL. tres=0x%" PRIx64 " numOfRows=%d", tres, numOfRows);
return ;
}
SInsertSupporter *pSupporter = (SInsertSupporter *)param;
SSqlObj* pParentObj = pSupporter->pSql;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册