From 355ddeba8b5aa3cd98b1268839e4284872969e05 Mon Sep 17 00:00:00 2001 From: slguan Date: Thu, 5 Sep 2019 10:44:23 +0800 Subject: [PATCH] Fix compilation problems in windows --- src/client/src/tscSystem.c | 7 +++++-- src/os/windows/src/twindows.c | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/client/src/tscSystem.c b/src/client/src/tscSystem.c index 9ca05b8166..2cf55a287f 100644 --- a/src/client/src/tscSystem.c +++ b/src/client/src/tscSystem.c @@ -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,7 +148,10 @@ 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; refreshTime = refreshTime < 1 ? 1 : refreshTime; diff --git a/src/os/windows/src/twindows.c b/src/os/windows/src/twindows.c index 167b1f7082..91cc560eb9 100644 --- a/src/os/windows/src/twindows.c +++ b/src/os/windows/src/twindows.c @@ -195,4 +195,5 @@ int wordexp(const char *words, wordexp_t *pwordexp, int flags) { } void wordfree(wordexp_t *pwordexp) {} +void taosGetDisk() {}