Merge pull request #25373 from taosdata/fix/TD-29540

fix: task queue quit issue
This commit is contained in:
dapan1121 2024-04-17 10:06:43 +08:00 committed by GitHub
commit c43c0cf427
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -210,6 +210,7 @@ int taosScheduleTask(void *queueScheduler, SSchedMsg *pMsg) {
void taosCleanUpScheduler(void *param) {
SSchedQueue *pSched = (SSchedQueue *)param;
if (pSched == NULL) return;
if (pSched->stop) return;
uDebug("start to cleanup %s schedQsueue", pSched->label);
@ -240,6 +241,7 @@ void taosCleanUpScheduler(void *param) {
if (pSched->queue) taosMemoryFree(pSched->queue);
if (pSched->qthread) taosMemoryFree(pSched->qthread);
pSched->numOfThreads = 0;
// taosMemoryFree(pSched);
}