提交 fcfddad5 编写于 作者: G Ganlin Zhao

fix(query): fix coredump in calculateOperatorProfResults

上级 56b66ea9
...@@ -4966,8 +4966,10 @@ static void doOperatorExecProfOnce(SOperatorStackItem* item, SQueryProfEvent* ev ...@@ -4966,8 +4966,10 @@ static void doOperatorExecProfOnce(SOperatorStackItem* item, SQueryProfEvent* ev
} }
void calculateOperatorProfResults(SQInfo* pQInfo) { void calculateOperatorProfResults(SQInfo* pQInfo) {
if (pQInfo->summary.queryProfEvents == NULL) { if (pQInfo->summary.queryProfEvents == NULL ||
qDebug("QInfo:0x%" PRIx64 " query prof events array is null", pQInfo->qId); pQInfo->summary.queryProfEvents->pData == NULL ||
pQInfo->summary.queryProfEvents->size == 0) {
qDebug("QInfo:0x%" PRIx64 " query prof events array is null or array data invalid", pQInfo->qId);
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册