[TD-5429]<hotfix>:executing group by test suite throws uninitialized semaphore error

This commit is contained in:
Ganlin Zhao 2021-07-20 22:34:39 +08:00
parent b0bdd7c2c6
commit 915463dfc7
1 changed files with 1 additions and 0 deletions

View File

@ -3529,6 +3529,7 @@ SSqlObj* createSubqueryObj(SSqlObj* pSql, int16_t tableIndex, __async_cb_func_t
pNew->pTscObj = pSql->pTscObj;
pNew->signature = pNew;
pNew->sqlstr = strdup(pSql->sqlstr);
tsem_init(&pNew->rspSem, 0, 0);
SSqlCmd* pnCmd = &pNew->cmd;
memcpy(pnCmd, pCmd, sizeof(SSqlCmd));