From b16fa964d795051816337cbef8b69a3bfc407687 Mon Sep 17 00:00:00 2001 From: Haojun Liao Date: Sat, 22 Aug 2020 11:59:48 +0800 Subject: [PATCH] [td-225] refactor shell code. --- src/client/src/tscSql.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/src/tscSql.c b/src/client/src/tscSql.c index cfcc9f0fa6..4c9439f0a7 100644 --- a/src/client/src/tscSql.c +++ b/src/client/src/tscSql.c @@ -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); -- GitLab