From 9395fb59562f0d015673cc99bc516c93363d928d Mon Sep 17 00:00:00 2001 From: 54liuyao <54liuyao@163.com> Date: Sun, 27 Mar 2022 22:31:21 -0900 Subject: [PATCH] [TS-1363]: Mutex is not initialized --- src/client/src/tscUtil.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 92f843e3a9..2be3c3bc33 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -4235,6 +4235,10 @@ void executeQuery(SSqlObj* pSql, SQueryInfo* pQueryInfo) { } return; + } else if (hasMoreClauseToTry(pSql)) { + if (pthread_mutex_init(&pSql->subState.mutex, NULL) != 0) { + goto _error; + } } pSql->cmd.active = pQueryInfo; -- GitLab