From d3db69f889fd73072f901c938570dd576bf745bb Mon Sep 17 00:00:00 2001 From: afwerar <1296468573@qq.com> Date: Tue, 10 May 2022 17:55:05 +0800 Subject: [PATCH] fix(os): entos thread error. --- source/util/src/tcache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/util/src/tcache.c b/source/util/src/tcache.c index 14503e7068..9dcbafca7a 100644 --- a/source/util/src/tcache.c +++ b/source/util/src/tcache.c @@ -911,7 +911,7 @@ void taosCacheRefresh(SCacheObj *pCacheObj, __cache_trav_fn_t fp, void *param1) void taosStopCacheRefreshWorker(void) { stopRefreshWorker = true; - taosThreadJoin(cacheRefreshWorker, NULL); + if(cacheThreadInit != PTHREAD_ONCE_INIT) taosThreadJoin(cacheRefreshWorker, NULL); taosArrayDestroy(pCacheArrayList); } -- GitLab