fix exchangeoperator ret check
This commit is contained in:
parent
8c1f51c9e3
commit
2b8115d308
|
@ -347,10 +347,13 @@ static int32_t initExchangeOperator(SExchangePhysiNode* pExNode, SExchangeInfo*
|
|||
return TSDB_CODE_INVALID_PARA;
|
||||
}
|
||||
pInfo->pFetchRpcHandles = taosArrayInit(numOfSources, sizeof(int64_t));
|
||||
(void)taosArrayReserve(pInfo->pFetchRpcHandles, numOfSources);
|
||||
if (!pInfo->pFetchRpcHandles) {
|
||||
return terrno;
|
||||
}
|
||||
void* ret = taosArrayReserve(pInfo->pFetchRpcHandles, numOfSources);
|
||||
if (!ret) {
|
||||
return terrno;
|
||||
}
|
||||
|
||||
pInfo->pSources = taosArrayInit(numOfSources, sizeof(SDownstreamSourceNode));
|
||||
if (pInfo->pSources == NULL) {
|
||||
|
|
Loading…
Reference in New Issue