Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
e278a4f4
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看板
提交
e278a4f4
编写于
5月 11, 2022
作者:
S
Shengliang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: node mgmt
上级
ffe27bc1
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
42 addition
and
14 deletion
+42
-14
source/dnode/mgmt/CMakeLists.txt
source/dnode/mgmt/CMakeLists.txt
+1
-1
source/dnode/mgmt/mgmt_bnode/CMakeLists.txt
source/dnode/mgmt/mgmt_bnode/CMakeLists.txt
+1
-1
source/dnode/mgmt/mgmt_bnode/inc/bmInt.h
source/dnode/mgmt/mgmt_bnode/inc/bmInt.h
+1
-1
source/dnode/mgmt/mgmt_mnode/CMakeLists.txt
source/dnode/mgmt/mgmt_mnode/CMakeLists.txt
+1
-1
source/dnode/mgmt/mgmt_mnode/inc/mmInt.h
source/dnode/mgmt/mgmt_mnode/inc/mmInt.h
+1
-1
source/dnode/mgmt/mgmt_qnode/CMakeLists.txt
source/dnode/mgmt/mgmt_qnode/CMakeLists.txt
+1
-1
source/dnode/mgmt/mgmt_qnode/inc/qmInt.h
source/dnode/mgmt/mgmt_qnode/inc/qmInt.h
+1
-1
source/dnode/mgmt/mgmt_snode/CMakeLists.txt
source/dnode/mgmt/mgmt_snode/CMakeLists.txt
+1
-1
source/dnode/mgmt/mgmt_snode/inc/smInt.h
source/dnode/mgmt/mgmt_snode/inc/smInt.h
+1
-1
source/dnode/mgmt/mgmt_vnode/CMakeLists.txt
source/dnode/mgmt/mgmt_vnode/CMakeLists.txt
+1
-1
source/dnode/mgmt/mgmt_vnode/inc/vmInt.h
source/dnode/mgmt/mgmt_vnode/inc/vmInt.h
+1
-1
source/dnode/mgmt/node_util/CMakeLists.txt
source/dnode/mgmt/node_util/CMakeLists.txt
+10
-0
source/dnode/mgmt/node_util/inc/dmUtil.h
source/dnode/mgmt/node_util/inc/dmUtil.h
+1
-0
source/dnode/mgmt/node_util/src/dmEnv.c
source/dnode/mgmt/node_util/src/dmEnv.c
+1
-1
source/dnode/mgmt/node_util/src/dmFile.c
source/dnode/mgmt/node_util/src/dmFile.c
+1
-1
source/dnode/mgmt/node_util/src/dmUtil.c
source/dnode/mgmt/node_util/src/dmUtil.c
+18
-1
未找到文件。
source/dnode/mgmt/CMakeLists.txt
浏览文件 @
e278a4f4
add_subdirectory
(
node_mgmt
)
add_subdirectory
(
node_
common
)
add_subdirectory
(
node_
util
)
add_subdirectory
(
mgmt_bnode
)
add_subdirectory
(
mgmt_mnode
)
add_subdirectory
(
mgmt_qnode
)
...
...
source/dnode/mgmt/mgmt_bnode/CMakeLists.txt
浏览文件 @
e278a4f4
...
...
@@ -5,5 +5,5 @@ target_include_directories(
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
target_link_libraries
(
mgmt_bnode node_
common
mgmt_bnode node_
util
)
\ No newline at end of file
source/dnode/mgmt/mgmt_bnode/inc/bmInt.h
浏览文件 @
e278a4f4
...
...
@@ -16,7 +16,7 @@
#ifndef _TD_DND_BNODE_INT_H_
#define _TD_DND_BNODE_INT_H_
#include "dm
Int
.h"
#include "dm
Util
.h"
#include "bnode.h"
...
...
source/dnode/mgmt/mgmt_mnode/CMakeLists.txt
浏览文件 @
e278a4f4
...
...
@@ -5,5 +5,5 @@ target_include_directories(
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
target_link_libraries
(
mgmt_mnode node_
common
mgmt_mnode node_
util
)
\ No newline at end of file
source/dnode/mgmt/mgmt_mnode/inc/mmInt.h
浏览文件 @
e278a4f4
...
...
@@ -16,7 +16,7 @@
#ifndef _TD_DND_MNODE_INT_H_
#define _TD_DND_MNODE_INT_H_
#include "dm
Int
.h"
#include "dm
Util
.h"
#include "mnode.h"
#ifdef __cplusplus
...
...
source/dnode/mgmt/mgmt_qnode/CMakeLists.txt
浏览文件 @
e278a4f4
...
...
@@ -5,5 +5,5 @@ target_include_directories(
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
target_link_libraries
(
mgmt_qnode node_
common
mgmt_qnode node_
util
)
\ No newline at end of file
source/dnode/mgmt/mgmt_qnode/inc/qmInt.h
浏览文件 @
e278a4f4
...
...
@@ -16,7 +16,7 @@
#ifndef _TD_DND_QNODE_INT_H_
#define _TD_DND_QNODE_INT_H_
#include "dm
Int
.h"
#include "dm
Util
.h"
#include "qnode.h"
...
...
source/dnode/mgmt/mgmt_snode/CMakeLists.txt
浏览文件 @
e278a4f4
...
...
@@ -5,5 +5,5 @@ target_include_directories(
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
target_link_libraries
(
mgmt_snode node_
common
mgmt_snode node_
util
)
\ No newline at end of file
source/dnode/mgmt/mgmt_snode/inc/smInt.h
浏览文件 @
e278a4f4
...
...
@@ -16,7 +16,7 @@
#ifndef _TD_DND_SNODE_INT_H_
#define _TD_DND_SNODE_INT_H_
#include "dm
Int
.h"
#include "dm
Util
.h"
#include "snode.h"
...
...
source/dnode/mgmt/mgmt_vnode/CMakeLists.txt
浏览文件 @
e278a4f4
...
...
@@ -5,5 +5,5 @@ target_include_directories(
PRIVATE
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
target_link_libraries
(
mgmt_vnode node_
common
mgmt_vnode node_
util
)
\ No newline at end of file
source/dnode/mgmt/mgmt_vnode/inc/vmInt.h
浏览文件 @
e278a4f4
...
...
@@ -16,7 +16,7 @@
#ifndef _TD_DND_VNODES_INT_H_
#define _TD_DND_VNODES_INT_H_
#include "dm
Int
.h"
#include "dm
Util
.h"
#include "sync.h"
#include "vnode.h"
...
...
source/dnode/mgmt/node_
common
/CMakeLists.txt
→
source/dnode/mgmt/node_
util
/CMakeLists.txt
浏览文件 @
e278a4f4
aux_source_directory
(
src
DNODE_INTERFACE
)
add_library
(
node_
common STATIC
${
DNODE_INTERFACE
}
)
aux_source_directory
(
src
NODE_UTIL
)
add_library
(
node_
util STATIC
${
NODE_UTIL
}
)
target_include_directories
(
node_
common
node_
util
PUBLIC
"
${
TD_SOURCE_DIR
}
/include/dnode/mgmt"
PUBLIC
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/inc"
)
target_link_libraries
(
node_
common
cjson mnode vnode qnode snode bnode wal sync taos_static tfs monitor
node_
util
cjson mnode vnode qnode snode bnode wal sync taos_static tfs monitor
)
\ No newline at end of file
source/dnode/mgmt/node_
common/inc/dmInt
.h
→
source/dnode/mgmt/node_
util/inc/dmUtil
.h
浏览文件 @
e278a4f4
...
...
@@ -133,6 +133,7 @@ typedef struct {
const
char
*
dmStatStr
(
EDndRunStatus
stype
);
const
char
*
dmNodeLogName
(
EDndNodeType
ntype
);
const
char
*
dmNodeProcName
(
EDndNodeType
ntype
);
const
char
*
dmNodeName
(
EDndNodeType
ntype
);
const
char
*
dmEventStr
(
EDndEvent
etype
);
const
char
*
dmProcStr
(
EDndProcType
ptype
);
void
*
dmSetMgmtHandle
(
SArray
*
pArray
,
tmsg_t
msgType
,
void
*
nodeMsgFp
,
bool
needCheckVgId
);
...
...
source/dnode/mgmt/node_
common
/src/dmEnv.c
→
source/dnode/mgmt/node_
util
/src/dmEnv.c
浏览文件 @
e278a4f4
...
...
@@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dm
Int
.h"
#include "dm
Util
.h"
static
int8_t
once
=
DND_ENV_INIT
;
...
...
source/dnode/mgmt/node_
common
/src/dmFile.c
→
source/dnode/mgmt/node_
util
/src/dmFile.c
浏览文件 @
e278a4f4
...
...
@@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dm
Int
.h"
#include "dm
Util
.h"
#define MAXLEN 1024
...
...
source/dnode/mgmt/node_
common
/src/dmUtil.c
→
source/dnode/mgmt/node_
util
/src/dmUtil.c
浏览文件 @
e278a4f4
...
...
@@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dm
Int
.h"
#include "dm
Util
.h"
const
char
*
dmStatStr
(
EDndRunStatus
stype
)
{
...
...
@@ -64,6 +64,23 @@ const char *dmNodeProcName(EDndNodeType ntype) {
}
}
const
char
*
dmNodeName
(
EDndNodeType
ntype
)
{
switch
(
ntype
)
{
case
VNODE
:
return
"vnode"
;
case
QNODE
:
return
"qnode"
;
case
SNODE
:
return
"snode"
;
case
MNODE
:
return
"mnode"
;
case
BNODE
:
return
"bnode"
;
default:
return
"dnode"
;
}
}
const
char
*
dmEventStr
(
EDndEvent
ev
)
{
switch
(
ev
)
{
case
DND_EVENT_START
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录