Fix compilation problems in windows

This commit is contained in:
slguan 2019-09-05 10:44:23 +08:00
parent edcad56d4b
commit 355ddeba8b
2 changed files with 6 additions and 2 deletions

View File

@ -87,7 +87,7 @@ void taos_init_imp() {
tsReadGlobalConfig();
tsPrintGlobalConfig();
taosTmrReset(tscCheckDiskUsage, 10, NULL, tscTmr, &tscCheckDiskUsageTmr);
tscTrace("starting to initialize TAOS client ...");
tscTrace("Local IP address is:%s", tsLocalIp);
@ -148,6 +148,9 @@ void taos_init_imp() {
}
tscTmr = taosTmrInit(tsMaxMgmtConnections * 2, 200, 60000, "TSC");
if (tscEmbedded == 0) {
taosTmrReset(tscCheckDiskUsage, 10, NULL, tscTmr, &tscCheckDiskUsageTmr);
}
int64_t refreshTime = tsMetricMetaKeepTimer < tsMeterMetaKeepTimer ? tsMetricMetaKeepTimer : tsMeterMetaKeepTimer;
refreshTime = refreshTime > 2 ? 2 : refreshTime;

View File

@ -195,4 +195,5 @@ int wordexp(const char *words, wordexp_t *pwordexp, int flags) {
}
void wordfree(wordexp_t *pwordexp) {}
void taosGetDisk() {}