Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
冷面1992
TDengine
提交
78f7134e
TDengine
项目概览
冷面1992
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
78f7134e
编写于
4月 11, 2020
作者:
S
slguan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-52] rename some defs
上级
0c2e5067
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
58 addition
and
79 deletion
+58
-79
cmake/define.inc
cmake/define.inc
+2
-2
src/dnode/src/dnodeMgmt.c
src/dnode/src/dnodeMgmt.c
+1
-1
src/inc/mnode.h
src/inc/mnode.h
+9
-18
src/inc/mpeer.h
src/inc/mpeer.h
+9
-9
src/inc/taosdef.h
src/inc/taosdef.h
+2
-2
src/inc/taosmsg.h
src/inc/taosmsg.h
+1
-1
src/mnode/src/mgmtDb.c
src/mnode/src/mgmtDb.c
+2
-2
src/mnode/src/mgmtDnode.c
src/mnode/src/mgmtDnode.c
+3
-3
src/mnode/src/mgmtMain.c
src/mnode/src/mgmtMain.c
+6
-6
src/mnode/src/mgmtMnode.c
src/mnode/src/mgmtMnode.c
+9
-11
src/mnode/src/mgmtProfile.c
src/mnode/src/mgmtProfile.c
+4
-4
src/mnode/src/mgmtShell.c
src/mnode/src/mgmtShell.c
+7
-7
src/mnode/src/mgmtTable.c
src/mnode/src/mgmtTable.c
+1
-3
src/mnode/src/mgmtUser.c
src/mnode/src/mgmtUser.c
+1
-7
src/mnode/src/mgmtVgroup.c
src/mnode/src/mgmtVgroup.c
+1
-3
未找到文件。
cmake/define.inc
浏览文件 @
78f7134e
...
...
@@ -11,9 +11,9 @@ ENDIF ()
IF
(
TD_VPEER
)
ADD_DEFINITIONS
(
-
D_VPEER
)
ADD_DEFINITIONS
(
-
DTSDB_REPLICA_MAX_NUM
=
3
)
#
ADD_DEFINITIONS(-DTSDB_REPLICA_MAX_NUM=3)
ELSE
()
ADD_DEFINITIONS
(
-
DTSDB_REPLICA_MAX_NUM
=
1
)
#
ADD_DEFINITIONS(-DTSDB_REPLICA_MAX_NUM=1)
ENDIF
()
IF
(
TD_ACCOUNT
)
...
...
src/dnode/src/dnodeMgmt.c
浏览文件 @
78f7134e
...
...
@@ -45,7 +45,7 @@ static void *tsDnodeTmr = NULL;
static
void
*
tsStatusTimer
=
NULL
;
static
uint32_t
tsRebootTime
;
static
int32_t
tsDnodeId
=
0
;
static
char
tsDnodeName
[
TSDB_
D
NODE_NAME_LEN
];
static
char
tsDnodeName
[
TSDB_NODE_NAME_LEN
];
int32_t
dnodeInitMgmt
()
{
dnodeReadDnodeId
();
...
...
src/inc/mnode.h
浏览文件 @
78f7134e
...
...
@@ -41,28 +41,19 @@ struct _vg_obj;
struct
_db_obj
;
struct
_acct_obj
;
struct
_user_obj
;
struct
_mnode_obj
;
typedef
struct
{
typedef
struct
_mnode_obj
{
int32_t
mnodeId
;
uint32_t
privateIp
;
uint32_t
publicIp
;
int32_t
dnodeId
;
int64_t
createdTime
;
int64_t
lostTime
;
uint64_t
dbVersion
;
uint32_t
rack
;
uint16_t
idc
;
uint16_t
slot
;
int8_t
role
;
int8_t
status
;
int8_t
numOfMnodes
;
int32_t
numOfDnodes
;
char
mnodeName
[
TSDB_DNODE_NAME_LEN
+
1
];
int8_t
reserved
[
15
];
int8_t
reserved
[
14
];
int8_t
updateEnd
[
1
];
int32_t
refCount
;
int
syncFd
;
void
*
hbTimer
;
void
*
pSync
;
int8_t
role
;
int8_t
status
;
uint32_t
privateIp
;
uint32_t
publicIp
;
}
SMnodeObj
;
typedef
struct
_dnode_obj
{
...
...
@@ -81,7 +72,7 @@ typedef struct _dnode_obj {
int8_t
alternativeRole
;
// from dnode status msg, 0-any, 1-mgmt, 2-dnode
int8_t
status
;
// set in balance function
int32_t
customScore
;
// config by user
char
dnodeName
[
TSDB_
D
NODE_NAME_LEN
+
1
];
char
dnodeName
[
TSDB_NODE_NAME_LEN
+
1
];
int8_t
reserved
[
15
];
int8_t
updateEnd
[
1
];
int32_t
refCount
;
...
...
src/
mnode/inc/mgmtMnode
.h
→
src/
inc/mpeer
.h
浏览文件 @
78f7134e
...
...
@@ -13,8 +13,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TDENGINE_M
GMT_MNODE
_H
#define TDENGINE_M
GMT_MNODE
_H
#ifndef TDENGINE_M
PEER
_H
#define TDENGINE_M
PEER
_H
#ifdef __cplusplus
extern
"C"
{
...
...
@@ -33,15 +33,15 @@ enum _TSDB_MN_ROLE {
TSDB_MN_ROLE_MASTER
};
int32_t
m
gmtInitMnodes
();
void
m
gmtCleanupMnodes
();
int32_t
m
peerInit
();
void
m
peerCleanup
();
bool
m
gmt
InServerStatus
();
bool
m
gmt
IsMaster
();
bool
m
peer
InServerStatus
();
bool
m
peer
IsMaster
();
bool
m
gmt
CheckRedirect
(
void
*
handle
);
void
m
gmtGetMnode
PrivateIpList
(
SRpcIpSet
*
ipSet
);
void
m
gmtGetMnode
PublicIpList
(
SRpcIpSet
*
ipSet
);
bool
m
peer
CheckRedirect
(
void
*
handle
);
void
m
peerGet
PrivateIpList
(
SRpcIpSet
*
ipSet
);
void
m
peerGet
PublicIpList
(
SRpcIpSet
*
ipSet
);
#ifdef __cplusplus
}
...
...
src/inc/taosdef.h
浏览文件 @
78f7134e
...
...
@@ -176,7 +176,7 @@ void tsDataSwap(void *pLeft, void *pRight, int32_t type, int32_t size);
#define TSDB_MAX_COLUMNS 256
#define TSDB_MIN_COLUMNS 2 //PRIMARY COLUMN(timestamp) + other columns
#define TSDB_
DNODE_NAME_LEN
64
#define TSDB_
NODE_NAME_LEN
64
#define TSDB_TABLE_NAME_LEN 192
#define TSDB_DB_NAME_LEN 32
#define TSDB_COL_NAME_LEN 64
...
...
@@ -233,7 +233,7 @@ void tsDataSwap(void *pLeft, void *pRight, int32_t type, int32_t size);
/*
* this is defined in CMakeList.txt
*/
//
#define TSDB_REPLICA_MAX_NUM 3
#define TSDB_REPLICA_MAX_NUM 3
#define TSDB_TBNAME_COLUMN_INDEX (-1)
#define TSDB_MULTI_METERMETA_MAX_NUM 100000 // maximum batch size allowed to load metermeta
...
...
src/inc/taosmsg.h
浏览文件 @
78f7134e
...
...
@@ -579,7 +579,7 @@ typedef struct {
typedef
struct
{
uint32_t
version
;
int32_t
dnodeId
;
char
dnodeName
[
TSDB_
DNODE_NAME_LEN
];
char
dnodeName
[
TSDB_
NODE_NAME_LEN
+
1
];
uint32_t
privateIp
;
uint32_t
publicIp
;
uint32_t
lastReboot
;
// time stamp for last reboot
...
...
src/mnode/src/mgmtDb.c
浏览文件 @
78f7134e
...
...
@@ -24,8 +24,8 @@
#include "mgmtDb.h"
#include "tcluster.h"
#include "tgrant.h"
#include "mpeer.h"
#include "mgmtShell.h"
#include "mgmtMnode.h"
#include "mgmtProfile.h"
#include "mgmtSdb.h"
#include "mgmtTable.h"
...
...
@@ -678,7 +678,7 @@ static int32_t mgmtSetDbDropping(SDbObj *pDb) {
}
static
void
mgmtProcessCreateDbMsg
(
SQueuedMsg
*
pMsg
)
{
if
(
m
gmt
CheckRedirect
(
pMsg
->
thandle
))
return
;
if
(
m
peer
CheckRedirect
(
pMsg
->
thandle
))
return
;
SCMCreateDbMsg
*
pCreate
=
pMsg
->
pCont
;
pCreate
->
maxSessions
=
htonl
(
pCreate
->
maxSessions
);
...
...
src/mnode/src/mgmtDnode.c
浏览文件 @
78f7134e
...
...
@@ -19,8 +19,8 @@
#include "tbalance.h"
#include "tcluster.h"
#include "mnode.h"
#include "mpeer.h"
#include "mgmtDClient.h"
#include "mgmtMnode.h"
#include "mgmtShell.h"
#include "mgmtDServer.h"
#include "mgmtUser.h"
...
...
@@ -141,7 +141,7 @@ static void clusterProcessCfgDnodeMsgRsp(SRpcMsg *rpcMsg) {
}
void
clusterProcessDnodeStatusMsg
(
SRpcMsg
*
rpcMsg
)
{
if
(
m
gmt
CheckRedirect
(
rpcMsg
->
handle
))
return
;
if
(
m
peer
CheckRedirect
(
rpcMsg
->
handle
))
return
;
SDMStatusMsg
*
pStatus
=
rpcMsg
->
pCont
;
pStatus
->
dnodeId
=
htonl
(
pStatus
->
dnodeId
);
...
...
@@ -221,7 +221,7 @@ void clusterProcessDnodeStatusMsg(SRpcMsg *rpcMsg) {
return
;
}
m
gmtGetMnode
PrivateIpList
(
&
pRsp
->
ipList
);
m
peerGet
PrivateIpList
(
&
pRsp
->
ipList
);
pRsp
->
dnodeState
.
dnodeId
=
htonl
(
pDnode
->
dnodeId
);
pRsp
->
dnodeState
.
moduleStatus
=
htonl
(
pDnode
->
moduleStatus
);
...
...
src/mnode/src/mgmtMain.c
浏览文件 @
78f7134e
...
...
@@ -22,11 +22,11 @@
#include "taccount.h"
#include "tbalance.h"
#include "tcluster.h"
#include "tgrant.h"
#include "mpeer.h"
#include "mgmtDb.h"
#include "mgmtDClient.h"
#include "mgmtDServer.h"
#include "tgrant.h"
#include "mgmtMnode.h"
#include "mgmtSdb.h"
#include "mgmtVgroup.h"
#include "mgmtUser.h"
...
...
@@ -117,8 +117,8 @@ int32_t mgmtStartSystem() {
return
-
1
;
}
if
(
m
gmtInitMnodes
()
<
0
)
{
mError
(
"failed to init m
node
s"
);
if
(
m
peerInit
()
<
0
)
{
mError
(
"failed to init m
peer
s"
);
return
-
1
;
}
...
...
@@ -135,7 +135,7 @@ int32_t mgmtStartSystem() {
void
mgmtStopSystem
()
{
if
(
m
gmt
IsMaster
())
{
if
(
m
peer
IsMaster
())
{
mTrace
(
"it is a master mgmt node, it could not be stopped"
);
return
;
}
...
...
@@ -147,7 +147,7 @@ void mgmtStopSystem() {
void
mgmtCleanUpSystem
()
{
mPrint
(
"starting to clean up mgmt"
);
grantCleanUp
();
m
gmtCleanupMnodes
();
m
peerCleanup
();
balanceCleanUp
();
mgmtCleanUpShell
();
mgmtCleanupDClient
();
...
...
src/mnode/src/mgmtMnode.c
浏览文件 @
78f7134e
...
...
@@ -17,7 +17,7 @@
#include "os.h"
#include "taoserror.h"
#include "trpc.h"
#include "m
gmtMnode
.h"
#include "m
peer
.h"
#include "mgmtSdb.h"
#include "mgmtShell.h"
#include "mgmtUser.h"
...
...
@@ -28,7 +28,7 @@ static SMnodeObj tsMnodeObj = {0};
static
int32_t
mgmtGetMnodeMeta
(
STableMetaMsg
*
pMeta
,
SShowObj
*
pShow
,
void
*
pConn
);
static
int32_t
mgmtRetrieveMnodes
(
SShowObj
*
pShow
,
char
*
data
,
int32_t
rows
,
void
*
pConn
);
int32_t
m
gmtInitMnodes
()
{
int32_t
m
peerInit
()
{
mgmtAddShellShowMetaHandle
(
TSDB_MGMT_TABLE_MNODE
,
mgmtGetMnodeMeta
);
mgmtAddShellShowRetrieveHandle
(
TSDB_MGMT_TABLE_MNODE
,
mgmtRetrieveMnodes
);
...
...
@@ -38,16 +38,14 @@ int32_t mgmtInitMnodes() {
tsMnodeObj
.
createdTime
=
taosGetTimestampMs
();
tsMnodeObj
.
role
=
TSDB_MN_ROLE_MASTER
;
tsMnodeObj
.
status
=
TSDB_MN_STATUS_SERVING
;
tsMnodeObj
.
numOfMnodes
=
1
;
sprintf
(
tsMnodeObj
.
mnodeName
,
"%d"
,
tsMnodeObj
.
mnodeId
);
return
TSDB_CODE_SUCCESS
;
}
void
m
gmtCleanupMnodes
()
{}
bool
m
gmt
InServerStatus
()
{
return
tsMnodeObj
.
status
==
TSDB_MN_STATUS_SERVING
;
}
bool
m
gmt
IsMaster
()
{
return
tsMnodeObj
.
role
==
TSDB_MN_ROLE_MASTER
;
}
bool
m
gmt
CheckRedirect
(
void
*
thandle
)
{
return
false
;
}
void
m
peerCleanup
()
{}
bool
m
peer
InServerStatus
()
{
return
tsMnodeObj
.
status
==
TSDB_MN_STATUS_SERVING
;
}
bool
m
peer
IsMaster
()
{
return
tsMnodeObj
.
role
==
TSDB_MN_ROLE_MASTER
;
}
bool
m
peer
CheckRedirect
(
void
*
thandle
)
{
return
false
;
}
static
int32_t
mgmtGetMnodesNum
()
{
return
1
;
...
...
@@ -190,14 +188,14 @@ static int32_t mgmtRetrieveMnodes(SShowObj *pShow, char *data, int32_t rows, voi
return
numOfRows
;
}
void
m
gmtGetMnode
PrivateIpList
(
SRpcIpSet
*
ipSet
)
{
void
m
peerGet
PrivateIpList
(
SRpcIpSet
*
ipSet
)
{
ipSet
->
inUse
=
0
;
ipSet
->
port
=
htons
(
tsMnodeDnodePort
);
ipSet
->
numOfIps
=
1
;
ipSet
->
ip
[
0
]
=
htonl
(
tsMnodeObj
.
privateIp
);
}
void
m
gmtGetMnode
PublicIpList
(
SRpcIpSet
*
ipSet
)
{
void
m
peerGet
PublicIpList
(
SRpcIpSet
*
ipSet
)
{
ipSet
->
inUse
=
0
;
ipSet
->
port
=
htons
(
tsMnodeDnodePort
);
ipSet
->
numOfIps
=
1
;
...
...
src/mnode/src/mgmtProfile.c
浏览文件 @
78f7134e
...
...
@@ -19,7 +19,7 @@
#include "taccount.h"
#include "tcluster.h"
#include "mgmtDb.h"
#include "m
gmtMnode
.h"
#include "m
peer
.h"
#include "mgmtProfile.h"
#include "mgmtShell.h"
#include "mgmtTable.h"
...
...
@@ -681,7 +681,7 @@ int32_t mgmtRetrieveConns(SShowObj *pShow, char *data, int32_t rows, void *pConn
void
mgmtProcessKillQueryMsg
(
SQueuedMsg
*
pMsg
)
{
SRpcMsg
rpcRsp
=
{.
handle
=
pMsg
->
thandle
,
.
pCont
=
NULL
,
.
contLen
=
0
,
.
code
=
0
,
.
msgType
=
0
};
if
(
m
gmt
CheckRedirect
(
pMsg
->
thandle
))
return
;
if
(
m
peer
CheckRedirect
(
pMsg
->
thandle
))
return
;
SUserObj
*
pUser
=
mgmtGetUserFromConn
(
pMsg
->
thandle
,
NULL
);
if
(
pUser
==
NULL
)
{
...
...
@@ -705,7 +705,7 @@ void mgmtProcessKillQueryMsg(SQueuedMsg *pMsg) {
void
mgmtProcessKillStreamMsg
(
SQueuedMsg
*
pMsg
)
{
SRpcMsg
rpcRsp
=
{.
handle
=
pMsg
->
thandle
,
.
pCont
=
NULL
,
.
contLen
=
0
,
.
code
=
0
,
.
msgType
=
0
};
if
(
m
gmt
CheckRedirect
(
pMsg
->
thandle
))
return
;
if
(
m
peer
CheckRedirect
(
pMsg
->
thandle
))
return
;
SUserObj
*
pUser
=
mgmtGetUserFromConn
(
pMsg
->
thandle
,
NULL
);
if
(
pUser
==
NULL
)
{
...
...
@@ -729,7 +729,7 @@ void mgmtProcessKillStreamMsg(SQueuedMsg *pMsg) {
void
mgmtProcessKillConnectionMsg
(
SQueuedMsg
*
pMsg
)
{
SRpcMsg
rpcRsp
=
{.
handle
=
pMsg
->
thandle
,
.
pCont
=
NULL
,
.
contLen
=
0
,
.
code
=
0
,
.
msgType
=
0
};
if
(
m
gmt
CheckRedirect
(
pMsg
->
thandle
))
return
;
if
(
m
peer
CheckRedirect
(
pMsg
->
thandle
))
return
;
SUserObj
*
pUser
=
mgmtGetUserFromConn
(
pMsg
->
thandle
,
NULL
);
if
(
pUser
==
NULL
)
{
...
...
src/mnode/src/mgmtShell.c
浏览文件 @
78f7134e
...
...
@@ -27,7 +27,7 @@
#include "mgmtDb.h"
#include "tcluster.h"
#include "tgrant.h"
#include "m
gmtMnode
.h"
#include "m
peer
.h"
#include "mgmtProfile.h"
#include "mgmtSdb.h"
#include "mgmtShell.h"
...
...
@@ -142,14 +142,14 @@ static void mgmtProcessMsgFromShell(SRpcMsg *rpcMsg) {
return
;
}
if
(
m
gmt
CheckRedirect
(
rpcMsg
->
handle
))
{
if
(
m
peer
CheckRedirect
(
rpcMsg
->
handle
))
{
// rpcSendRedirectRsp(rpcMsg->handle, mgmtGetMnodeIpListForRedirect());
mgmtSendSimpleResp
(
rpcMsg
->
handle
,
TSDB_CODE_NO_MASTER
);
rpcFreeCont
(
rpcMsg
->
pCont
);
return
;
}
if
(
!
m
gmt
InServerStatus
())
{
if
(
!
m
peer
InServerStatus
())
{
mgmtProcessMsgWhileNotReady
(
rpcMsg
);
rpcFreeCont
(
rpcMsg
->
pCont
);
return
;
...
...
@@ -337,9 +337,9 @@ static void mgmtProcessHeartBeatMsg(SQueuedMsg *pMsg) {
}
if
(
pMsg
->
usePublicIp
)
{
m
gmtGetMnode
PublicIpList
(
&
pHBRsp
->
ipList
);
m
peerGet
PublicIpList
(
&
pHBRsp
->
ipList
);
}
else
{
m
gmtGetMnode
PrivateIpList
(
&
pHBRsp
->
ipList
);
m
peerGet
PrivateIpList
(
&
pHBRsp
->
ipList
);
}
/*
...
...
@@ -423,9 +423,9 @@ static void mgmtProcessConnectMsg(SQueuedMsg *pMsg) {
pConnectRsp
->
superAuth
=
pUser
->
superAuth
;
if
(
pMsg
->
usePublicIp
)
{
m
gmtGetMnode
PublicIpList
(
&
pConnectRsp
->
ipList
);
m
peerGet
PublicIpList
(
&
pConnectRsp
->
ipList
);
}
else
{
m
gmtGetMnode
PrivateIpList
(
&
pConnectRsp
->
ipList
);
m
peerGet
PrivateIpList
(
&
pConnectRsp
->
ipList
);
}
connect_over:
...
...
src/mnode/src/mgmtTable.c
浏览文件 @
78f7134e
...
...
@@ -35,7 +35,7 @@
#include "tcluster.h"
#include "mgmtDServer.h"
#include "tgrant.h"
#include "m
gmtMnode
.h"
#include "m
peer
.h"
#include "mgmtProfile.h"
#include "mgmtSdb.h"
#include "mgmtShell.h"
...
...
@@ -1650,8 +1650,6 @@ static SChildTableObj* mgmtGetTableByPos(uint32_t dnodeId, int32_t vnode, int32_
}
static
void
mgmtProcessTableCfgMsg
(
SRpcMsg
*
rpcMsg
)
{
if
(
mgmtCheckRedirect
(
rpcMsg
->
handle
))
return
;
SDMConfigTableMsg
*
pCfg
=
(
SDMConfigTableMsg
*
)
rpcMsg
->
pCont
;
pCfg
->
dnode
=
htonl
(
pCfg
->
dnode
);
pCfg
->
vnode
=
htonl
(
pCfg
->
vnode
);
...
...
src/mnode/src/mgmtUser.c
浏览文件 @
78f7134e
...
...
@@ -20,7 +20,7 @@
#include "tutil.h"
#include "taccount.h"
#include "tgrant.h"
#include "m
gmtMnode
.h"
#include "m
peer
.h"
#include "mgmtSdb.h"
#include "mgmtShell.h"
#include "mgmtUser.h"
...
...
@@ -314,8 +314,6 @@ SUserObj *mgmtGetUserFromConn(void *pConn, bool *usePublicIp) {
}
static
void
mgmtProcessCreateUserMsg
(
SQueuedMsg
*
pMsg
)
{
if
(
mgmtCheckRedirect
(
pMsg
->
thandle
))
return
;
int32_t
code
;
SUserObj
*
pUser
=
pMsg
->
pUser
;
...
...
@@ -333,8 +331,6 @@ static void mgmtProcessCreateUserMsg(SQueuedMsg *pMsg) {
}
static
void
mgmtProcessAlterUserMsg
(
SQueuedMsg
*
pMsg
)
{
if
(
mgmtCheckRedirect
(
pMsg
->
thandle
))
return
;
int32_t
code
;
SUserObj
*
pOperUser
=
pMsg
->
pUser
;
...
...
@@ -427,8 +423,6 @@ static void mgmtProcessAlterUserMsg(SQueuedMsg *pMsg) {
}
static
void
mgmtProcessDropUserMsg
(
SQueuedMsg
*
pMsg
)
{
if
(
mgmtCheckRedirect
(
pMsg
->
thandle
))
return
;
int32_t
code
;
SUserObj
*
pOperUser
=
pMsg
->
pUser
;
...
...
src/mnode/src/mgmtVgroup.c
浏览文件 @
78f7134e
...
...
@@ -24,7 +24,7 @@
#include "mgmtDb.h"
#include "mgmtDClient.h"
#include "mgmtDServer.h"
#include "m
gmtMnode
.h"
#include "m
peer
.h"
#include "mgmtProfile.h"
#include "mgmtSdb.h"
#include "mgmtShell.h"
...
...
@@ -663,8 +663,6 @@ static void mgmtProcessDropVnodeRsp(SRpcMsg *rpcMsg) {
}
static
void
mgmtProcessVnodeCfgMsg
(
SRpcMsg
*
rpcMsg
)
{
if
(
mgmtCheckRedirect
(
rpcMsg
->
handle
))
return
;
SDMConfigVnodeMsg
*
pCfg
=
(
SDMConfigVnodeMsg
*
)
rpcMsg
->
pCont
;
pCfg
->
dnodeId
=
htonl
(
pCfg
->
dnodeId
);
pCfg
->
vgId
=
htonl
(
pCfg
->
vgId
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录