Merge pull request #2210 from taosdata/origin/hotfix/compile-error-on-centos
fix compile error on centos7
This commit is contained in:
commit
298c03bea1
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue