From ea2607a73828279cbbc4ba07f7fbecc2985292bc Mon Sep 17 00:00:00 2001 From: afwerar <1296468573@qq.com> Date: Tue, 24 Aug 2021 13:38:33 +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 aaa1d5ba9e..8d538e37bc 100644 --- a/src/util/src/tcache.c +++ b/src/util/src/tcache.c @@ -720,8 +720,6 @@ void* taosCacheTimedRefresh(void *handle) { continue; } - pthread_mutex_unlock(&guard); - if ((count % pCacheObj->checkTick) != 0) { continue; } @@ -741,6 +739,8 @@ void* taosCacheTimedRefresh(void *handle) { } taosTrashcanEmpty(pCacheObj, false); + + pthread_mutex_unlock(&guard); } }