Merge pull request #17351 from taosdata/fix/TD-19544
fix: fix kill query crash issue
This commit is contained in:
commit
3a20447b9d
|
@ -222,7 +222,9 @@ void taos_kill_query(TAOS *taos) {
|
|||
|
||||
int64_t rid = *(int64_t *)taos;
|
||||
STscObj *pTscObj = acquireTscObj(rid);
|
||||
if (pTscObj) {
|
||||
stopAllRequests(pTscObj->pRequests);
|
||||
}
|
||||
releaseTscObj(rid);
|
||||
}
|
||||
|
||||
|
|
|
@ -998,7 +998,9 @@ void *shellCancelHandler(void *arg) {
|
|||
shell.stop_query = true;
|
||||
} else {
|
||||
#endif
|
||||
if (shell.conn) {
|
||||
taos_kill_query(shell.conn);
|
||||
}
|
||||
#ifdef WEBSOCKET
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue