Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
ab0e3fde
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ab0e3fde
编写于
12月 29, 2021
作者:
Z
zyyang-taosdata
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
remove oem infos
上级
fc8b302e
变更
14
隐藏空白更改
内联
并排
Showing
14 changed file
with
7 addition
and
275 deletion
+7
-275
CMakeLists.txt
CMakeLists.txt
+0
-1
cmake/define.inc
cmake/define.inc
+0
-20
cmake/input.inc
cmake/input.inc
+0
-17
cmake/install.inc
cmake/install.inc
+5
-29
src/client/src/tscSystem.c
src/client/src/tscSystem.c
+0
-10
src/inc/taosdef.h
src/inc/taosdef.h
+0
-13
src/kit/shell/CMakeLists.txt
src/kit/shell/CMakeLists.txt
+1
-13
src/kit/shell/inc/shell.h
src/kit/shell/inc/shell.h
+1
-15
src/kit/shell/src/shellEngine.c
src/kit/shell/src/shellEngine.c
+0
-32
src/kit/shell/src/shellWindows.c
src/kit/shell/src/shellWindows.c
+0
-12
src/os/src/linux/linuxEnv.c
src/os/src/linux/linuxEnv.c
+0
-38
src/os/src/windows/wEnv.c
src/os/src/windows/wEnv.c
+0
-45
src/util/src/tconfig.c
src/util/src/tconfig.c
+0
-17
src/util/src/tlog.c
src/util/src/tlog.c
+0
-13
未找到文件。
CMakeLists.txt
浏览文件 @
ab0e3fde
...
...
@@ -50,7 +50,6 @@ SET(TD_MEM_CHECK FALSE)
SET
(
TD_PAGMODE_LITE FALSE
)
SET
(
TD_SOMODE_STATIC FALSE
)
SET
(
TD_POWER FALSE
)
SET
(
TD_GODLL FALSE
)
SET
(
TD_COMMUNITY_DIR
${
PROJECT_SOURCE_DIR
}
)
...
...
cmake/define.inc
浏览文件 @
ab0e3fde
...
...
@@ -41,26 +41,6 @@ IF (TD_GODLL)
ADD_DEFINITIONS
(
-
D_TD_GO_DLL_
)
ENDIF
()
IF
(
TD_POWER
)
ADD_DEFINITIONS
(
-
D_TD_POWER_
)
ENDIF
()
IF
(
TD_TQ
)
ADD_DEFINITIONS
(
-
D_TD_TQ_
)
ENDIF
()
IF
(
TD_PRO
)
ADD_DEFINITIONS
(
-
D_TD_PRO_
)
ENDIF
()
IF
(
TD_KH
)
ADD_DEFINITIONS
(
-
D_TD_KH_
)
ENDIF
()
IF
(
TD_JH
)
ADD_DEFINITIONS
(
-
D_TD_JH_
)
ENDIF
()
IF
(
TD_MEM_CHECK
)
ADD_DEFINITIONS
(
-
DTAOS_MEM_CHECK
)
ENDIF
()
...
...
cmake/input.inc
浏览文件 @
ab0e3fde
...
...
@@ -43,23 +43,6 @@ IF (${SOMODE} MATCHES "static")
MESSAGE
(
STATUS
"Link so using static mode"
)
ENDIF
()
IF
(
$
{
DBNAME
}
MATCHES
"power"
)
SET
(
TD_POWER
TRUE
)
MESSAGE
(
STATUS
"power is true"
)
ELSEIF
(
$
{
DBNAME
}
MATCHES
"tq"
)
SET
(
TD_TQ
TRUE
)
MESSAGE
(
STATUS
"tq is true"
)
ELSEIF
(
$
{
DBNAME
}
MATCHES
"pro"
)
SET
(
TD_PRO
TRUE
)
MESSAGE
(
STATUS
"pro is true"
)
ELSEIF
(
$
{
DBNAME
}
MATCHES
"kh"
)
SET
(
TD_KH
TRUE
)
MESSAGE
(
STATUS
"kh is true"
)
ELSEIF
(
$
{
DBNAME
}
MATCHES
"jh"
)
SET
(
TD_JH
TRUE
)
MESSAGE
(
STATUS
"jh is true"
)
ENDIF
()
IF
(
$
{
DLLTYPE
}
MATCHES
"go"
)
SET
(
TD_GODLL
TRUE
)
MESSAGE
(
STATUS
"input dll type: "
$
{
DLLTYPE
})
...
...
cmake/install.inc
浏览文件 @
ab0e3fde
...
...
@@ -3,48 +3,24 @@ IF (TD_LINUX)
INSTALL
(
CODE
"MESSAGE(
\"
make install script: ${TD_MAKE_INSTALL_SH}
\"
)"
)
INSTALL
(
CODE
"execute_process(COMMAND bash ${TD_MAKE_INSTALL_SH} ${TD_COMMUNITY_DIR} ${PROJECT_BINARY_DIR} Linux ${TD_VER_NUMBER})"
)
ELSEIF
(
TD_WINDOWS
)
IF
(
TD_POWER
)
SET
(
CMAKE_INSTALL_PREFIX
C
:/
PowerDB
)
ELSEIF
(
TD_TQ
)
SET
(
CMAKE_INSTALL_PREFIX
C
:/
TQueue
)
ELSEIF
(
TD_PRO
)
SET
(
CMAKE_INSTALL_PREFIX
C
:/
ProDB
)
ELSEIF
(
TD_KH
)
SET
(
CMAKE_INSTALL_PREFIX
C
:/
KingHistorian
)
ELSEIF
(
TD_JH
)
SET
(
CMAKE_INSTALL_PREFIX
C
:/
jh_iot
)
ELSE
()
SET
(
CMAKE_INSTALL_PREFIX
C
:/
TDengine
)
ENDIF
()
SET
(
CMAKE_INSTALL_PREFIX
C
:/
TDengine
)
INSTALL
(
DIRECTORY
$
{
TD_COMMUNITY_DIR
}
/
src
/
connector
/
go
DESTINATION
connector
)
INSTALL
(
DIRECTORY
$
{
TD_COMMUNITY_DIR
}
/
src
/
connector
/
nodejs
DESTINATION
connector
)
INSTALL
(
DIRECTORY
$
{
TD_COMMUNITY_DIR
}
/
src
/
connector
/
python
DESTINATION
connector
)
INSTALL
(
DIRECTORY
$
{
TD_COMMUNITY_DIR
}
/
src
/
connector
/
C
\
# DESTINATION connector)
INSTALL
(
DIRECTORY
$
{
TD_COMMUNITY_DIR
}
/
tests
/
examples
DESTINATION
.
)
INSTALL
(
DIRECTORY
$
{
TD_COMMUNITY_DIR
}
/
packaging
/
cfg
DESTINATION
.
)
INSTALL
(
FILES
$
{
TD_COMMUNITY_DIR
}
/
packaging
/
cfg
/
taos
.
cfg
DESTINATION
cfg
)
INSTALL
(
FILES
$
{
TD_COMMUNITY_DIR
}
/
src
/
inc
/
taos
.
h
DESTINATION
include
)
INSTALL
(
FILES
$
{
TD_COMMUNITY_DIR
}
/
src
/
inc
/
taoserror
.
h
DESTINATION
include
)
INSTALL
(
FILES
$
{
LIBRARY_OUTPUT_PATH
}
/
taos
.
lib
DESTINATION
driver
)
INSTALL
(
FILES
$
{
LIBRARY_OUTPUT_PATH
}
/
taos
.
exp
DESTINATION
driver
)
INSTALL
(
FILES
$
{
LIBRARY_OUTPUT_PATH
}
/
taos
.
dll
DESTINATION
driver
)
IF
(
TD_POWER
)
INSTALL
(
FILES
$
{
EXECUTABLE_OUTPUT_PATH
}
/
power
.
exe
DESTINATION
.
)
ELSEIF
(
TD_TQ
)
INSTALL
(
FILES
$
{
EXECUTABLE_OUTPUT_PATH
}
/
tq
.
exe
DESTINATION
.
)
ELSEIF
(
TD_PRO
)
INSTALL
(
FILES
$
{
EXECUTABLE_OUTPUT_PATH
}
/
prodbc
.
exe
DESTINATION
.
)
ELSEIF
(
TD_KH
)
INSTALL
(
FILES
$
{
EXECUTABLE_OUTPUT_PATH
}
/
khclient
.
exe
DESTINATION
.
)
ELSEIF
(
TD_JH
)
INSTALL
(
FILES
$
{
EXECUTABLE_OUTPUT_PATH
}
/
jh_taos
.
exe
DESTINATION
.
)
ELSE
()
INSTALL
(
FILES
$
{
EXECUTABLE_OUTPUT_PATH
}
/
taos
.
exe
DESTINATION
.
)
ENDIF
()
INSTALL
(
FILES
$
{
EXECUTABLE_OUTPUT_PATH
}
/
taos
.
exe
DESTINATION
.
)
#INSTALL(TARGETS taos RUNTIME DESTINATION driver)
#INSTALL(TARGETS shell RUNTIME DESTINATION .)
IF
(
TD_MVN_INSTALLED
)
INSTALL
(
FILES
$
{
LIBRARY_OUTPUT_PATH
}
/
taos
-
jdbcdriver
-
2.0.36
-
dist
.
jar
DESTINATION
connector
/
jdbc
)
ENDIF
()
...
...
src/client/src/tscSystem.c
浏览文件 @
ab0e3fde
...
...
@@ -47,17 +47,7 @@ int32_t tscNumOfObj = 0; // number of sqlObj in current process.
static
void
*
tscCheckDiskUsageTmr
;
void
*
tscRpcCache
;
// cache to keep rpc obj
int32_t
tscNumOfThreads
=
1
;
// num of rpc threads
#ifdef _TD_POWER_
char
tscLogFileName
[
12
]
=
"powerlog"
;
#elif (_TD_TQ_ == true)
char
tscLogFileName
[
12
]
=
"tqlog"
;
#elif (_TD_PRO_ == true)
char
tscLogFileName
[
12
]
=
"prolog"
;
#elif (_TD_KH_ == true)
char
tscLogFileName
[
12
]
=
"khclientlog"
;
#else
char
tscLogFileName
[
12
]
=
"taoslog"
;
#endif
int
tscLogFileNum
=
10
;
static
pthread_mutex_t
rpcObjMutex
;
// mutex to protect open the rpc obj concurrently
...
...
src/inc/taosdef.h
浏览文件 @
ab0e3fde
...
...
@@ -85,20 +85,7 @@ extern const int32_t TYPE_BYTES[16];
#define TSDB_DATA_NULL_STR_L "null"
#define TSDB_DEFAULT_USER "root"
#ifdef _TD_POWER_
#define TSDB_DEFAULT_PASS "powerdb"
#elif (_TD_TQ_ == true)
#define TSDB_DEFAULT_PASS "tqueue"
#elif (_TD_PRO_ == true)
#define TSDB_DEFAULT_PASS "prodb"
#elif (_TD_KH_ == true)
#define TSDB_DEFAULT_PASS "khroot"
#elif (_TD_JH_ == true)
#define TSDB_DEFAULT_PASS "jhdata"
#else
#define TSDB_DEFAULT_PASS "taosdata"
#endif
#define SHELL_MAX_PASSWORD_LEN 20
...
...
src/kit/shell/CMakeLists.txt
浏览文件 @
ab0e3fde
...
...
@@ -38,19 +38,7 @@ ELSEIF (TD_WINDOWS)
TARGET_LINK_LIBRARIES
(
shell taos_static cJson
)
IF
(
TD_POWER
)
SET_TARGET_PROPERTIES
(
shell PROPERTIES OUTPUT_NAME power
)
ELSEIF
(
TD_TQ
)
SET_TARGET_PROPERTIES
(
shell PROPERTIES OUTPUT_NAME tq
)
ELSEIF
(
TD_PRO
)
SET_TARGET_PROPERTIES
(
shell PROPERTIES OUTPUT_NAME prodbc
)
ELSEIF
(
TD_KH
)
SET_TARGET_PROPERTIES
(
shell PROPERTIES OUTPUT_NAME khclient
)
ELSEIF
(
TD_JH
)
SET_TARGET_PROPERTIES
(
shell PROPERTIES OUTPUT_NAME jh_taos
)
ELSE
()
SET_TARGET_PROPERTIES
(
shell PROPERTIES OUTPUT_NAME taos
)
ENDIF
()
SET_TARGET_PROPERTIES
(
shell PROPERTIES OUTPUT_NAME taos
)
ELSEIF
(
TD_DARWIN
)
LIST
(
APPEND SRC ./src/shellEngine.c
)
LIST
(
APPEND SRC ./src/shellMain.c
)
...
...
src/kit/shell/inc/shell.h
浏览文件 @
ab0e3fde
...
...
@@ -27,21 +27,7 @@
#define MAX_IP_SIZE 20
#define MAX_HISTORY_SIZE 1000
#define MAX_COMMAND_SIZE 1048586
#ifdef _TD_POWER_
#define HISTORY_FILE ".power_history"
#elif (_TD_TQ_ == true)
#define HISTORY_FILE ".tq_history"
#elif (_TD_PRO_ == true)
#define HISTORY_FILE ".prodb_history"
#elif (_TD_KH_ == true)
#define HISTORY_FILE ".kh_history"
#elif (_TD_JH_ == true)
#define HISTORY_FILE ".jh_taos_history"
#else
#define HISTORY_FILE ".taos_history"
#endif
#define HISTORY_FILE ".taos_history"
#define DEFAULT_RES_SHOW_NUM 100
typedef
struct
SShellHistory
{
...
...
src/kit/shell/src/shellEngine.c
浏览文件 @
ab0e3fde
...
...
@@ -30,43 +30,11 @@
#include <regex.h>
/**************** Global variables ****************/
#ifdef _TD_POWER_
char
CLIENT_VERSION
[]
=
"Welcome to the PowerDB shell from %s, Client Version:%s
\n
"
"Copyright (c) 2020 by PowerDB, Inc. All rights reserved.
\n\n
"
;
char
PROMPT_HEADER
[]
=
"power> "
;
char
CONTINUE_PROMPT
[]
=
" -> "
;
int
prompt_size
=
7
;
#elif (_TD_TQ_ == true)
char
CLIENT_VERSION
[]
=
"Welcome to the TQ shell from %s, Client Version:%s
\n
"
"Copyright (c) 2020 by TQ, Inc. All rights reserved.
\n\n
"
;
char
PROMPT_HEADER
[]
=
"tq> "
;
char
CONTINUE_PROMPT
[]
=
" -> "
;
int
prompt_size
=
4
;
#elif (_TD_PRO_ == true)
char
CLIENT_VERSION
[]
=
"Welcome to the ProDB shell from %s, Client Version:%s
\n
"
"Copyright (c) 2020 by Hanatech, Inc. All rights reserved.
\n\n
"
;
char
PROMPT_HEADER
[]
=
"ProDB> "
;
char
CONTINUE_PROMPT
[]
=
" -> "
;
int
prompt_size
=
7
;
#elif (_TD_KH_ == true)
char
CLIENT_VERSION
[]
=
"Welcome to the KingHistorian shell from %s, Client Version:%s
\n
"
"Copyright (c) 2021 by Hanatech, Inc. All rights reserved.
\n\n
"
;
char
PROMPT_HEADER
[]
=
"kh> "
;
char
CONTINUE_PROMPT
[]
=
" -> "
;
int
prompt_size
=
4
;
#elif (_TD_JH_ == true)
char
CLIENT_VERSION
[]
=
"Welcome to the jh_iot shell from %s, Client Version:%s
\n
"
"Copyright (c) 2021 by jinheng, Inc. All rights reserved.
\n\n
"
;
char
PROMPT_HEADER
[]
=
"jh_taos> "
;
char
CONTINUE_PROMPT
[]
=
" -> "
;
int
prompt_size
=
9
;
#else
char
CLIENT_VERSION
[]
=
"Welcome to the TDengine shell from %s, Client Version:%s
\n
"
"Copyright (c) 2020 by TAOS Data, Inc. All rights reserved.
\n\n
"
;
char
PROMPT_HEADER
[]
=
"taos> "
;
char
CONTINUE_PROMPT
[]
=
" -> "
;
int
prompt_size
=
6
;
#endif
int64_t
result
=
0
;
SShellHistory
history
;
...
...
src/kit/shell/src/shellWindows.c
浏览文件 @
ab0e3fde
...
...
@@ -333,19 +333,7 @@ void *shellLoopQuery(void *arg) {
}
void
get_history_path
(
char
*
history
)
{
#ifdef _TD_POWER_
sprintf
(
history
,
"C:/PowerDB/%s"
,
HISTORY_FILE
);
#elif (_TD_TQ_ == true)
sprintf
(
history
,
"C:/TQueue/%s"
,
HISTORY_FILE
);
#elif (_TD_PRO_ == true)
sprintf
(
history
,
"C:/ProDB/%s"
,
HISTORY_FILE
);
#elif (_TD_KH_ == true)
sprintf
(
history
,
"C:/KingHistorian/%s"
,
HISTORY_FILE
);
#elif (_TD_JH_ == true)
sprintf
(
history
,
"C:/jh_iot/%s"
,
HISTORY_FILE
);
#else
sprintf
(
history
,
"C:/TDengine/%s"
,
HISTORY_FILE
);
#endif
}
void
exitShell
()
{
exit
(
EXIT_SUCCESS
);
}
src/os/src/linux/linuxEnv.c
浏览文件 @
ab0e3fde
...
...
@@ -18,50 +18,12 @@
#include "tglobal.h"
void
osInit
()
{
#ifdef _TD_POWER_
if
(
configDir
[
0
]
==
0
)
{
strcpy
(
configDir
,
"/etc/power"
);
}
strcpy
(
tsDataDir
,
"/var/lib/power"
);
strcpy
(
tsLogDir
,
"/var/log/power"
);
strcpy
(
tsScriptDir
,
"/etc/power"
);
#elif (_TD_TQ_ == true)
if
(
configDir
[
0
]
==
0
)
{
strcpy
(
configDir
,
"/etc/tq"
);
}
strcpy
(
tsDataDir
,
"/var/lib/tq"
);
strcpy
(
tsLogDir
,
"/var/log/tq"
);
strcpy
(
tsScriptDir
,
"/etc/tq"
);
#elif (_TD_PRO_ == true)
if
(
configDir
[
0
]
==
0
)
{
strcpy
(
configDir
,
"/etc/ProDB"
);
}
strcpy
(
tsDataDir
,
"/var/lib/ProDB"
);
strcpy
(
tsLogDir
,
"/var/log/ProDB"
);
strcpy
(
tsScriptDir
,
"/etc/ProDB"
);
#elif (_TD_KH_ == true)
if
(
configDir
[
0
]
==
0
)
{
strcpy
(
configDir
,
"/etc/kinghistorian"
);
}
strcpy
(
tsDataDir
,
"/var/lib/kinghistorian"
);
strcpy
(
tsLogDir
,
"/var/log/kinghistorian"
);
strcpy
(
tsScriptDir
,
"/etc/kinghistorian"
);
#elif (_TD_JH_ == true)
if
(
configDir
[
0
]
==
0
)
{
strcpy
(
configDir
,
"/etc/jh_taos"
);
}
strcpy
(
tsDataDir
,
"/var/lib/jh_taos"
);
strcpy
(
tsLogDir
,
"/var/log/jh_taos"
);
strcpy
(
tsScriptDir
,
"/etc/jh_taos"
);
#else
if
(
configDir
[
0
]
==
0
)
{
strcpy
(
configDir
,
"/etc/taos"
);
}
strcpy
(
tsDataDir
,
"/var/lib/taos"
);
strcpy
(
tsLogDir
,
"/var/log/taos"
);
strcpy
(
tsScriptDir
,
"/etc/taos"
);
#endif
strcpy
(
tsVnodeDir
,
""
);
strcpy
(
tsDnodeDir
,
""
);
strcpy
(
tsMnodeDir
,
""
);
...
...
src/os/src/windows/wEnv.c
浏览文件 @
ab0e3fde
...
...
@@ -22,58 +22,13 @@ extern void taosWinSocketInit();
void
osInit
()
{
taosSetCoreDump
();
#ifdef _TD_POWER_
if
(
configDir
[
0
]
==
0
)
{
strcpy
(
configDir
,
"C:/PowerDB/cfg"
);
}
strcpy
(
tsVnodeDir
,
"C:/PowerDB/data"
);
strcpy
(
tsDataDir
,
"C:/PowerDB/data"
);
strcpy
(
tsLogDir
,
"C:/PowerDB/log"
);
strcpy
(
tsScriptDir
,
"C:/PowerDB/script"
);
#elif (_TD_TQ_ == true)
if
(
configDir
[
0
]
==
0
)
{
strcpy
(
configDir
,
"C:/TQueue/cfg"
);
}
strcpy
(
tsVnodeDir
,
"C:/TQueue/data"
);
strcpy
(
tsDataDir
,
"C:/TQueue/data"
);
strcpy
(
tsLogDir
,
"C:/TQueue/log"
);
strcpy
(
tsScriptDir
,
"C:/TQueue/script"
);
#elif (_TD_PRO_ == true)
if
(
configDir
[
0
]
==
0
)
{
strcpy
(
configDir
,
"C:/ProDB/cfg"
);
}
strcpy
(
tsVnodeDir
,
"C:/ProDB/data"
);
strcpy
(
tsDataDir
,
"C:/ProDB/data"
);
strcpy
(
tsLogDir
,
"C:/ProDB/log"
);
strcpy
(
tsScriptDir
,
"C:/ProDB/script"
);
#elif (_TD_KH_ == true)
if
(
configDir
[
0
]
==
0
)
{
strcpy
(
configDir
,
"C:/KingHistorian/cfg"
);
}
strcpy
(
tsVnodeDir
,
"C:/KingHistorian/data"
);
strcpy
(
tsDataDir
,
"C:/KingHistorian/data"
);
strcpy
(
tsLogDir
,
"C:/KingHistorian/log"
);
strcpy
(
tsScriptDir
,
"C:/KingHistorian/script"
);
#elif (_TD_JH_ == true)
if
(
configDir
[
0
]
==
0
)
{
strcpy
(
configDir
,
"C:/jh_iot/cfg"
);
}
strcpy
(
tsVnodeDir
,
"C:/jh_iot/data"
);
strcpy
(
tsDataDir
,
"C:/jh_iot/data"
);
strcpy
(
tsLogDir
,
"C:/jh_iot/log"
);
strcpy
(
tsScriptDir
,
"C:/jh_iot/script"
);
#else
if
(
configDir
[
0
]
==
0
)
{
strcpy
(
configDir
,
"C:/TDengine/cfg"
);
}
strcpy
(
tsVnodeDir
,
"C:/TDengine/data"
);
strcpy
(
tsDataDir
,
"C:/TDengine/data"
);
strcpy
(
tsLogDir
,
"C:/TDengine/log"
);
strcpy
(
tsScriptDir
,
"C:/TDengine/script"
);
#endif
strcpy
(
tsDnodeDir
,
""
);
strcpy
(
tsMnodeDir
,
""
);
strcpy
(
tsOsName
,
"Windows"
);
...
...
src/util/src/tconfig.c
浏览文件 @
ab0e3fde
...
...
@@ -374,25 +374,8 @@ void taosReadGlobalLogCfg() {
}
strcpy
(
configDir
,
full_path
.
we_wordv
[
0
]);
}
else
{
#ifdef _TD_POWER_
printf
(
"configDir:%s not there, use default value: /etc/power"
,
configDir
);
strcpy
(
configDir
,
"/etc/power"
);
#elif (_TD_TQ_ == true)
printf
(
"configDir:%s not there, use default value: /etc/tq"
,
configDir
);
strcpy
(
configDir
,
"/etc/tq"
);
#elif (_TD_PRO_ == true)
printf
(
"configDir:%s not there, use default value: /etc/ProDB"
,
configDir
);
strcpy
(
configDir
,
"/etc/ProDB"
);
#elif (_TD_KH_ == true)
printf
(
"configDir:%s not there, use default value: /etc/kinghistorian"
,
configDir
);
strcpy
(
configDir
,
"/etc/kinghistorian"
);
#elif (_TD_JH_ == true)
printf
(
"configDir:%s not there, use default value: /etc/jh_taos"
,
configDir
);
strcpy
(
configDir
,
"/etc/jh_taos"
);
#else
printf
(
"configDir:%s not there, use default value: /etc/taos"
,
configDir
);
strcpy
(
configDir
,
"/etc/taos"
);
#endif
}
wordfree
(
&
full_path
);
...
...
src/util/src/tlog.c
浏览文件 @
ab0e3fde
...
...
@@ -80,20 +80,7 @@ int64_t dbgWN = 0;
int64_t
dbgSmallWN
=
0
;
int64_t
dbgBigWN
=
0
;
int64_t
dbgWSize
=
0
;
#ifdef _TD_POWER_
char
tsLogDir
[
TSDB_FILENAME_LEN
]
=
"/var/log/power"
;
#elif (_TD_TQ_ == true)
char
tsLogDir
[
TSDB_FILENAME_LEN
]
=
"/var/log/tq"
;
#elif (_TD_PRO_ == true)
char
tsLogDir
[
TSDB_FILENAME_LEN
]
=
"/var/log/ProDB"
;
#elif (_TD_KH_ == true)
char
tsLogDir
[
TSDB_FILENAME_LEN
]
=
"/var/log/kinghistorian"
;
#elif (_TD_JH_ == true)
char
tsLogDir
[
TSDB_FILENAME_LEN
]
=
"/var/log/jh_taos"
;
#else
char
tsLogDir
[
PATH_MAX
]
=
"/var/log/taos"
;
#endif
static
SLogObj
tsLogObj
=
{
.
fileNum
=
1
};
static
void
*
taosAsyncOutputLog
(
void
*
param
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录