From 0aa8d9ef5dbd903b6e87fe2ca0fd92b13710e1bc Mon Sep 17 00:00:00 2001 From: Liu Jicong Date: Wed, 16 Feb 2022 15:59:43 +0800 Subject: [PATCH] fix typo --- source/client/src/tmq.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/client/src/tmq.c b/source/client/src/tmq.c index b1e63d55f9..8d518e9406 100644 --- a/source/client/src/tmq.c +++ b/source/client/src/tmq.c @@ -173,6 +173,12 @@ int32_t tmq_list_append(tmq_list_t* ptr, const char* src) { return 0; } +tmq_resp_err_t tmq_reset_offset(tmq_t* tmq, const tmq_topic_vgroup_list_t* offsets) { + // build msg + // send to mnode + return TMQ_RESP_ERR__SUCCESS; +} + int32_t tmqSubscribeCb(void* param, const SDataBuf* pMsg, int32_t code) { SMqSubscribeCbParam* pParam = (SMqSubscribeCbParam*)param; pParam->rspErr = code; @@ -704,7 +710,7 @@ tmq_message_t* tmq_consumer_poll(tmq_t* tmq, int64_t blocking_time) { pTopic->nextVgIdx = (pTopic->nextVgIdx + 1) % taosArrayGetSize(pTopic->vgs); SMqClientVg* pVg = taosArrayGet(pTopic->vgs, pTopic->nextVgIdx); /*printf("consume vg %d, offset %ld\n", pVg->vgId, pVg->currentOffset);*/ - int32_t reqType = tmq->autoCommit ? TMQ_REQ_TYPE_CONSUME_AND_COMMIT : TMQ_REQ_TYPE_COMMIT_ONLY; + int32_t reqType = tmq->autoCommit ? TMQ_REQ_TYPE_CONSUME_AND_COMMIT : TMQ_REQ_TYPE_CONSUME_ONLY; SMqConsumeReq* pReq = tmqBuildConsumeReqImpl(tmq, blocking_time, reqType, pTopic, pVg); if (pReq == NULL) { ASSERT(false);