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

This commit is contained in:
wangmm0220 2024-04-25 19:49:01 +08:00
parent e8ef5c570c
commit 4c87857153
1 changed files with 5 additions and 0 deletions

View File

@ -1352,6 +1352,11 @@ int32_t tmqPollCb(void* param, SDataBuf* pMsg, int32_t code) {
goto FAIL;
}
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;
}