Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
a17d9811
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看板
提交
a17d9811
编写于
11月 27, 2021
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename some defs
上级
ad361ee1
变更
21
隐藏空白更改
内联
并排
Showing
21 changed file
with
159 addition
and
57 deletion
+159
-57
include/dnode/mnode/mnode.h
include/dnode/mnode/mnode.h
+3
-3
source/dnode/mnode/impl/inc/mndAcct.h
source/dnode/mnode/impl/inc/mndAcct.h
+3
-3
source/dnode/mnode/impl/inc/mndAuth.h
source/dnode/mnode/impl/inc/mndAuth.h
+3
-3
source/dnode/mnode/impl/inc/mndBalance.h
source/dnode/mnode/impl/inc/mndBalance.h
+3
-3
source/dnode/mnode/impl/inc/mndCluster.h
source/dnode/mnode/impl/inc/mndCluster.h
+3
-3
source/dnode/mnode/impl/inc/mndDb.h
source/dnode/mnode/impl/inc/mndDb.h
+3
-3
source/dnode/mnode/impl/inc/mndDef.h
source/dnode/mnode/impl/inc/mndDef.h
+3
-3
source/dnode/mnode/impl/inc/mndDnode.h
source/dnode/mnode/impl/inc/mndDnode.h
+3
-3
source/dnode/mnode/impl/inc/mndFunc.h
source/dnode/mnode/impl/inc/mndFunc.h
+3
-3
source/dnode/mnode/impl/inc/mndInt.h
source/dnode/mnode/impl/inc/mndInt.h
+3
-3
source/dnode/mnode/impl/inc/mndMnode.h
source/dnode/mnode/impl/inc/mndMnode.h
+3
-3
source/dnode/mnode/impl/inc/mndOper.h
source/dnode/mnode/impl/inc/mndOper.h
+3
-3
source/dnode/mnode/impl/inc/mndProfile.h
source/dnode/mnode/impl/inc/mndProfile.h
+3
-3
source/dnode/mnode/impl/inc/mndShow.h
source/dnode/mnode/impl/inc/mndShow.h
+3
-3
source/dnode/mnode/impl/inc/mndStable.h
source/dnode/mnode/impl/inc/mndStable.h
+3
-3
source/dnode/mnode/impl/inc/mndSync.h
source/dnode/mnode/impl/inc/mndSync.h
+3
-3
source/dnode/mnode/impl/inc/mndTelem.h
source/dnode/mnode/impl/inc/mndTelem.h
+3
-3
source/dnode/mnode/impl/inc/mndUser.h
source/dnode/mnode/impl/inc/mndUser.h
+3
-3
source/dnode/mnode/impl/inc/mndVgroup.h
source/dnode/mnode/impl/inc/mndVgroup.h
+3
-3
source/dnode/mnode/impl/inc/mnodeInt.h
source/dnode/mnode/impl/inc/mnodeInt.h
+70
-0
source/dnode/mnode/impl/inc/mnodeUser.h
source/dnode/mnode/impl/inc/mnodeUser.h
+32
-0
未找到文件。
include/dnode/mnode/mnode.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_H_
#define _TD_MN
ODE
_H_
#ifndef _TD_MN
D
_H_
#define _TD_MN
D
_H_
#ifdef __cplusplus
extern
"C"
{
...
...
@@ -170,4 +170,4 @@ void mnodeProcessApplyMsg(SMnodeMsg *pMsg);
}
#endif
#endif
/*_TD_MN
ODE
_H_*/
#endif
/*_TD_MN
D
_H_*/
source/dnode/mnode/impl/inc/mndAcct.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_ACCT_H_
#define _TD_MN
ODE
_ACCT_H_
#ifndef _TD_MN
D
_ACCT_H_
#define _TD_MN
D
_ACCT_H_
#include "mndInt.h"
...
...
@@ -29,4 +29,4 @@ void mnodeCleanupAcct();
}
#endif
#endif
/*_TD_MN
ODE
_ACCT_H_*/
#endif
/*_TD_MN
D
_ACCT_H_*/
source/dnode/mnode/impl/inc/mndAuth.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_AUTH_H_
#define _TD_MN
ODE
_AUTH_H_
#ifndef _TD_MN
D
_AUTH_H_
#define _TD_MN
D
_AUTH_H_
#include "mndInt.h"
...
...
@@ -29,4 +29,4 @@ void mnodeCleanupAuth();
}
#endif
#endif
/*_TD_MN
ODE
_AUTH_H_*/
#endif
/*_TD_MN
D
_AUTH_H_*/
source/dnode/mnode/impl/inc/mndBalance.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_BALANCE_H_
#define _TD_MN
ODE
_BALANCE_H_
#ifndef _TD_MN
D
_BALANCE_H_
#define _TD_MN
D
_BALANCE_H_
#include "mndInt.h"
...
...
@@ -29,4 +29,4 @@ void mnodeCleanupBalance();
}
#endif
#endif
/*_TD_MN
ODE
_BALANCE_H_*/
#endif
/*_TD_MN
D
_BALANCE_H_*/
source/dnode/mnode/impl/inc/mndCluster.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_CLUSTER_H_
#define _TD_MN
ODE
_CLUSTER_H_
#ifndef _TD_MN
D
_CLUSTER_H_
#define _TD_MN
D
_CLUSTER_H_
#include "mndInt.h"
...
...
@@ -29,4 +29,4 @@ void mnodeCleanupCluster();
}
#endif
#endif
/*_TD_MN
ODE
_CLUSTER_H_*/
#endif
/*_TD_MN
D
_CLUSTER_H_*/
source/dnode/mnode/impl/inc/mndDb.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_DATABASE_H_
#define _TD_MN
ODE
_DATABASE_H_
#ifndef _TD_MN
D
_DATABASE_H_
#define _TD_MN
D
_DATABASE_H_
#include "mndInt.h"
...
...
@@ -29,4 +29,4 @@ void mnodeCleanupDb();
}
#endif
#endif
/*_TD_MN
ODE
_DATABASE_H_*/
#endif
/*_TD_MN
D
_DATABASE_H_*/
source/dnode/mnode/impl/inc/mndDef.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_DEF_H_
#define _TD_MN
ODE
_DEF_H_
#ifndef _TD_MN
D
_DEF_H_
#define _TD_MN
D
_DEF_H_
#include "os.h"
#include "taosmsg.h"
...
...
@@ -305,4 +305,4 @@ typedef struct SMnodeMsg {
}
#endif
#endif
/*_TD_MN
ODE
_DEF_H_*/
#endif
/*_TD_MN
D
_DEF_H_*/
source/dnode/mnode/impl/inc/mndDnode.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_DNODE_H_
#define _TD_MN
ODE
_DNODE_H_
#ifndef _TD_MN
D
_DNODE_H_
#define _TD_MN
D
_DNODE_H_
#include "mndInt.h"
...
...
@@ -29,4 +29,4 @@ void mnodeCleanupDnode();
}
#endif
#endif
/*_TD_MN
ODE
_DNODE_H_*/
#endif
/*_TD_MN
D
_DNODE_H_*/
source/dnode/mnode/impl/inc/mndFunc.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_FUNC_H_
#define _TD_MN
ODE
_FUNC_H_
#ifndef _TD_MN
D
_FUNC_H_
#define _TD_MN
D
_FUNC_H_
#include "mndInt.h"
...
...
@@ -29,4 +29,4 @@ void mnodeCleanupFunc();
}
#endif
#endif
/*_TD_MN
ODE
_FUNC_H_*/
#endif
/*_TD_MN
D
_FUNC_H_*/
source/dnode/mnode/impl/inc/mndInt.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_INT_H_
#define _TD_MN
ODE
_INT_H_
#ifndef _TD_MN
D
_INT_H_
#define _TD_MN
D
_INT_H_
#include "mndDef.h"
#include "sdb.h"
...
...
@@ -67,4 +67,4 @@ void mnodeSetMsgHandle(SMnode *pMnode, int32_t msgType, MndMsgFp fp);
}
#endif
#endif
/*_TD_MN
ODE
_INT_H_*/
#endif
/*_TD_MN
D
_INT_H_*/
source/dnode/mnode/impl/inc/mndMnode.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_MNODE_H_
#define _TD_MN
ODE
_MNODE_H_
#ifndef _TD_MN
D
_MNODE_H_
#define _TD_MN
D
_MNODE_H_
#include "mndInt.h"
...
...
@@ -31,4 +31,4 @@ void mnodeGetMnodeEpSetForShell(SEpSet *epSet, bool redirect);
}
#endif
#endif
/*_TD_MN
ODE
_MNODE_H_*/
#endif
/*_TD_MN
D
_MNODE_H_*/
source/dnode/mnode/impl/inc/mndOper.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_OPER_H_
#define _TD_MN
ODE
_OPER_H_
#ifndef _TD_MN
D
_OPER_H_
#define _TD_MN
D
_OPER_H_
#ifdef __cplusplus
extern
"C"
{
...
...
@@ -27,4 +27,4 @@ void mnodeCleanupOper();
}
#endif
#endif
/*_TD_MN
ODE
_OPER_H_*/
#endif
/*_TD_MN
D
_OPER_H_*/
source/dnode/mnode/impl/inc/mndProfile.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_PROFILE_H_
#define _TD_MN
ODE
_PROFILE_H_
#ifndef _TD_MN
D
_PROFILE_H_
#define _TD_MN
D
_PROFILE_H_
#include "mndInt.h"
...
...
@@ -29,4 +29,4 @@ void mnodeCleanupProfile();
}
#endif
#endif
/*_TD_MN
ODE
_PROFILE_H_*/
#endif
/*_TD_MN
D
_PROFILE_H_*/
source/dnode/mnode/impl/inc/mndShow.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_SHOW_H_
#define _TD_MN
ODE
_SHOW_H_
#ifndef _TD_MN
D
_SHOW_H_
#define _TD_MN
D
_SHOW_H_
#include "mndInt.h"
...
...
@@ -29,4 +29,4 @@ void mnodeCleanUpShow();
}
#endif
#endif
/*_TD_MN
ODE
_SHOW_H_*/
#endif
/*_TD_MN
D
_SHOW_H_*/
source/dnode/mnode/impl/inc/mndStable.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_STABLE_H_
#define _TD_MN
ODE
_STABLE_H_
#ifndef _TD_MN
D
_STABLE_H_
#define _TD_MN
D
_STABLE_H_
#include "mndInt.h"
...
...
@@ -29,4 +29,4 @@ void mnodeCleanupStable();
}
#endif
#endif
/*_TD_MN
ODE
_STABLE_H_*/
#endif
/*_TD_MN
D
_STABLE_H_*/
source/dnode/mnode/impl/inc/mndSync.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_SYNC_H_
#define _TD_MN
ODE
_SYNC_H_
#ifndef _TD_MN
D
_SYNC_H_
#define _TD_MN
D
_SYNC_H_
#include "mndInt.h"
...
...
@@ -32,4 +32,4 @@ bool mnodeIsMaster();
}
#endif
#endif
/*_TD_MN
ODE
_SYNC_H_*/
#endif
/*_TD_MN
D
_SYNC_H_*/
source/dnode/mnode/impl/inc/mndTelem.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_TELEMETRY_H_
#define _TD_MN
ODE
_TELEMETRY_H_
#ifndef _TD_MN
D
_TELEMETRY_H_
#define _TD_MN
D
_TELEMETRY_H_
#ifdef __cplusplus
extern
"C"
{
...
...
@@ -28,4 +28,4 @@ void mnodeCleanupTelem();
}
#endif
#endif
/*_TD_MN
ODE
_TELEMETRY_H_*/
#endif
/*_TD_MN
D
_TELEMETRY_H_*/
source/dnode/mnode/impl/inc/mndUser.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_USER_H_
#define _TD_MN
ODE
_USER_H_
#ifndef _TD_MN
D
_USER_H_
#define _TD_MN
D
_USER_H_
#include "mndInt.h"
...
...
@@ -29,4 +29,4 @@ void mnodeCleanupUser();
}
#endif
#endif
/*_TD_MN
ODE
_USER_H_*/
#endif
/*_TD_MN
D
_USER_H_*/
source/dnode/mnode/impl/inc/mndVgroup.h
浏览文件 @
a17d9811
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_MN
ODE
_VGROUP_H_
#define _TD_MN
ODE
_VGROUP_H_
#ifndef _TD_MN
D
_VGROUP_H_
#define _TD_MN
D
_VGROUP_H_
#include "mndInt.h"
...
...
@@ -29,4 +29,4 @@ void mnodeCleanupVgroup();
}
#endif
#endif
/*_TD_MN
ODE
_VGROUP_H_*/
#endif
/*_TD_MN
D
_VGROUP_H_*/
source/dnode/mnode/impl/inc/mnodeInt.h
0 → 100644
浏览文件 @
a17d9811
/*
* 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_MND_INT_H_
#define _TD_MND_INT_H_
#include "mndDef.h"
#include "sdb.h"
#include "tstep.h"
#ifdef __cplusplus
extern
"C"
{
#endif
typedef
int32_t
(
*
MndMsgFp
)(
SMnode
*
pMnode
,
SMnodeMsg
*
pMsg
);
typedef
struct
SMnodeBak
{
int32_t
dnodeId
;
int64_t
clusterId
;
tmr_h
timer
;
SSteps
*
pInitSteps
;
SSteps
*
pStartSteps
;
SMnodeOpt
para
;
MndMsgFp
msgFp
[
TSDB_MSG_TYPE_MAX
];
}
SMnodeBak
;
typedef
struct
SMnode
{
int32_t
dnodeId
;
int64_t
clusterId
;
int8_t
replica
;
int8_t
selfIndex
;
SReplica
replicas
[
TSDB_MAX_REPLICA
];
tmr_h
timer
;
SSteps
*
pInitSteps
;
SSteps
*
pStartSteps
;
struct
SSdb
*
pSdb
;
struct
SDnode
*
pServer
;
MndMsgFp
msgFp
[
TSDB_MSG_TYPE_MAX
];
PutMsgToMnodeQFp
putMsgToApplyMsgFp
;
SendMsgToDnodeFp
sendMsgToDnodeFp
;
SendMsgToMnodeFp
sendMsgToMnodeFp
;
SendRedirectMsgFp
sendRedirectMsgFp
;
}
SMnode
;
tmr_h
mnodeGetTimer
();
int32_t
mnodeGetDnodeId
();
int64_t
mnodeGetClusterId
();
void
mnodeSendMsgToDnode
(
SMnode
*
pMnode
,
struct
SEpSet
*
epSet
,
struct
SRpcMsg
*
rpcMsg
);
void
mnodeSendMsgToMnode
(
SMnode
*
pMnode
,
struct
SRpcMsg
*
rpcMsg
);
void
mnodeSendRedirectMsg
(
SMnode
*
pMnode
,
struct
SRpcMsg
*
rpcMsg
,
bool
forShell
);
void
mnodeSetMsgHandle
(
SMnode
*
pMnode
,
int32_t
msgType
,
MndMsgFp
fp
);
#ifdef __cplusplus
}
#endif
#endif
/*_TD_MND_INT_H_*/
source/dnode/mnode/impl/inc/mnodeUser.h
0 → 100644
浏览文件 @
a17d9811
/*
* 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_MND_USER_H_
#define _TD_MND_USER_H_
#include "mndInt.h"
#ifdef __cplusplus
extern
"C"
{
#endif
int32_t
mnodeInitUser
();
void
mnodeCleanupUser
();
#ifdef __cplusplus
}
#endif
#endif
/*_TD_MND_USER_H_*/
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录