[TD-5150]<fix>: fix unitialized semaphore when running test suites on MacOS

This commit is contained in:
glzhao89 2021-07-14 09:16:00 +08:00
parent 05d137aa67
commit 420a1dfe05
1 changed files with 1 additions and 0 deletions

View File

@ -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;