[td-225] refactor shell code.

This commit is contained in:
Haojun Liao 2020-08-22 11:59:48 +08:00
parent 2ad3133465
commit b16fa964d7
1 changed files with 2 additions and 0 deletions

View File

@ -665,6 +665,8 @@ void taos_stop_query(TAOS_RES *res) {
tscDebug("%p start to cancel query", res);
SSqlCmd *pCmd = &pSql->cmd;
// TODO there are multi-thread problem.
// It may have been released by the other thread already.
SQueryInfo *pQueryInfo = tscGetQueryInfoDetail(pCmd, pCmd->clauseIndex);
if (tscIsTwoStageSTableQuery(pQueryInfo, 0)) {
tscKillSTableQuery(pSql);