From a44075c2f1a0599c8f0297fa43a683c06e075a66 Mon Sep 17 00:00:00 2001 From: afwerar <1296468573@qq.com> Date: Mon, 23 Aug 2021 18:28:30 +0800 Subject: [PATCH] [TD-6169]: windows dll client can not quit. --- src/util/src/tcache.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/src/tcache.c b/src/util/src/tcache.c index 26c2d97fe9..be5584d182 100644 --- a/src/util/src/tcache.c +++ b/src/util/src/tcache.c @@ -721,8 +721,6 @@ void* taosCacheTimedRefresh(void *handle) { continue; } - pthread_mutex_unlock(&guard); - if ((count % pCacheObj->checkTick) != 0) { continue; } @@ -742,6 +740,8 @@ void* taosCacheTimedRefresh(void *handle) { } taosTrashcanEmpty(pCacheObj, false); + + pthread_mutex_unlock(&guard); } } -- GitLab