提交 c69835e0 编写于 作者: D dapan1121

fix: fix substates init issue

上级 de1ab400
...@@ -4207,7 +4207,7 @@ int32_t doInitSubState(SSqlObj* pSql, int32_t numOfSubqueries) { ...@@ -4207,7 +4207,7 @@ int32_t doInitSubState(SSqlObj* pSql, int32_t numOfSubqueries) {
//assert(pSql->subState.numOfSub == 0 && pSql->pSubs == NULL && pSql->subState.states == NULL); //assert(pSql->subState.numOfSub == 0 && pSql->pSubs == NULL && pSql->subState.states == NULL);
tscFreeSubobj(pSql); tscFreeSubobj(pSql);
pSql->pSubs = calloc(pSql->subState.numOfSub, POINTER_BYTES); pSql->pSubs = calloc(numOfSubqueries, POINTER_BYTES);
pSql->subState.states = calloc(pSql->subState.numOfSub, sizeof(int8_t)); pSql->subState.states = calloc(pSql->subState.numOfSub, sizeof(int8_t));
int32_t code = pthread_mutex_init(&pSql->subState.mutex, NULL); int32_t code = pthread_mutex_init(&pSql->subState.mutex, NULL);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册