TD-1057
This commit is contained in:
parent
7444fe7a84
commit
ab6151cd90
|
@ -147,12 +147,12 @@ int32_t tsMonitorInterval = 30; // seconds
|
|||
|
||||
// internal
|
||||
int32_t tscEmbedded = 0;
|
||||
char configDir[TSDB_FILENAME_LEN] = "/etc/taos";
|
||||
char configDir[TSDB_FILENAME_LEN] = {0};
|
||||
char tsVnodeDir[TSDB_FILENAME_LEN] = {0};
|
||||
char tsDnodeDir[TSDB_FILENAME_LEN] = {0};
|
||||
char tsMnodeDir[TSDB_FILENAME_LEN] = {0};
|
||||
char tsDataDir[TSDB_FILENAME_LEN] = "/var/lib/taos";
|
||||
char tsScriptDir[TSDB_FILENAME_LEN] = "/etc/taos";
|
||||
char tsDataDir[TSDB_FILENAME_LEN] = {0};
|
||||
char tsScriptDir[TSDB_FILENAME_LEN] = {0};
|
||||
char tsVnodeBakDir[TSDB_FILENAME_LEN] = {0};
|
||||
|
||||
/*
|
||||
|
|
|
@ -18,7 +18,10 @@
|
|||
#include "tglobal.h"
|
||||
|
||||
void osInit() {
|
||||
strcpy(configDir, "/etc/taos");
|
||||
if (configDir[0] == 0) {
|
||||
strcpy(configDir, "/etc/taos");
|
||||
}
|
||||
|
||||
strcpy(tsVnodeDir, "");
|
||||
strcpy(tsDnodeDir, "");
|
||||
strcpy(tsMnodeDir, "");
|
||||
|
|
|
@ -18,7 +18,10 @@
|
|||
#include "tglobal.h"
|
||||
|
||||
void osInit() {
|
||||
strcpy(configDir, "~/TDengine/cfg");
|
||||
if (configDir[0] == 0) {
|
||||
strcpy(configDir, "~/TDengine/cfg");
|
||||
}
|
||||
|
||||
strcpy(tsVnodeDir, "");
|
||||
strcpy(tsDnodeDir, "");
|
||||
strcpy(tsMnodeDir, "");
|
||||
|
|
|
@ -18,7 +18,10 @@
|
|||
#include "tglobal.h"
|
||||
|
||||
void osInit() {
|
||||
strcpy(configDir, "/etc/taos");
|
||||
if (configDir[0] == 0) {
|
||||
strcpy(configDir, "/etc/taos");
|
||||
}
|
||||
|
||||
strcpy(tsVnodeDir, "");
|
||||
strcpy(tsDnodeDir, "");
|
||||
strcpy(tsMnodeDir, "");
|
||||
|
|
|
@ -21,7 +21,10 @@
|
|||
extern void taosWinSocketInit();
|
||||
|
||||
void osInit() {
|
||||
strcpy(configDir, "C:/TDengine/cfg");
|
||||
if (configDir[0] == 0) {
|
||||
strcpy(configDir, "~/TDengine/cfg");
|
||||
}
|
||||
|
||||
strcpy(tsVnodeDir, "C:/TDengine/data");
|
||||
strcpy(tsDnodeDir, "");
|
||||
strcpy(tsMnodeDir, "");
|
||||
|
|
Loading…
Reference in New Issue