Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
2f7cdcd9
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
2f7cdcd9
编写于
3月 16, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
shm
上级
04c4b13b
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
39 addition
and
147 deletion
+39
-147
source/dnode/mgmt/bnode/inc/bmInt.h
source/dnode/mgmt/bnode/inc/bmInt.h
+1
-1
source/dnode/mgmt/container/inc/dnd.h
source/dnode/mgmt/container/inc/dnd.h
+7
-25
source/dnode/mgmt/container/inc/dndInt.h
source/dnode/mgmt/container/inc/dndInt.h
+20
-5
source/dnode/mgmt/container/inc/dndMonitor.h
source/dnode/mgmt/container/inc/dndMonitor.h
+0
-31
source/dnode/mgmt/container/inc/dndTransport.h
source/dnode/mgmt/container/inc/dndTransport.h
+0
-38
source/dnode/mgmt/container/inc/dndWorker.h
source/dnode/mgmt/container/inc/dndWorker.h
+0
-34
source/dnode/mgmt/container/src/dndMonitor.c
source/dnode/mgmt/container/src/dndMonitor.c
+2
-1
source/dnode/mgmt/container/src/dndNode.c
source/dnode/mgmt/container/src/dndNode.c
+1
-2
source/dnode/mgmt/container/src/dndTransport.c
source/dnode/mgmt/container/src/dndTransport.c
+2
-2
source/dnode/mgmt/container/src/dndWorker.c
source/dnode/mgmt/container/src/dndWorker.c
+1
-1
source/dnode/mgmt/dnode/inc/dm.h
source/dnode/mgmt/dnode/inc/dm.h
+1
-1
source/dnode/mgmt/mnode/inc/mmInt.h
source/dnode/mgmt/mnode/inc/mmInt.h
+1
-1
source/dnode/mgmt/mnode/src/mmWorker.c
source/dnode/mgmt/mnode/src/mmWorker.c
+0
-2
source/dnode/mgmt/qnode/inc/qmInt.h
source/dnode/mgmt/qnode/inc/qmInt.h
+1
-1
source/dnode/mgmt/snode/inc/smInt.h
source/dnode/mgmt/snode/inc/smInt.h
+1
-1
source/dnode/mgmt/vnode/inc/vmInt.h
source/dnode/mgmt/vnode/inc/vmInt.h
+1
-1
未找到文件。
source/dnode/mgmt/bnode/inc/bmInt.h
浏览文件 @
2f7cdcd9
...
...
@@ -16,7 +16,7 @@
#ifndef _TD_DND_BNODE_INT_H_
#define _TD_DND_BNODE_INT_H_
#include "dnd
Int
.h"
#include "dnd.h"
#ifdef __cplusplus
extern
"C"
{
...
...
source/dnode/mgmt/container/inc/dnd.h
浏览文件 @
2f7cdcd9
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_DND_
INT_
H_
#define _TD_DND_
INT_
H_
#ifndef _TD_DND_H_
#define _TD_DND_H_
#include "os.h"
...
...
@@ -142,35 +142,17 @@ typedef struct SDnode {
SMgmtWrapper
wrappers
[
NODE_MAX
];
}
SDnode
;
// dndInt.h
int32_t
dndInit
();
void
dndCleanup
();
EDndStatus
dndGetStatus
(
SDnode
*
pDnode
);
void
dndSetStatus
(
SDnode
*
pDnode
,
EDndStatus
stat
);
const
char
*
dndStatStr
(
EDndStatus
stat
);
void
dndReportStartup
(
SDnode
*
pDnode
,
char
*
pName
,
char
*
pDesc
);
void
dndGetStartup
(
SDnode
*
pDnode
,
SStartupReq
*
pStartup
);
TdFilePtr
dndCheckRunning
(
char
*
dataDir
);
SMgmtWrapper
*
dndGetWrapper
(
SDnode
*
pDnode
,
ENodeType
nodeType
);
void
dndSetMsgHandle
(
SMgmtWrapper
*
pWrapper
,
int32_t
msgType
,
NodeMsgFp
nodeMsgFp
);
void
dndProcessStartupReq
(
SDnode
*
pDnode
,
SRpcMsg
*
pMsg
);
// dndMonitor.h
void
dndSendMonitorReport
(
SDnode
*
pDnode
);
void
dndReportStartup
(
SDnode
*
pDnode
,
char
*
pName
,
char
*
pDesc
);
// dndNode.h
SDnode
*
dndCreate
(
const
SDnodeOpt
*
pOption
);
void
dndClose
(
SDnode
*
pDnode
);
int32_t
dndRun
(
SDnode
*
pDnode
);
void
dndHandleEvent
(
SDnode
*
pDnode
,
EDndEvent
event
);
void
dndSendMonitorReport
(
SDnode
*
pDnode
);
int32_t
dndSendReqToMnode
(
void
*
wrapper
,
SRpcMsg
*
pMsg
);
int32_t
dndSendReqToDnode
(
void
*
wrapper
,
SEpSet
*
pEpSet
,
SRpcMsg
*
pMsg
);
void
dndSendRsp
(
SMgmtWrapper
*
pWrapper
,
SRpcMsg
*
pRsp
);
void
dndSendRedirectRsp
(
SMgmtWrapper
*
pWrapper
,
SRpcMsg
*
pRsp
);
// dndTransport.h
int32_t
dndSendReqToMnode
(
void
*
pWrapper
,
SRpcMsg
*
pMsg
);
int32_t
dndSendReqToDnode
(
void
*
pWrapper
,
SEpSet
*
pEpSet
,
SRpcMsg
*
pMsg
);
// dndWorker.h
int32_t
dndInitWorker
(
void
*
param
,
SDnodeWorker
*
pWorker
,
EWorkerType
type
,
const
char
*
name
,
int32_t
minNum
,
int32_t
maxNum
,
void
*
queueFp
);
void
dndCleanupWorker
(
SDnodeWorker
*
pWorker
);
...
...
@@ -180,4 +162,4 @@ int32_t dndWriteMsgToWorker(SDnodeWorker *pWorker, void *pCont, int32_t contLen)
}
#endif
#endif
/*_TD_DND_INT_H_*/
\ No newline at end of file
#endif
/*_TD_DND_H_*/
\ No newline at end of file
source/dnode/mgmt/container/inc/dnd
Node
.h
→
source/dnode/mgmt/container/inc/dnd
Int
.h
浏览文件 @
2f7cdcd9
...
...
@@ -13,24 +13,39 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_DND_
MAIN
_H_
#define _TD_DND_
MAIN
_H_
#ifndef _TD_DND_
INT
_H_
#define _TD_DND_
INT
_H_
#include "dnd
Int
.h"
#include "dnd.h"
#ifdef __cplusplus
extern
"C"
{
#endif
// dndInt.h
int32_t
dndInit
();
void
dndCleanup
();
const
char
*
dndStatStr
(
EDndStatus
stat
);
void
dndGetStartup
(
SDnode
*
pDnode
,
SStartupReq
*
pStartup
);
TdFilePtr
dndCheckRunning
(
char
*
dataDir
);
void
dndProcessStartupReq
(
SDnode
*
pDnode
,
SRpcMsg
*
pMsg
);
// dndNode.h
SDnode
*
dndCreate
(
const
SDnodeOpt
*
pOption
);
void
dndClose
(
SDnode
*
pDnode
);
int32_t
dndRun
(
SDnode
*
pDnode
);
void
dndHandleEvent
(
SDnode
*
pDnode
,
EDndEvent
event
);
void
dndProcessRpcMsg
(
SMgmtWrapper
*
pWrapper
,
SRpcMsg
*
pMsg
,
SEpSet
*
pEpSet
);
void
dndSendRsp
(
SMgmtWrapper
*
pWrapper
,
SRpcMsg
*
pRsp
);
// dndTransport.h
int32_t
dndInitServer
(
SDnode
*
pDnode
);
void
dndCleanupServer
(
SDnode
*
pDnode
);
int32_t
dndInitClient
(
SDnode
*
pDnode
);
void
dndCleanupClient
(
SDnode
*
pDnode
);
int32_t
dndInitMsgHandle
(
SDnode
*
pDnode
);
#ifdef __cplusplus
}
#endif
#endif
/*_TD_DND_MAIN_H_*/
\ No newline at end of file
#endif
/*_TD_DND_INT_H_*/
\ No newline at end of file
source/dnode/mgmt/container/inc/dndMonitor.h
已删除
100644 → 0
浏览文件 @
04c4b13b
/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* This program is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_DND_MONITOR_H_
#define _TD_DND_MONITOR_H_
#include "dndInt.h"
#ifdef __cplusplus
extern
"C"
{
#endif
void
dndSendMonitorReport
(
SDnode
*
pDnode
);
#ifdef __cplusplus
}
#endif
#endif
/*_TD_DND_MONITOR_H_*/
\ No newline at end of file
source/dnode/mgmt/container/inc/dndTransport.h
已删除
100644 → 0
浏览文件 @
04c4b13b
/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* This program is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_DND_TRANSPORT_H_
#define _TD_DND_TRANSPORT_H_
#include "dndInt.h"
#ifdef __cplusplus
extern
"C"
{
#endif
int32_t
dndInitServer
(
SDnode
*
pDnode
);
void
dndCleanupServer
(
SDnode
*
pDnode
);
int32_t
dndInitClient
(
SDnode
*
pDnode
);
void
dndCleanupClient
(
SDnode
*
pDnode
);
int32_t
dndInitMsgHandle
(
SDnode
*
pDnode
);
int32_t
dndSendReqToMnode
(
void
*
wrapper
,
SRpcMsg
*
pMsg
);
int32_t
dndSendReqToDnode
(
void
*
wrapper
,
SEpSet
*
pEpSet
,
SRpcMsg
*
pMsg
);
#ifdef __cplusplus
}
#endif
#endif
/*_TD_DND_TRANSPORT_H_*/
source/dnode/mgmt/container/inc/dndWorker.h
已删除
100644 → 0
浏览文件 @
04c4b13b
/*
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
*
* This program is free software: you can use, redistribute, and/or modify
* it under the terms of the GNU Affero General Public License, version 3
* or later ("AGPL"), as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_DND_WORKER_H_
#define _TD_DND_WORKER_H_
#include "dndInt.h"
#ifdef __cplusplus
extern
"C"
{
#endif
int32_t
dndInitWorker
(
void
*
param
,
SDnodeWorker
*
pWorker
,
EWorkerType
type
,
const
char
*
name
,
int32_t
minNum
,
int32_t
maxNum
,
void
*
queueFp
);
void
dndCleanupWorker
(
SDnodeWorker
*
pWorker
);
int32_t
dndWriteMsgToWorker
(
SDnodeWorker
*
pWorker
,
void
*
pCont
,
int32_t
contLen
);
#ifdef __cplusplus
}
#endif
#endif
/*_TD_DND_WORKER_H_*/
\ No newline at end of file
source/dnode/mgmt/container/src/dndMonitor.c
浏览文件 @
2f7cdcd9
...
...
@@ -14,7 +14,8 @@
*/
#define _DEFAULT_SOURCE
#include "dndMonitor.h"
#include "dndInt.h"
#include "dmInt.h"
#include "mmInt.h"
#include "vmInt.h"
...
...
source/dnode/mgmt/container/src/dndNode.c
浏览文件 @
2f7cdcd9
...
...
@@ -14,8 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dndNode.h"
#include "dndTransport.h"
#include "dndInt.h"
#include "bmInt.h"
#include "dmInt.h"
...
...
source/dnode/mgmt/container/src/dndTransport.c
浏览文件 @
2f7cdcd9
...
...
@@ -14,8 +14,8 @@
*/
#define _DEFAULT_SOURCE
#include "dnd
Transpor
t.h"
#include "dndNode.h"
#include "dnd
In
t.h"
#include "dmInt.h"
#include "mmInt.h"
...
...
source/dnode/mgmt/container/src/dndWorker.c
浏览文件 @
2f7cdcd9
...
...
@@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "dnd
Worker
.h"
#include "dnd
Int
.h"
int32_t
dndInitWorker
(
void
*
param
,
SDnodeWorker
*
pWorker
,
EWorkerType
type
,
const
char
*
name
,
int32_t
minNum
,
int32_t
maxNum
,
void
*
queueFp
)
{
...
...
source/dnode/mgmt/dnode/inc/dm.h
浏览文件 @
2f7cdcd9
...
...
@@ -16,7 +16,7 @@
#ifndef _TD_DND_DNODE_H_
#define _TD_DND_DNODE_H_
#include "dnd
Int
.h"
#include "dnd.h"
#ifdef __cplusplus
extern
"C"
{
...
...
source/dnode/mgmt/mnode/inc/mmInt.h
浏览文件 @
2f7cdcd9
...
...
@@ -16,7 +16,7 @@
#ifndef _TD_DND_MNODE_INT_H_
#define _TD_DND_MNODE_INT_H_
#include "dnd
Int
.h"
#include "dnd.h"
#ifdef __cplusplus
extern
"C"
{
...
...
source/dnode/mgmt/mnode/src/mmWorker.c
浏览文件 @
2f7cdcd9
...
...
@@ -17,8 +17,6 @@
#include "mmInt.h"
#include "dmInt.h"
#include "dndTransport.h"
#include "dndWorker.h"
static
void
mmProcessQueue
(
SMnodeMgmt
*
pMgmt
,
SNodeMsg
*
pMsg
)
{
dTrace
(
"msg:%p, will be processed"
,
pMsg
);
...
...
source/dnode/mgmt/qnode/inc/qmInt.h
浏览文件 @
2f7cdcd9
...
...
@@ -16,7 +16,7 @@
#ifndef _TD_DND_QNODE_INT_H_
#define _TD_DND_QNODE_INT_H_
#include "dnd
Int
.h"
#include "dnd.h"
#ifdef __cplusplus
extern
"C"
{
...
...
source/dnode/mgmt/snode/inc/smInt.h
浏览文件 @
2f7cdcd9
...
...
@@ -16,7 +16,7 @@
#ifndef _TD_DND_SNODE_INT_H_
#define _TD_DND_SNODE_INT_H_
#include "dnd
Int
.h"
#include "dnd.h"
#ifdef __cplusplus
extern
"C"
{
...
...
source/dnode/mgmt/vnode/inc/vmInt.h
浏览文件 @
2f7cdcd9
...
...
@@ -16,7 +16,7 @@
#ifndef _TD_DND_VNODES_INT_H_
#define _TD_DND_VNODES_INT_H_
#include "dnd
Int
.h"
#include "dnd.h"
#ifdef __cplusplus
extern
"C"
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录