!2778 函数IsQidInvalid内条件判断不准确

Merge pull request !2778 from foolishlee/IsQidInvalid
This commit is contained in:
opengauss-bot
2023-02-24 02:50:34 +00:00
committed by Gitee

View File

@ -125,9 +125,9 @@ void updateIOFlowData4GroupUserOnCN(UserData* userdata);
bool IsQidInvalid(const Qid* qid)
{
#ifdef ENABLE_MULTIPLE_NODES
return (qid == NULL || qid->queryId <= 0 || qid->procId > KBYTES || qid->procId <= 0 || qid->stamp < 0);
return (qid == NULL || qid->queryId == 0 || qid->procId > KBYTES || qid->procId == 0 || qid->stamp < 0);
#else
return (qid == NULL || qid->queryId <= 0 || qid->stamp < 0);
return (qid == NULL || qid->queryId == 0 || qid->stamp < 0);
#endif
}