fix:do not release tmq to avoid invalid read/write when process quit
This commit is contained in:
parent
dd2a8ecf22
commit
78911a68ae
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue