Merge pull request #2210 from taosdata/origin/hotfix/compile-error-on-centos

fix compile error on centos7
This commit is contained in:
Shengliang Guan 2020-06-09 23:12:39 +08:00 committed by GitHub
commit 298c03bea1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}
}