Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
43e84cbd
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看板
提交
43e84cbd
编写于
4月 02, 2022
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename files
上级
ddd462c4
变更
19
隐藏空白更改
内联
并排
Showing
19 changed file
with
43 addition
and
43 deletion
+43
-43
source/dnode/mgmt/bm/bmHandle.c
source/dnode/mgmt/bm/bmHandle.c
+1
-1
source/dnode/mgmt/bm/bmInt.c
source/dnode/mgmt/bm/bmInt.c
+1
-1
source/dnode/mgmt/dm/dmHandle.c
source/dnode/mgmt/dm/dmHandle.c
+14
-14
source/dnode/mgmt/dm/dmWorker.c
source/dnode/mgmt/dm/dmWorker.c
+3
-3
source/dnode/mgmt/inc/bmInt.h
source/dnode/mgmt/inc/bmInt.h
+2
-2
source/dnode/mgmt/inc/dmInt.h
source/dnode/mgmt/inc/dmInt.h
+3
-3
source/dnode/mgmt/inc/dndInt.h
source/dnode/mgmt/inc/dndInt.h
+3
-3
source/dnode/mgmt/inc/mmInt.h
source/dnode/mgmt/inc/mmInt.h
+2
-2
source/dnode/mgmt/inc/qmInt.h
source/dnode/mgmt/inc/qmInt.h
+2
-2
source/dnode/mgmt/inc/smInt.h
source/dnode/mgmt/inc/smInt.h
+2
-2
source/dnode/mgmt/inc/vmInt.h
source/dnode/mgmt/inc/vmInt.h
+2
-2
source/dnode/mgmt/mm/mmHandle.c
source/dnode/mgmt/mm/mmHandle.c
+1
-1
source/dnode/mgmt/mm/mmInt.c
source/dnode/mgmt/mm/mmInt.c
+1
-1
source/dnode/mgmt/qm/qmHandle.c
source/dnode/mgmt/qm/qmHandle.c
+1
-1
source/dnode/mgmt/qm/qmInt.c
source/dnode/mgmt/qm/qmInt.c
+1
-1
source/dnode/mgmt/sm/smHandle.c
source/dnode/mgmt/sm/smHandle.c
+1
-1
source/dnode/mgmt/sm/smInt.c
source/dnode/mgmt/sm/smInt.c
+1
-1
source/dnode/mgmt/vm/vmHandle.c
source/dnode/mgmt/vm/vmHandle.c
+1
-1
source/dnode/mgmt/vm/vmInt.c
source/dnode/mgmt/vm/vmInt.c
+1
-1
未找到文件。
source/dnode/mgmt/bm/bmHandle.c
浏览文件 @
43e84cbd
...
@@ -54,4 +54,4 @@ int32_t bmProcessDropReq(SMgmtWrapper *pWrapper, SNodeMsg *pMsg) {
...
@@ -54,4 +54,4 @@ int32_t bmProcessDropReq(SMgmtWrapper *pWrapper, SNodeMsg *pMsg) {
}
}
}
}
void
bmInitMsgHandle
s
(
SMgmtWrapper
*
pWrapper
)
{}
void
bmInitMsgHandle
(
SMgmtWrapper
*
pWrapper
)
{}
source/dnode/mgmt/bm/bmInt.c
浏览文件 @
43e84cbd
...
@@ -117,7 +117,7 @@ void bmSetMgmtFp(SMgmtWrapper *pWrapper) {
...
@@ -117,7 +117,7 @@ void bmSetMgmtFp(SMgmtWrapper *pWrapper) {
mgmtFp
.
dropMsgFp
=
bmProcessDropReq
;
mgmtFp
.
dropMsgFp
=
bmProcessDropReq
;
mgmtFp
.
requiredFp
=
bmRequire
;
mgmtFp
.
requiredFp
=
bmRequire
;
bmInitMsgHandle
s
(
pWrapper
);
bmInitMsgHandle
(
pWrapper
);
pWrapper
->
name
=
"bnode"
;
pWrapper
->
name
=
"bnode"
;
pWrapper
->
fp
=
mgmtFp
;
pWrapper
->
fp
=
mgmtFp
;
}
}
source/dnode/mgmt/dm/dmHandle.c
浏览文件 @
43e84cbd
...
@@ -171,7 +171,7 @@ static int32_t dmProcessDropNodeMsg(SDnode *pDnode, ENodeType ntype, SNodeMsg *p
...
@@ -171,7 +171,7 @@ static int32_t dmProcessDropNodeMsg(SDnode *pDnode, ENodeType ntype, SNodeMsg *p
return
code
;
return
code
;
}
}
int32_t
dmProcessCDnode
Msg
(
SDnode
*
pDnode
,
SNodeMsg
*
pMsg
)
{
int32_t
dmProcessCDnode
Req
(
SDnode
*
pDnode
,
SNodeMsg
*
pMsg
)
{
switch
(
pMsg
->
rpcMsg
.
msgType
)
{
switch
(
pMsg
->
rpcMsg
.
msgType
)
{
case
TDMT_DND_CREATE_MNODE
:
case
TDMT_DND_CREATE_MNODE
:
return
dmProcessCreateNodeMsg
(
pDnode
,
MNODE
,
pMsg
);
return
dmProcessCreateNodeMsg
(
pDnode
,
MNODE
,
pMsg
);
...
@@ -197,19 +197,19 @@ int32_t dmProcessCDnodeMsg(SDnode *pDnode, SNodeMsg *pMsg) {
...
@@ -197,19 +197,19 @@ int32_t dmProcessCDnodeMsg(SDnode *pDnode, SNodeMsg *pMsg) {
void
dmInitMsgHandle
(
SMgmtWrapper
*
pWrapper
)
{
void
dmInitMsgHandle
(
SMgmtWrapper
*
pWrapper
)
{
// Requests handled by DNODE
// Requests handled by DNODE
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_CREATE_MNODE
,
dmP
utMsgToMgmtWorker
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_CREATE_MNODE
,
dmP
rocessMgmtMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_DROP_MNODE
,
dmP
utMsgToMgmtWorker
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_DROP_MNODE
,
dmP
rocessMgmtMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_CREATE_QNODE
,
dmP
utMsgToMgmtWorker
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_CREATE_QNODE
,
dmP
rocessMgmtMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_DROP_QNODE
,
dmP
utMsgToMgmtWorker
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_DROP_QNODE
,
dmP
rocessMgmtMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_CREATE_SNODE
,
dmP
utMsgToMgmtWorker
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_CREATE_SNODE
,
dmP
rocessMgmtMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_DROP_SNODE
,
dmP
utMsgToMgmtWorker
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_DROP_SNODE
,
dmP
rocessMgmtMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_CREATE_BNODE
,
dmP
utMsgToMgmtWorker
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_CREATE_BNODE
,
dmP
rocessMgmtMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_DROP_BNODE
,
dmP
utMsgToMgmtWorker
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_DROP_BNODE
,
dmP
rocessMgmtMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_CONFIG_DNODE
,
dmP
utMsgToMgmtWorker
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_CONFIG_DNODE
,
dmP
rocessMgmtMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_NETWORK_TEST
,
dmP
utMsgToMgmtWorker
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_NETWORK_TEST
,
dmP
rocessMgmtMsg
,
DEFAULT_HANDLE
);
// Requests handled by MNODE
// Requests handled by MNODE
dndSetMsgHandle
(
pWrapper
,
TDMT_MND_STATUS_RSP
,
dmP
utMsgToStatusWorker
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_MND_STATUS_RSP
,
dmP
rocessStatusMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_MND_GRANT_RSP
,
dmP
utMsgToMgmtWorker
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_MND_GRANT_RSP
,
dmP
rocessMgmtMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_MND_AUTH_RSP
,
dmP
utMsgToMgmtWorker
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_MND_AUTH_RSP
,
dmP
rocessMgmtMsg
,
DEFAULT_HANDLE
);
}
}
source/dnode/mgmt/dm/dmWorker.c
浏览文件 @
43e84cbd
...
@@ -79,7 +79,7 @@ static void dmProcessQueue(SQueueInfo *pInfo, SNodeMsg *pMsg) {
...
@@ -79,7 +79,7 @@ static void dmProcessQueue(SQueueInfo *pInfo, SNodeMsg *pMsg) {
code
=
dmProcessGrantRsp
(
pMgmt
,
pMsg
);
code
=
dmProcessGrantRsp
(
pMgmt
,
pMsg
);
break
;
break
;
default:
default:
code
=
dmProcessCDnode
Msg
(
pMgmt
->
pDnode
,
pMsg
);
code
=
dmProcessCDnode
Req
(
pMgmt
->
pDnode
,
pMsg
);
break
;
break
;
}
}
...
@@ -122,7 +122,7 @@ void dmStopWorker(SDnodeMgmt *pMgmt) {
...
@@ -122,7 +122,7 @@ void dmStopWorker(SDnodeMgmt *pMgmt) {
dDebug
(
"dnode workers are closed"
);
dDebug
(
"dnode workers are closed"
);
}
}
int32_t
dmP
utMsgToMgmtWorker
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
)
{
int32_t
dmP
rocessMgmtMsg
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
)
{
SDnodeMgmt
*
pMgmt
=
pWrapper
->
pMgmt
;
SDnodeMgmt
*
pMgmt
=
pWrapper
->
pMgmt
;
SSingleWorker
*
pWorker
=
&
pMgmt
->
mgmtWorker
;
SSingleWorker
*
pWorker
=
&
pMgmt
->
mgmtWorker
;
...
@@ -131,7 +131,7 @@ int32_t dmPutMsgToMgmtWorker(SMgmtWrapper *pWrapper, SNodeMsg *pMsg) {
...
@@ -131,7 +131,7 @@ int32_t dmPutMsgToMgmtWorker(SMgmtWrapper *pWrapper, SNodeMsg *pMsg) {
return
0
;
return
0
;
}
}
int32_t
dmP
utMsgToStatusWorker
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
)
{
int32_t
dmP
rocessStatusMsg
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
)
{
SDnodeMgmt
*
pMgmt
=
pWrapper
->
pMgmt
;
SDnodeMgmt
*
pMgmt
=
pWrapper
->
pMgmt
;
SSingleWorker
*
pWorker
=
&
pMgmt
->
statusWorker
;
SSingleWorker
*
pWorker
=
&
pMgmt
->
statusWorker
;
...
...
source/dnode/mgmt/inc/bmInt.h
浏览文件 @
43e84cbd
...
@@ -35,8 +35,8 @@ typedef struct SBnodeMgmt {
...
@@ -35,8 +35,8 @@ typedef struct SBnodeMgmt {
int32_t
bmOpen
(
SMgmtWrapper
*
pWrapper
);
int32_t
bmOpen
(
SMgmtWrapper
*
pWrapper
);
int32_t
bmDrop
(
SMgmtWrapper
*
pWrapper
);
int32_t
bmDrop
(
SMgmtWrapper
*
pWrapper
);
// bm
Msg
.c
// bm
Handle
.c
void
bmInitMsgHandle
s
(
SMgmtWrapper
*
pWrapper
);
void
bmInitMsgHandle
(
SMgmtWrapper
*
pWrapper
);
int32_t
bmProcessCreateReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
bmProcessCreateReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
bmProcessDropReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
bmProcessDropReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
...
...
source/dnode/mgmt/inc/dmInt.h
浏览文件 @
43e84cbd
...
@@ -51,7 +51,7 @@ int32_t dmProcessConfigReq(SDnodeMgmt *pMgmt, SNodeMsg *pMsg);
...
@@ -51,7 +51,7 @@ int32_t dmProcessConfigReq(SDnodeMgmt *pMgmt, SNodeMsg *pMsg);
int32_t
dmProcessStatusRsp
(
SDnodeMgmt
*
pMgmt
,
SNodeMsg
*
pMsg
);
int32_t
dmProcessStatusRsp
(
SDnodeMgmt
*
pMgmt
,
SNodeMsg
*
pMsg
);
int32_t
dmProcessAuthRsp
(
SDnodeMgmt
*
pMgmt
,
SNodeMsg
*
pMsg
);
int32_t
dmProcessAuthRsp
(
SDnodeMgmt
*
pMgmt
,
SNodeMsg
*
pMsg
);
int32_t
dmProcessGrantRsp
(
SDnodeMgmt
*
pMgmt
,
SNodeMsg
*
pMsg
);
int32_t
dmProcessGrantRsp
(
SDnodeMgmt
*
pMgmt
,
SNodeMsg
*
pMsg
);
int32_t
dmProcessCDnode
Msg
(
SDnode
*
pDnode
,
SNodeMsg
*
pMsg
);
int32_t
dmProcessCDnode
Req
(
SDnode
*
pDnode
,
SNodeMsg
*
pMsg
);
// dmMonitor.c
// dmMonitor.c
void
dmSendMonitorReport
(
SDnode
*
pDnode
);
void
dmSendMonitorReport
(
SDnode
*
pDnode
);
...
@@ -60,8 +60,8 @@ void dmSendMonitorReport(SDnode *pDnode);
...
@@ -60,8 +60,8 @@ void dmSendMonitorReport(SDnode *pDnode);
int32_t
dmStartThread
(
SDnodeMgmt
*
pMgmt
);
int32_t
dmStartThread
(
SDnodeMgmt
*
pMgmt
);
int32_t
dmStartWorker
(
SDnodeMgmt
*
pMgmt
);
int32_t
dmStartWorker
(
SDnodeMgmt
*
pMgmt
);
void
dmStopWorker
(
SDnodeMgmt
*
pMgmt
);
void
dmStopWorker
(
SDnodeMgmt
*
pMgmt
);
int32_t
dmP
utMsgToMgmtWorker
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
dmP
rocessMgmtMsg
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
dmP
utMsgToStatusWorker
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
dmP
rocessStatusMsg
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
source/dnode/mgmt/inc/dndInt.h
浏览文件 @
43e84cbd
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
*/
#ifndef _TD_DND_H_
#ifndef _TD_DND_
INT_
H_
#define _TD_DND_H_
#define _TD_DND_
INT_
H_
#include "os.h"
#include "os.h"
...
@@ -203,4 +203,4 @@ int32_t mmMonitorMnodeInfo(SMgmtWrapper *pWrapper, SMonClusterInfo *pClusterInfo
...
@@ -203,4 +203,4 @@ int32_t mmMonitorMnodeInfo(SMgmtWrapper *pWrapper, SMonClusterInfo *pClusterInfo
}
}
#endif
#endif
#endif
/*_TD_DND_H_*/
#endif
/*_TD_DND_INT_H_*/
\ No newline at end of file
\ No newline at end of file
source/dnode/mgmt/inc/mmInt.h
浏览文件 @
43e84cbd
...
@@ -46,8 +46,8 @@ int32_t mmOpenFromMsg(SMgmtWrapper *pWrapper, SDCreateMnodeReq *pReq);
...
@@ -46,8 +46,8 @@ int32_t mmOpenFromMsg(SMgmtWrapper *pWrapper, SDCreateMnodeReq *pReq);
int32_t
mmDrop
(
SMgmtWrapper
*
pWrapper
);
int32_t
mmDrop
(
SMgmtWrapper
*
pWrapper
);
int32_t
mmAlter
(
SMnodeMgmt
*
pMgmt
,
SDAlterMnodeReq
*
pReq
);
int32_t
mmAlter
(
SMnodeMgmt
*
pMgmt
,
SDAlterMnodeReq
*
pReq
);
// mm
Msg
.c
// mm
Handle
.c
void
mmInitMsgHandle
s
(
SMgmtWrapper
*
pWrapper
);
void
mmInitMsgHandle
(
SMgmtWrapper
*
pWrapper
);
int32_t
mmProcessCreateReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
mmProcessCreateReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
mmProcessDropReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
mmProcessDropReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
mmProcessAlterReq
(
SMnodeMgmt
*
pMgmt
,
SNodeMsg
*
pMsg
);
int32_t
mmProcessAlterReq
(
SMnodeMgmt
*
pMgmt
,
SNodeMsg
*
pMsg
);
...
...
source/dnode/mgmt/inc/qmInt.h
浏览文件 @
43e84cbd
...
@@ -36,8 +36,8 @@ typedef struct SQnodeMgmt {
...
@@ -36,8 +36,8 @@ typedef struct SQnodeMgmt {
int32_t
qmOpen
(
SMgmtWrapper
*
pWrapper
);
int32_t
qmOpen
(
SMgmtWrapper
*
pWrapper
);
int32_t
qmDrop
(
SMgmtWrapper
*
pWrapper
);
int32_t
qmDrop
(
SMgmtWrapper
*
pWrapper
);
// qm
Msg
.c
// qm
Handle
.c
void
qmInitMsgHandle
s
(
SMgmtWrapper
*
pWrapper
);
void
qmInitMsgHandle
(
SMgmtWrapper
*
pWrapper
);
int32_t
qmProcessCreateReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
qmProcessCreateReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
qmProcessDropReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
qmProcessDropReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
...
...
source/dnode/mgmt/inc/smInt.h
浏览文件 @
43e84cbd
...
@@ -38,8 +38,8 @@ typedef struct SSnodeMgmt {
...
@@ -38,8 +38,8 @@ typedef struct SSnodeMgmt {
int32_t
smOpen
(
SMgmtWrapper
*
pWrapper
);
int32_t
smOpen
(
SMgmtWrapper
*
pWrapper
);
int32_t
smDrop
(
SMgmtWrapper
*
pWrapper
);
int32_t
smDrop
(
SMgmtWrapper
*
pWrapper
);
// sm
Msg
.c
// sm
Handle
.c
void
smInitMsgHandle
s
(
SMgmtWrapper
*
pWrapper
);
void
smInitMsgHandle
(
SMgmtWrapper
*
pWrapper
);
int32_t
smProcessCreateReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
smProcessCreateReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
smProcessDropReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
int32_t
smProcessDropReq
(
SMgmtWrapper
*
pWrapper
,
SNodeMsg
*
pMsg
);
...
...
source/dnode/mgmt/inc/vmInt.h
浏览文件 @
43e84cbd
...
@@ -84,8 +84,8 @@ void vmReleaseVnode(SVnodesMgmt *pMgmt, SVnodeObj *pVnode);
...
@@ -84,8 +84,8 @@ void vmReleaseVnode(SVnodesMgmt *pMgmt, SVnodeObj *pVnode);
int32_t
vmOpenVnode
(
SVnodesMgmt
*
pMgmt
,
SWrapperCfg
*
pCfg
,
SVnode
*
pImpl
);
int32_t
vmOpenVnode
(
SVnodesMgmt
*
pMgmt
,
SWrapperCfg
*
pCfg
,
SVnode
*
pImpl
);
void
vmCloseVnode
(
SVnodesMgmt
*
pMgmt
,
SVnodeObj
*
pVnode
);
void
vmCloseVnode
(
SVnodesMgmt
*
pMgmt
,
SVnodeObj
*
pVnode
);
// vm
Msg
.c
// vm
Handle
.c
void
vmInitMsgHandle
s
(
SMgmtWrapper
*
pWrapper
);
void
vmInitMsgHandle
(
SMgmtWrapper
*
pWrapper
);
int32_t
vmProcessCreateVnodeReq
(
SVnodesMgmt
*
pMgmt
,
SNodeMsg
*
pReq
);
int32_t
vmProcessCreateVnodeReq
(
SVnodesMgmt
*
pMgmt
,
SNodeMsg
*
pReq
);
int32_t
vmProcessAlterVnodeReq
(
SVnodesMgmt
*
pMgmt
,
SNodeMsg
*
pReq
);
int32_t
vmProcessAlterVnodeReq
(
SVnodesMgmt
*
pMgmt
,
SNodeMsg
*
pReq
);
int32_t
vmProcessDropVnodeReq
(
SVnodesMgmt
*
pMgmt
,
SNodeMsg
*
pReq
);
int32_t
vmProcessDropVnodeReq
(
SVnodesMgmt
*
pMgmt
,
SNodeMsg
*
pReq
);
...
...
source/dnode/mgmt/mm/mmHandle.c
浏览文件 @
43e84cbd
...
@@ -73,7 +73,7 @@ int32_t mmProcessAlterReq(SMnodeMgmt *pMgmt, SNodeMsg *pMsg) {
...
@@ -73,7 +73,7 @@ int32_t mmProcessAlterReq(SMnodeMgmt *pMgmt, SNodeMsg *pMsg) {
}
}
}
}
void
mmInitMsgHandle
s
(
SMgmtWrapper
*
pWrapper
)
{
void
mmInitMsgHandle
(
SMgmtWrapper
*
pWrapper
)
{
// Requests handled by DNODE
// Requests handled by DNODE
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_CREATE_MNODE_RSP
,
mmProcessWriteMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_CREATE_MNODE_RSP
,
mmProcessWriteMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_ALTER_MNODE_RSP
,
mmProcessWriteMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_DND_ALTER_MNODE_RSP
,
mmProcessWriteMsg
,
DEFAULT_HANDLE
);
...
...
source/dnode/mgmt/mm/mmInt.c
浏览文件 @
43e84cbd
...
@@ -236,7 +236,7 @@ void mmSetMgmtFp(SMgmtWrapper *pWrapper) {
...
@@ -236,7 +236,7 @@ void mmSetMgmtFp(SMgmtWrapper *pWrapper) {
mgmtFp
.
dropMsgFp
=
mmProcessDropReq
;
mgmtFp
.
dropMsgFp
=
mmProcessDropReq
;
mgmtFp
.
requiredFp
=
mmRequire
;
mgmtFp
.
requiredFp
=
mmRequire
;
mmInitMsgHandle
s
(
pWrapper
);
mmInitMsgHandle
(
pWrapper
);
pWrapper
->
name
=
"mnode"
;
pWrapper
->
name
=
"mnode"
;
pWrapper
->
fp
=
mgmtFp
;
pWrapper
->
fp
=
mgmtFp
;
}
}
...
...
source/dnode/mgmt/qm/qmHandle.c
浏览文件 @
43e84cbd
...
@@ -54,7 +54,7 @@ int32_t qmProcessDropReq(SMgmtWrapper *pWrapper, SNodeMsg *pMsg) {
...
@@ -54,7 +54,7 @@ int32_t qmProcessDropReq(SMgmtWrapper *pWrapper, SNodeMsg *pMsg) {
}
}
}
}
void
qmInitMsgHandle
s
(
SMgmtWrapper
*
pWrapper
)
{
void
qmInitMsgHandle
(
SMgmtWrapper
*
pWrapper
)
{
// Requests handled by VNODE
// Requests handled by VNODE
dndSetMsgHandle
(
pWrapper
,
TDMT_VND_QUERY
,
qmProcessQueryMsg
,
QNODE_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_VND_QUERY
,
qmProcessQueryMsg
,
QNODE_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_VND_QUERY_CONTINUE
,
qmProcessQueryMsg
,
QNODE_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_VND_QUERY_CONTINUE
,
qmProcessQueryMsg
,
QNODE_HANDLE
);
...
...
source/dnode/mgmt/qm/qmInt.c
浏览文件 @
43e84cbd
...
@@ -120,7 +120,7 @@ void qmSetMgmtFp(SMgmtWrapper *pWrapper) {
...
@@ -120,7 +120,7 @@ void qmSetMgmtFp(SMgmtWrapper *pWrapper) {
mgmtFp
.
dropMsgFp
=
qmProcessDropReq
;
mgmtFp
.
dropMsgFp
=
qmProcessDropReq
;
mgmtFp
.
requiredFp
=
qmRequire
;
mgmtFp
.
requiredFp
=
qmRequire
;
qmInitMsgHandle
s
(
pWrapper
);
qmInitMsgHandle
(
pWrapper
);
pWrapper
->
name
=
"qnode"
;
pWrapper
->
name
=
"qnode"
;
pWrapper
->
fp
=
mgmtFp
;
pWrapper
->
fp
=
mgmtFp
;
}
}
source/dnode/mgmt/sm/smHandle.c
浏览文件 @
43e84cbd
...
@@ -54,7 +54,7 @@ int32_t smProcessDropReq(SMgmtWrapper *pWrapper, SNodeMsg *pMsg) {
...
@@ -54,7 +54,7 @@ int32_t smProcessDropReq(SMgmtWrapper *pWrapper, SNodeMsg *pMsg) {
}
}
}
}
void
smInitMsgHandle
s
(
SMgmtWrapper
*
pWrapper
)
{
void
smInitMsgHandle
(
SMgmtWrapper
*
pWrapper
)
{
// Requests handled by SNODE
// Requests handled by SNODE
dndSetMsgHandle
(
pWrapper
,
TDMT_SND_TASK_DEPLOY
,
smProcessMgmtMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_SND_TASK_DEPLOY
,
smProcessMgmtMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_SND_TASK_EXEC
,
smProcessExecMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_SND_TASK_EXEC
,
smProcessExecMsg
,
DEFAULT_HANDLE
);
...
...
source/dnode/mgmt/sm/smInt.c
浏览文件 @
43e84cbd
...
@@ -117,7 +117,7 @@ void smSetMgmtFp(SMgmtWrapper *pWrapper) {
...
@@ -117,7 +117,7 @@ void smSetMgmtFp(SMgmtWrapper *pWrapper) {
mgmtFp
.
dropMsgFp
=
smProcessDropReq
;
mgmtFp
.
dropMsgFp
=
smProcessDropReq
;
mgmtFp
.
requiredFp
=
smRequire
;
mgmtFp
.
requiredFp
=
smRequire
;
smInitMsgHandle
s
(
pWrapper
);
smInitMsgHandle
(
pWrapper
);
pWrapper
->
name
=
"snode"
;
pWrapper
->
name
=
"snode"
;
pWrapper
->
fp
=
mgmtFp
;
pWrapper
->
fp
=
mgmtFp
;
}
}
source/dnode/mgmt/vm/vmHandle.c
浏览文件 @
43e84cbd
...
@@ -233,7 +233,7 @@ int32_t vmProcessCompactVnodeReq(SVnodesMgmt *pMgmt, SNodeMsg *pMsg) {
...
@@ -233,7 +233,7 @@ int32_t vmProcessCompactVnodeReq(SVnodesMgmt *pMgmt, SNodeMsg *pMsg) {
return
0
;
return
0
;
}
}
void
vmInitMsgHandle
s
(
SMgmtWrapper
*
pWrapper
)
{
void
vmInitMsgHandle
(
SMgmtWrapper
*
pWrapper
)
{
// Requests handled by VNODE
// Requests handled by VNODE
dndSetMsgHandle
(
pWrapper
,
TDMT_VND_SUBMIT
,
(
NodeMsgFp
)
vmProcessWriteMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_VND_SUBMIT
,
(
NodeMsgFp
)
vmProcessWriteMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_VND_QUERY
,
(
NodeMsgFp
)
vmProcessQueryMsg
,
DEFAULT_HANDLE
);
dndSetMsgHandle
(
pWrapper
,
TDMT_VND_QUERY
,
(
NodeMsgFp
)
vmProcessQueryMsg
,
DEFAULT_HANDLE
);
...
...
source/dnode/mgmt/vm/vmInt.c
浏览文件 @
43e84cbd
...
@@ -339,7 +339,7 @@ void vmSetMgmtFp(SMgmtWrapper *pWrapper) {
...
@@ -339,7 +339,7 @@ void vmSetMgmtFp(SMgmtWrapper *pWrapper) {
mgmtFp
.
closeFp
=
vmCleanup
;
mgmtFp
.
closeFp
=
vmCleanup
;
mgmtFp
.
requiredFp
=
vmRequire
;
mgmtFp
.
requiredFp
=
vmRequire
;
vmInitMsgHandle
s
(
pWrapper
);
vmInitMsgHandle
(
pWrapper
);
pWrapper
->
name
=
"vnode"
;
pWrapper
->
name
=
"vnode"
;
pWrapper
->
fp
=
mgmtFp
;
pWrapper
->
fp
=
mgmtFp
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录