From 420a1dfe05a5737ded2bc00a634422003f961efb Mon Sep 17 00:00:00 2001 From: glzhao89 Date: Wed, 14 Jul 2021 09:16:00 +0800 Subject: [PATCH] [TD-5150]: fix unitialized semaphore when running test suites on MacOS --- src/client/src/tscUtil.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/src/tscUtil.c b/src/client/src/tscUtil.c index 173db05e10..02aeb3e33d 100644 --- a/src/client/src/tscUtil.c +++ b/src/client/src/tscUtil.c @@ -3608,6 +3608,7 @@ void executeQuery(SSqlObj* pSql, SQueryInfo* pQueryInfo) { pNew->signature = pNew; pNew->sqlstr = strdup(pSql->sqlstr); // todo refactor pNew->fp = tscSubqueryCompleteCallback; + tsem_init(&pNew->rspSem, 0, 0); SRetrieveSupport* ps = calloc(1, sizeof(SRetrieveSupport)); // todo use object id ps->pParentSql = pSql; -- GitLab