fix:do not release tmq to avoid invalid read/write when process quit

This commit is contained in:
wangmm0220 2025-02-10 09:09:12 +08:00
parent dd2a8ecf22
commit 78911a68ae
1 changed files with 0 additions and 5 deletions

View File

@ -1638,11 +1638,6 @@ void tmqMgmtClose(void) {
break;
}
atomic_store_8(&tmq->status, TMQ_CONSUMER_STATUS__CLOSED);
if (taosRemoveRef(tmqMgmt.rsetId, tmq->refId) != 0) {
qWarn("taosRemoveRef tmq refId:%" PRId64 " failed, error:%s", refId, tstrerror(terrno));
}
tmq = taosIterateRef(tmqMgmt.rsetId, refId);
}
taosCloseRef(tmqMgmt.rsetId);