未验证 提交 298c03be 编写于 作者: S Shengliang Guan 提交者: GitHub

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

fix compile error on centos7
......@@ -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;
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册