[TD-4953]<fix>: fixed a crash bug when run taos on Windows.
This commit is contained in:
parent
201f6c465e
commit
d5f914857a
|
@ -3526,6 +3526,7 @@ void executeQuery(SSqlObj* pSql, SQueryInfo* pQueryInfo) {
|
||||||
|
|
||||||
pSql->pSubs = calloc(pSql->subState.numOfSub, POINTER_BYTES);
|
pSql->pSubs = calloc(pSql->subState.numOfSub, POINTER_BYTES);
|
||||||
pSql->subState.states = calloc(pSql->subState.numOfSub, sizeof(int8_t));
|
pSql->subState.states = calloc(pSql->subState.numOfSub, sizeof(int8_t));
|
||||||
|
pthread_mutex_init(&pSql->subState.mutex, NULL);
|
||||||
|
|
||||||
for(int32_t i = 0; i < pSql->subState.numOfSub; ++i) {
|
for(int32_t i = 0; i < pSql->subState.numOfSub; ++i) {
|
||||||
SQueryInfo* pSub = taosArrayGetP(pQueryInfo->pUpstream, i);
|
SQueryInfo* pSub = taosArrayGetP(pQueryInfo->pUpstream, i);
|
||||||
|
|
Loading…
Reference in New Issue