fix:need update epset if unsubscribe topic and topicNumGet is 0 at the same time

This commit is contained in:
wangmm0220 2023-09-14 10:39:22 +08:00
parent f729150497
commit a833d5d769
1 changed files with 1 additions and 1 deletions

View File

@ -1449,7 +1449,7 @@ static bool doUpdateLocalEp(tmq_t* tmq, int32_t epoch, const SMqAskEpRsp* pRsp)
bool set = false;
int32_t topicNumGet = taosArrayGetSize(pRsp->topics);
if (topicNumGet <= 0) {
if (topicNumGet <= 0 && epoch <= tmq->epoch) {
tscInfo("consumer:0x%" PRIx64 " no update ep epoch from %d to epoch %d, incoming topics:%d",
tmq->consumerId, tmq->epoch, epoch, topicNumGet);
return false;