提交 8c7505ce 编写于 作者: S Shengliang Guan

minor changes

上级 e25637fe
...@@ -19,23 +19,23 @@ ...@@ -19,23 +19,23 @@
extern void taosWinSocketInit(); extern void taosWinSocketInit();
char configDir[PATH_MAX] = {0}; char configDir[PATH_MAX] = {0};
char tsDataDir[PATH_MAX]; char tsDataDir[PATH_MAX] = {0};
char tsLogDir[PATH_MAX]; char tsLogDir[PATH_MAX] = {0};
char tsTempDir[PATH_MAX]; char tsTempDir[PATH_MAX] = {0};
SDiskSpace tsDataSpace; SDiskSpace tsDataSpace = {0};
SDiskSpace tsLogSpace; SDiskSpace tsLogSpace = {0};
SDiskSpace tsTempSpace; SDiskSpace tsTempSpace = {0};
char tsOsName[16]; char tsOsName[16] = {0};
char tsTimezone[TD_TIMEZONE_LEN]; char tsTimezone[TD_TIMEZONE_LEN] = {0};
char tsLocale[TD_LOCALE_LEN]; char tsLocale[TD_LOCALE_LEN] = {0};
char tsCharset[TD_CHARSET_LEN]; char tsCharset[TD_CHARSET_LEN] = {0};
int8_t tsDaylight; int8_t tsDaylight = 0;
bool tsEnableCoreFile; bool tsEnableCoreFile = 0;
int64_t tsPageSize; int64_t tsPageSize = 0;
int64_t tsOpenMax; int64_t tsOpenMax = 0;
int64_t tsStreamMax; int64_t tsStreamMax = 0;
int32_t tsNumOfCores; int32_t tsNumOfCores = 0;
int32_t tsTotalMemoryMB; int32_t tsTotalMemoryMB = 0;
void osInit() { void osInit() {
srand(taosSafeRand()); srand(taosSafeRand());
......
...@@ -16,11 +16,6 @@ ...@@ -16,11 +16,6 @@
#define _DEFAULT_SOURCE #define _DEFAULT_SOURCE
#include "os.h" #include "os.h"
int32_t tsTotalMemoryMB = 0;
int64_t tsPageSize = 0;
int64_t tsOpenMax = 0;
int64_t tsStreamMax = 0;
int32_t tsNumOfCores = 2;
#if defined(_TD_WINDOWS_64) || defined(_TD_WINDOWS_32) #if defined(_TD_WINDOWS_64) || defined(_TD_WINDOWS_32)
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册