fix:[TS-5776]add raw type from consumer
This commit is contained in:
parent
b9d966fb23
commit
3fb2ec432e
|
@ -2587,7 +2587,7 @@ TAOS_RES* tmq_consumer_poll(tmq_t* tmq, int64_t timeout) {
|
||||||
|
|
||||||
END:
|
END:
|
||||||
terrno = code;
|
terrno = code;
|
||||||
if (tmq != NULL) {
|
if (tmq != NULL && terrno != 0) {
|
||||||
tqErrorC("consumer:0x%" PRIx64 " poll error at line:%d, msg:%s", tmq->consumerId, lino, tstrerror(terrno));
|
tqErrorC("consumer:0x%" PRIx64 " poll error at line:%d, msg:%s", tmq->consumerId, lino, tstrerror(terrno));
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
@ -2682,7 +2682,7 @@ int32_t buildSubmitReqFromDataBlock(SSubmitReq2** ppReq, const SSDataBlock* pDat
|
||||||
terrno = 0;
|
terrno = 0;
|
||||||
|
|
||||||
if (NULL == pReq) {
|
if (NULL == pReq) {
|
||||||
if (!(pReq = taosMemoryMalloc(sizeof(SSubmitReq2)))) {
|
if (!(pReq = taosMemoryCalloc(1, sizeof(SSubmitReq2)))) {
|
||||||
code = terrno;
|
code = terrno;
|
||||||
goto _end;
|
goto _end;
|
||||||
}
|
}
|
||||||
|
|
|
@ -187,7 +187,7 @@ int32_t buildSubmitReqFromBlock(SDataInserterHandle* pInserter, SSubmitReq2** pp
|
||||||
terrno = TSDB_CODE_SUCCESS;
|
terrno = TSDB_CODE_SUCCESS;
|
||||||
|
|
||||||
if (NULL == pReq) {
|
if (NULL == pReq) {
|
||||||
if (!(pReq = taosMemoryMalloc(sizeof(SSubmitReq2)))) {
|
if (!(pReq = taosMemoryCalloc(1, sizeof(SSubmitReq2)))) {
|
||||||
goto _end;
|
goto _end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue