fix crash issue
This commit is contained in:
parent
efa071c9f6
commit
04238b8ff1
|
@ -53,8 +53,10 @@ int32_t schInitJob(SSchJob **pSchJob, SQueryPlan *pDag, void *pTrans, SArray *pN
|
||||||
pJob->attr.syncSchedule = syncSchedule;
|
pJob->attr.syncSchedule = syncSchedule;
|
||||||
pJob->pTrans = pTrans;
|
pJob->pTrans = pTrans;
|
||||||
pJob->sql = sql;
|
pJob->sql = sql;
|
||||||
pJob->userRes = *pRes;
|
if (pRes) {
|
||||||
|
pJob->userRes = *pRes;
|
||||||
|
}
|
||||||
|
|
||||||
if (pNodeList != NULL) {
|
if (pNodeList != NULL) {
|
||||||
pJob->nodeList = taosArrayDup(pNodeList);
|
pJob->nodeList = taosArrayDup(pNodeList);
|
||||||
}
|
}
|
||||||
|
@ -1393,7 +1395,9 @@ int32_t schExecStaticExplainJob(void *pTrans, SArray *pNodeList, SQueryPlan *pDa
|
||||||
pJob->attr.explainMode = pDag->explainInfo.mode;
|
pJob->attr.explainMode = pDag->explainInfo.mode;
|
||||||
pJob->queryId = pDag->queryId;
|
pJob->queryId = pDag->queryId;
|
||||||
pJob->subPlans = pDag->pSubplans;
|
pJob->subPlans = pDag->pSubplans;
|
||||||
pJob->userRes = *pRes;
|
if (pRes) {
|
||||||
|
pJob->userRes = *pRes;
|
||||||
|
}
|
||||||
|
|
||||||
SCH_ERR_JRET(qExecStaticExplain(pDag, (SRetrieveTableRsp **)&pJob->resData));
|
SCH_ERR_JRET(qExecStaticExplain(pDag, (SRetrieveTableRsp **)&pJob->resData));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue