Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
edccd795
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看板
提交
edccd795
编写于
3月 14, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
shm
上级
352174a5
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
329 addition
and
4 deletion
+329
-4
source/dnode/mgmt/bnode/inc/bmHandle.h
source/dnode/mgmt/bnode/inc/bmHandle.h
+32
-0
source/dnode/mgmt/bnode/src/bmHandle.c
source/dnode/mgmt/bnode/src/bmHandle.c
+26
-0
source/dnode/mgmt/bnode/src/bmInt.c
source/dnode/mgmt/bnode/src/bmInt.c
+24
-0
source/dnode/mgmt/dnode/inc/dndInt.h
source/dnode/mgmt/dnode/inc/dndInt.h
+2
-0
source/dnode/mgmt/dnode/inc/dndMgmt.h
source/dnode/mgmt/dnode/inc/dndMgmt.h
+1
-1
source/dnode/mgmt/dnode/src/dndHandle.c
source/dnode/mgmt/dnode/src/dndHandle.c
+1
-0
source/dnode/mgmt/dnode/src/dndInt.c
source/dnode/mgmt/dnode/src/dndInt.c
+8
-1
source/dnode/mgmt/dnode/src/dndMain.c
source/dnode/mgmt/dnode/src/dndMain.c
+1
-0
source/dnode/mgmt/dnode/src/dndMgmt.c
source/dnode/mgmt/dnode/src/dndMgmt.c
+18
-1
source/dnode/mgmt/mnode/src/mmInt.c
source/dnode/mgmt/mnode/src/mmInt.c
+1
-0
source/dnode/mgmt/mnode/src/mmWorker.c
source/dnode/mgmt/mnode/src/mmWorker.c
+5
-1
source/dnode/mgmt/qnode/inc/qmHandle.h
source/dnode/mgmt/qnode/inc/qmHandle.h
+32
-0
source/dnode/mgmt/qnode/src/qmHandle.c
source/dnode/mgmt/qnode/src/qmHandle.c
+26
-0
source/dnode/mgmt/qnode/src/qmInt.c
source/dnode/mgmt/qnode/src/qmInt.c
+24
-0
source/dnode/mgmt/snode/inc/smHandle.h
source/dnode/mgmt/snode/inc/smHandle.h
+32
-0
source/dnode/mgmt/snode/src/smHandle.c
source/dnode/mgmt/snode/src/smHandle.c
+26
-0
source/dnode/mgmt/snode/src/smInt.c
source/dnode/mgmt/snode/src/smInt.c
+24
-0
source/dnode/mgmt/vnode/src/vmInt.c
source/dnode/mgmt/vnode/src/vmInt.c
+24
-0
source/dnode/mgmt/vnode/src/vmWorker.c
source/dnode/mgmt/vnode/src/vmWorker.c
+22
-0
未找到文件。
source/dnode/mgmt/bnode/inc/bmHandle.h
浏览文件 @
edccd795
/*
* 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_BNODE_HANDLE_H_
#define _TD_DND_BNODE_HANDLE_H_
#include "mmInt.h"
#ifdef __cplusplus
extern
"C"
{
#endif
void
bmInitMsgHandles
(
SMgmtWrapper
*
pWrapper
);
SMsgHandle
bmGetMsgHandle
(
SMgmtWrapper
*
pWrapper
,
int32_t
msgIndex
);
#ifdef __cplusplus
}
#endif
#endif
/*_TD_DND_BNODE_HANDLE_H_*/
\ No newline at end of file
source/dnode/mgmt/bnode/src/bmHandle.c
浏览文件 @
edccd795
/*
* 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/>.
*/
#define _DEFAULT_SOURCE
#include "bmHandle.h"
#include "bmWorker.h"
void
bmInitMsgHandles
(
SMgmtWrapper
*
pWrapper
)
{
}
SMsgHandle
bmGetMsgHandle
(
SMgmtWrapper
*
pWrapper
,
int32_t
msgIndex
)
{
SBnodeMgmt
*
pMgmt
=
pWrapper
->
pMgmt
;
return
pMgmt
->
msgHandles
[
msgIndex
];
}
source/dnode/mgmt/bnode/src/bmInt.c
浏览文件 @
edccd795
/*
* 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/>.
*/
#define _DEFAULT_SOURCE
#include "bmInt.h"
#include "bmHandle.h"
SMgmtFp
bmGetMgmtFp
()
{
SMgmtFp
mgmtFp
=
{
0
};
mgmtFp
.
getMsgHandleFp
=
bmGetMsgHandle
;
return
mgmtFp
;
}
source/dnode/mgmt/dnode/inc/dndInt.h
浏览文件 @
edccd795
...
...
@@ -254,6 +254,8 @@ SMgmtWrapper *dndGetWrapper(SDnode *pDnode, ENodeType nodeType) ;
void
dndProcessRpcMsg
(
SDnode
*
pDnode
,
SMgmtWrapper
*
pWrapper
,
SRpcMsg
*
pMsg
,
SEpSet
*
pEpSet
);
SMgmtFp
dndGetMgmtFp
();
#ifdef __cplusplus
}
#endif
...
...
source/dnode/mgmt/dnode/inc/dndMgmt.h
浏览文件 @
edccd795
...
...
@@ -33,9 +33,9 @@ void dndGetMnodeEpSet(SDnode *pDnode, SEpSet *pEpSet);
void
dndSendRedirectRsp
(
SDnode
*
pDnode
,
SRpcMsg
*
pMsg
);
void
dndSendStatusReq
(
SDnode
*
pDnode
);
void
dndProcessMgmtMsg
(
SDnode
*
pDnode
,
SRpcMsg
*
pRpcMsg
,
SEpSet
*
pEpSet
);
void
dndProcessStartupReq
(
SDnode
*
pDnode
,
SRpcMsg
*
pMsg
);
void
dndProcessMgmtMsg
(
SDnode
*
pDnode
,
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
)
;
#ifdef __cplusplus
}
#endif
...
...
source/dnode/mgmt/dnode/src/dndHandle.c
浏览文件 @
edccd795
...
...
@@ -16,6 +16,7 @@
#define _DEFAULT_SOURCE
#include "dndHandle.h"
#include "dndWorker.h"
#include "dndMgmt.h"
static
void
dndSetMsgHandle
(
SMgmtWrapper
*
pWrapper
,
int32_t
msgType
,
NodeMsgFp
nodeMsgFp
)
{
SDnodeMgmt
*
pMgmt
=
pWrapper
->
pMgmt
;
...
...
source/dnode/mgmt/dnode/src/dndInt.c
浏览文件 @
edccd795
...
...
@@ -15,6 +15,7 @@
#define _DEFAULT_SOURCE
#include "dndInt.h"
#include "dndHandle.h"
static
int8_t
once
=
DND_ENV_INIT
;
...
...
@@ -140,4 +141,10 @@ void dndeHandleEvent(SDnode *pDnode, EDndEvent event) {
SMgmtWrapper
*
dndGetWrapper
(
SDnode
*
pDnode
,
ENodeType
nodeType
)
{
return
&
pDnode
->
mgmts
[
nodeType
];
}
\ No newline at end of file
}
SMgmtFp
dndGetMgmtFp
()
{
SMgmtFp
mgmtFp
=
{
0
};
mgmtFp
.
getMsgHandleFp
=
dndGetMsgHandle
;
return
mgmtFp
;
}
source/dnode/mgmt/dnode/src/dndMain.c
浏览文件 @
edccd795
...
...
@@ -120,6 +120,7 @@ SDnode *dndCreate(SDndCfg *pCfg) {
goto
_OVER
;
}
pDnode
->
mgmts
[
DNODE
].
fp
=
dndGetMgmtFp
();
pDnode
->
mgmts
[
MNODE
].
fp
=
mmGetMgmtFp
();
pDnode
->
mgmts
[
VNODES
].
fp
=
vmGetMgmtFp
();
pDnode
->
mgmts
[
QNODE
].
fp
=
qmGetMgmtFp
();
...
...
source/dnode/mgmt/dnode/src/dndMgmt.c
浏览文件 @
edccd795
...
...
@@ -425,4 +425,21 @@ static void dndProcessMgmtQueue(SDnode *pDnode, SRpcMsg *pMsg) {
taosFreeQitem(pMsg);
}
#endif
\ No newline at end of file
#endif
int32_t
dndInitMgmt
(
SDnode
*
pDnode
)
{
return
0
;}
void
dndStopMgmt
(
SDnode
*
pDnode
)
{}
void
dndCleanupMgmt
(
SDnode
*
pDnode
){}
void
dndSendStatusReq
(
SDnode
*
pDnode
){}
void
dndGetMnodeEpSet
(
SDnode
*
pDnode
,
SEpSet
*
pEpSet
)
{}
void
dndProcessStartupReq
(
SDnode
*
pDnode
,
SRpcMsg
*
pReq
){}
void
dndProcessMgmtMsg
(
SDnode
*
pDnode
,
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
){}
\ No newline at end of file
source/dnode/mgmt/mnode/src/mmInt.c
浏览文件 @
edccd795
...
...
@@ -20,6 +20,7 @@
SMgmtFp
mmGetMgmtFp
()
{
SMgmtFp
mgmtFp
=
{
0
};
mgmtFp
.
getMsgHandleFp
=
mmGetMsgHandle
;
return
mgmtFp
;
}
...
...
source/dnode/mgmt/mnode/src/mmWorker.c
浏览文件 @
edccd795
...
...
@@ -266,4 +266,8 @@ static void mmConsumeMsgQueue(SDnode *pDnode, SMndMsg *pMsg) {
taosFreeQitem(pMsg);
}
#endif
\ No newline at end of file
#endif
void
mmProcessWriteMsg
(
SDnode
*
pDnode
,
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
)
{}
void
mmProcessSyncMsg
(
SDnode
*
pDnode
,
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
)
{}
void
mmProcessReadMsg
(
SDnode
*
pDnode
,
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
)
{}
\ No newline at end of file
source/dnode/mgmt/qnode/inc/qmHandle.h
浏览文件 @
edccd795
/*
* 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_QNODE_HANDLE_H_
#define _TD_DND_QNODE_HANDLE_H_
#include "qmInt.h"
#ifdef __cplusplus
extern
"C"
{
#endif
void
qmInitMsgHandles
(
SMgmtWrapper
*
pWrapper
);
SMsgHandle
qmGetMsgHandle
(
SMgmtWrapper
*
pWrapper
,
int32_t
msgIndex
);
#ifdef __cplusplus
}
#endif
#endif
/*_TD_DND_QNODE_HANDLE_H_*/
\ No newline at end of file
source/dnode/mgmt/qnode/src/qmHandle.c
浏览文件 @
edccd795
/*
* 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/>.
*/
#define _DEFAULT_SOURCE
#include "qmHandle.h"
#include "qmWorker.h"
void
qmInitMsgHandles
(
SMgmtWrapper
*
pWrapper
)
{
}
SMsgHandle
qmGetMsgHandle
(
SMgmtWrapper
*
pWrapper
,
int32_t
msgIndex
)
{
SQnodeMgmt
*
pMgmt
=
pWrapper
->
pMgmt
;
return
pMgmt
->
msgHandles
[
msgIndex
];
}
source/dnode/mgmt/qnode/src/qmInt.c
浏览文件 @
edccd795
/*
* 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/>.
*/
#define _DEFAULT_SOURCE
#include "qmInt.h"
#include "qmHandle.h"
SMgmtFp
qmGetMgmtFp
()
{
SMgmtFp
mgmtFp
=
{
0
};
mgmtFp
.
getMsgHandleFp
=
qmGetMsgHandle
;
return
mgmtFp
;
}
source/dnode/mgmt/snode/inc/smHandle.h
浏览文件 @
edccd795
/*
* 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_SNODE_HANDLE_H_
#define _TD_DND_SNODE_HANDLE_H_
#include "mmInt.h"
#ifdef __cplusplus
extern
"C"
{
#endif
void
smInitMsgHandles
(
SMgmtWrapper
*
pWrapper
);
SMsgHandle
smGetMsgHandle
(
SMgmtWrapper
*
pWrapper
,
int32_t
msgIndex
);
#ifdef __cplusplus
}
#endif
#endif
/*_TD_DND_SNODE_HANDLE_H_*/
\ No newline at end of file
source/dnode/mgmt/snode/src/smHandle.c
浏览文件 @
edccd795
/*
* 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/>.
*/
#define _DEFAULT_SOURCE
#include "smHandle.h"
#include "smWorker.h"
void
smInitMsgHandles
(
SMgmtWrapper
*
pWrapper
)
{
}
SMsgHandle
smGetMsgHandle
(
SMgmtWrapper
*
pWrapper
,
int32_t
msgIndex
)
{
SBnodeMgmt
*
pMgmt
=
pWrapper
->
pMgmt
;
return
pMgmt
->
msgHandles
[
msgIndex
];
}
source/dnode/mgmt/snode/src/smInt.c
浏览文件 @
edccd795
/*
* 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/>.
*/
#define _DEFAULT_SOURCE
#include "smInt.h"
#include "smHandle.h"
SMgmtFp
smGetMgmtFp
()
{
SMgmtFp
mgmtFp
=
{
0
};
mgmtFp
.
getMsgHandleFp
=
smGetMsgHandle
;
return
mgmtFp
;
}
source/dnode/mgmt/vnode/src/vmInt.c
浏览文件 @
edccd795
/*
* 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/>.
*/
#define _DEFAULT_SOURCE
#include "vmInt.h"
#include "vmHandle.h"
SMgmtFp
vmGetMgmtFp
()
{
SMgmtFp
mgmtFp
=
{
0
};
mgmtFp
.
getMsgHandleFp
=
vmGetMsgHandle
;
return
mgmtFp
;
}
source/dnode/mgmt/vnode/src/vmWorker.c
浏览文件 @
edccd795
/*
* 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/>.
*/
#define _DEFAULT_SOURCE
#include "vmWorker.h"
void
vmProcessWriteMsg
(
SDnode
*
pDnode
,
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
){}
void
vmProcessSyncMsg
(
SDnode
*
pDnode
,
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
){}
void
vmProcessQueryMsg
(
SDnode
*
pDnode
,
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
){}
void
vmProcessFetchMsg
(
SDnode
*
pDnode
,
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
){}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录