未验证 提交 15319953 编写于 作者: S Shengliang Guan 提交者: GitHub

Merge pull request #3854 from taosdata/hotfix/TD-1711

[TD-1711]<fix>: func taos_validate_sql cause deadlocked
...@@ -844,6 +844,8 @@ int taos_validate_sql(TAOS *taos, const char *sql) { ...@@ -844,6 +844,8 @@ int taos_validate_sql(TAOS *taos, const char *sql) {
pSql->fp = asyncCallback; pSql->fp = asyncCallback;
pSql->fetchFp = asyncCallback; pSql->fetchFp = asyncCallback;
pSql->param = pSql; pSql->param = pSql;
registerSqlObj(pSql);
int code = tsParseSql(pSql, true); int code = tsParseSql(pSql, true);
if (code == TSDB_CODE_TSC_ACTION_IN_PROGRESS) { if (code == TSDB_CODE_TSC_ACTION_IN_PROGRESS) {
tsem_wait(&pSql->rspSem); tsem_wait(&pSql->rspSem);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册