[td-225] refactor shell code.
This commit is contained in:
parent
b16fa964d7
commit
f22098b6dd
|
@ -667,6 +667,7 @@ void taos_stop_query(TAOS_RES *res) {
|
||||||
|
|
||||||
// TODO there are multi-thread problem.
|
// TODO there are multi-thread problem.
|
||||||
// It may have been released by the other thread already.
|
// It may have been released by the other thread already.
|
||||||
|
// The ref count may fix this problem.
|
||||||
SQueryInfo *pQueryInfo = tscGetQueryInfoDetail(pCmd, pCmd->clauseIndex);
|
SQueryInfo *pQueryInfo = tscGetQueryInfoDetail(pCmd, pCmd->clauseIndex);
|
||||||
if (tscIsTwoStageSTableQuery(pQueryInfo, 0)) {
|
if (tscIsTwoStageSTableQuery(pQueryInfo, 0)) {
|
||||||
tscKillSTableQuery(pSql);
|
tscKillSTableQuery(pSql);
|
||||||
|
|
Loading…
Reference in New Issue