[td-225] refactor shell code.

This commit is contained in:
Haojun Liao 2020-08-22 12:03:57 +08:00
parent b16fa964d7
commit f22098b6dd
1 changed files with 1 additions and 0 deletions

View File

@ -667,6 +667,7 @@ void taos_stop_query(TAOS_RES *res) {
// TODO there are multi-thread problem.
// It may have been released by the other thread already.
// The ref count may fix this problem.
SQueryInfo *pQueryInfo = tscGetQueryInfoDetail(pCmd, pCmd->clauseIndex);
if (tscIsTwoStageSTableQuery(pQueryInfo, 0)) {
tscKillSTableQuery(pSql);