Merge branch 'develop' into hotfix/crash

This commit is contained in:
Shengliang Guan 2020-06-09 15:25:48 +00:00
commit f80a8f76a3
1 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ SCacheObj *taosCacheInitWithCb(int64_t refreshTime, void (*freeCb)(void *data))
return NULL;
}
pthread_attr_t thattr = {0};
pthread_attr_t thattr;
pthread_attr_init(&thattr);
pthread_attr_setdetachstate(&thattr, PTHREAD_CREATE_JOINABLE);
@ -625,4 +625,4 @@ void* taosCacheRefresh(void *handle) {
}
return NULL;
}
}