fix:[TS-4718]pMsg->data is null

This commit is contained in:
yihaoDeng 2024-04-29 01:19:53 +08:00
parent edabe85952
commit 07291a7ebc
1 changed files with 4 additions and 4 deletions

View File

@ -1352,15 +1352,15 @@ int32_t tmqPollCb(void* param, SDataBuf* pMsg, int32_t code) {
goto FAIL;
}
if (code != 0) {
goto END;
}
if(pMsg->pData == NULL){
tscError("consumer:0x%" PRIx64 " msg discard from vgId:%d, since msg is NULL", tmq->consumerId, vgId);
goto FAIL;
}
if (code != 0) {
goto END;
}
int32_t msgEpoch = ((SMqRspHead*)pMsg->pData)->epoch;
int32_t clientEpoch = atomic_load_32(&tmq->epoch);
if (msgEpoch < clientEpoch) {