fix invalid wirte
This commit is contained in:
parent
5a760a83c4
commit
3036d4eac0
|
@ -452,9 +452,9 @@ TAOS_RES* tmq_subscribe(tmq_t* tmq, tmq_list_t* topic_list) {
|
||||||
tsem_wait(&pRequest->body.rspSem);
|
tsem_wait(&pRequest->body.rspSem);
|
||||||
|
|
||||||
_return:
|
_return:
|
||||||
if (sendInfo != NULL) {
|
/*if (sendInfo != NULL) {*/
|
||||||
destroySendMsgInfo(sendInfo);
|
/*destroySendMsgInfo(sendInfo);*/
|
||||||
}
|
/*}*/
|
||||||
|
|
||||||
if (pRequest != NULL && terrno != TSDB_CODE_SUCCESS) {
|
if (pRequest != NULL && terrno != TSDB_CODE_SUCCESS) {
|
||||||
pRequest->code = terrno;
|
pRequest->code = terrno;
|
||||||
|
|
|
@ -91,7 +91,7 @@ static int32_t mndProcessGetSubEpReq(SMnodeMsg *pMsg) {
|
||||||
int32_t assignedSz = taosArrayGetSize(pSub->assigned);
|
int32_t assignedSz = taosArrayGetSize(pSub->assigned);
|
||||||
topicEp.vgs = taosArrayInit(assignedSz, sizeof(SMqSubVgEp));
|
topicEp.vgs = taosArrayInit(assignedSz, sizeof(SMqSubVgEp));
|
||||||
for (int32_t j = 0; j < assignedSz; j++) {
|
for (int32_t j = 0; j < assignedSz; j++) {
|
||||||
SMqConsumerEp *pCEp = taosArrayGet(pSub->assigned, i);
|
SMqConsumerEp *pCEp = taosArrayGet(pSub->assigned, j);
|
||||||
if (pCEp->consumerId == consumerId) {
|
if (pCEp->consumerId == consumerId) {
|
||||||
SMqSubVgEp vgEp = {
|
SMqSubVgEp vgEp = {
|
||||||
.epSet = pCEp->epSet,
|
.epSet = pCEp->epSet,
|
||||||
|
|
Loading…
Reference in New Issue