minor changes
This commit is contained in:
parent
e25637fe29
commit
8c7505cee7
|
@ -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 @@
|
||||||
#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)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue