未验证 提交 159f0cb9 编写于 作者: D dapan1121 提交者: GitHub

Merge pull request #19449 from taosdata/fix/TS-2409

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