Merge pull request #29722 from taosdata/fix/TD-33556
fix:do not release tmq to avoid invalid read/write when process quit
This commit is contained in:
commit
c10a2e8991
|
@ -1639,11 +1639,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);
|
||||
|
|
Loading…
Reference in New Issue