This commit is contained in:
Haojun Liao 2020-11-13 15:04:16 +08:00
parent e2125102c8
commit b3d582bb45
1 changed files with 5 additions and 0 deletions

View File

@ -658,7 +658,12 @@ void* taosCacheTimedRefresh(void *handle) {
int64_t count = 0;
while(1) {
#if defined LINUX
usleep(500*1000);
#else
taosMsleep(500);
#endif
// check if current cache object will be deleted every 500ms.
if (pCacheObj->deleting) {
uDebug("%s refresh threads quit", pCacheObj->name);