Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
王长生-AnH
TDengine
提交
7ac821f2
T
TDengine
项目概览
王长生-AnH
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
7ac821f2
编写于
5月 26, 2020
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-335] rename some defs
上级
3b54b745
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
227 addition
and
238 deletion
+227
-238
src/client/src/tscSQLParser.c
src/client/src/tscSQLParser.c
+2
-2
src/client/src/tscServer.c
src/client/src/tscServer.c
+1
-1
src/inc/taosmsg.h
src/inc/taosmsg.h
+17
-17
src/mnode/inc/mnodeDb.h
src/mnode/inc/mnodeDb.h
+1
-1
src/mnode/inc/mnodeProfile.h
src/mnode/inc/mnodeProfile.h
+1
-1
src/mnode/inc/mnodeShell.h
src/mnode/inc/mnodeShell.h
+1
-1
src/mnode/inc/mnodeTable.h
src/mnode/inc/mnodeTable.h
+1
-1
src/mnode/inc/mnodeUser.h
src/mnode/inc/mnodeUser.h
+1
-1
src/mnode/inc/mnodeVgroup.h
src/mnode/inc/mnodeVgroup.h
+1
-1
src/mnode/src/mnodeAcct.c
src/mnode/src/mnodeAcct.c
+6
-6
src/mnode/src/mnodeBalance.c
src/mnode/src/mnodeBalance.c
+6
-6
src/mnode/src/mnodeDb.c
src/mnode/src/mnodeDb.c
+14
-14
src/mnode/src/mnodeDnode.c
src/mnode/src/mnodeDnode.c
+16
-16
src/mnode/src/mnodeGrant.c
src/mnode/src/mnodeGrant.c
+1
-1
src/mnode/src/mnodeMain.c
src/mnode/src/mnodeMain.c
+12
-12
src/mnode/src/mnodeMgmt.c
src/mnode/src/mnodeMgmt.c
+9
-9
src/mnode/src/mnodeMnode.c
src/mnode/src/mnodeMnode.c
+9
-9
src/mnode/src/mnodeProfile.c
src/mnode/src/mnodeProfile.c
+17
-17
src/mnode/src/mnodeRead.c
src/mnode/src/mnodeRead.c
+3
-3
src/mnode/src/mnodeSdb.c
src/mnode/src/mnodeSdb.c
+5
-5
src/mnode/src/mnodeShow.c
src/mnode/src/mnodeShow.c
+54
-65
src/mnode/src/mnodeTable.c
src/mnode/src/mnodeTable.c
+16
-16
src/mnode/src/mnodeUser.c
src/mnode/src/mnodeUser.c
+9
-9
src/mnode/src/mnodeVgroup.c
src/mnode/src/mnodeVgroup.c
+12
-12
src/mnode/src/mnodeWrite.c
src/mnode/src/mnodeWrite.c
+12
-12
未找到文件。
src/client/src/tscSQLParser.c
浏览文件 @
7ac821f2
...
...
@@ -2175,7 +2175,7 @@ int32_t setShowInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) {
*/
SShowInfo
*
pShowInfo
=
&
pInfo
->
pDCLInfo
->
showOpt
;
int16_t
showType
=
pShowInfo
->
showType
;
if
(
showType
==
TSDB_M
GMT_TABLE_TABLE
||
showType
==
TSDB_MGMT_TABLE_METRIC
||
showType
==
TSDB_MGMT
_TABLE_VGROUP
)
{
if
(
showType
==
TSDB_M
NODE_TABLE_TABLE
||
showType
==
TSDB_MNODE_TABLE_METRIC
||
showType
==
TSDB_MNODE
_TABLE_VGROUP
)
{
// db prefix in tagCond, show table conds in payload
SSQLToken
*
pDbPrefixToken
=
&
pShowInfo
->
prefix
;
if
(
pDbPrefixToken
->
type
!=
0
)
{
...
...
@@ -2212,7 +2212,7 @@ int32_t setShowInfo(SSqlObj* pSql, struct SSqlInfo* pInfo) {
return
invalidSqlErrMsg
(
tscGetErrorMsgPayload
(
pCmd
),
msg2
);
}
}
}
else
if
(
showType
==
TSDB_M
GMT
_TABLE_VNODES
)
{
}
else
if
(
showType
==
TSDB_M
NODE
_TABLE_VNODES
)
{
if
(
pShowInfo
->
prefix
.
type
==
0
)
{
return
invalidSqlErrMsg
(
tscGetErrorMsgPayload
(
pCmd
),
"No specified ip of dnode"
);
}
...
...
src/client/src/tscServer.c
浏览文件 @
7ac821f2
...
...
@@ -1116,7 +1116,7 @@ int32_t tscBuildShowMsg(SSqlObj *pSql, SSqlInfo *pInfo) {
SShowInfo
*
pShowInfo
=
&
pInfo
->
pDCLInfo
->
showOpt
;
pShowMsg
->
type
=
pShowInfo
->
showType
;
if
(
pShowInfo
->
showType
!=
TSDB_M
GMT
_TABLE_VNODES
)
{
if
(
pShowInfo
->
showType
!=
TSDB_M
NODE
_TABLE_VNODES
)
{
SSQLToken
*
pPattern
=
&
pShowInfo
->
pattern
;
if
(
pPattern
->
type
>
0
)
{
// only show tables support wildcard query
strncpy
(
pShowMsg
->
payload
,
pPattern
->
z
,
pPattern
->
n
);
...
...
src/inc/taosmsg.h
浏览文件 @
7ac821f2
...
...
@@ -121,23 +121,23 @@ TAOS_DEFINE_MESSAGE_TYPE( TSDB_MSG_TYPE_DUMMY14, "dummy14" )
#define TSDB_IE_TYPE_DNODE_STATE 7
enum
_mgmt_table
{
TSDB_M
GMT
_TABLE_ACCT
,
TSDB_M
GMT
_TABLE_USER
,
TSDB_M
GMT
_TABLE_DB
,
TSDB_M
GMT
_TABLE_TABLE
,
TSDB_M
GMT
_TABLE_DNODE
,
TSDB_M
GMT
_TABLE_MNODE
,
TSDB_M
GMT
_TABLE_VGROUP
,
TSDB_M
GMT
_TABLE_METRIC
,
TSDB_M
GMT
_TABLE_MODULE
,
TSDB_M
GMT
_TABLE_QUERIES
,
TSDB_M
GMT
_TABLE_STREAMS
,
TSDB_M
GMT
_TABLE_CONFIGS
,
TSDB_M
GMT
_TABLE_CONNS
,
TSDB_M
GMT
_TABLE_SCORES
,
TSDB_M
GMT
_TABLE_GRANTS
,
TSDB_M
GMT
_TABLE_VNODES
,
TSDB_M
GMT
_TABLE_MAX
,
TSDB_M
NODE
_TABLE_ACCT
,
TSDB_M
NODE
_TABLE_USER
,
TSDB_M
NODE
_TABLE_DB
,
TSDB_M
NODE
_TABLE_TABLE
,
TSDB_M
NODE
_TABLE_DNODE
,
TSDB_M
NODE
_TABLE_MNODE
,
TSDB_M
NODE
_TABLE_VGROUP
,
TSDB_M
NODE
_TABLE_METRIC
,
TSDB_M
NODE
_TABLE_MODULE
,
TSDB_M
NODE
_TABLE_QUERIES
,
TSDB_M
NODE
_TABLE_STREAMS
,
TSDB_M
NODE
_TABLE_CONFIGS
,
TSDB_M
NODE
_TABLE_CONNS
,
TSDB_M
NODE
_TABLE_SCORES
,
TSDB_M
NODE
_TABLE_GRANTS
,
TSDB_M
NODE
_TABLE_VNODES
,
TSDB_M
NODE
_TABLE_MAX
,
};
#define TSDB_ALTER_TABLE_ADD_TAG_COLUMN 1
...
...
src/mnode/inc/mnodeDb.h
浏览文件 @
7ac821f2
...
...
@@ -20,7 +20,7 @@
extern
"C"
{
#endif
#include "m
gmt
Def.h"
#include "m
node
Def.h"
enum
_TSDB_DB_STATUS
{
TSDB_DB_STATUS_READY
,
...
...
src/mnode/inc/mnodeProfile.h
浏览文件 @
7ac821f2
...
...
@@ -19,7 +19,7 @@
#ifdef __cplusplus
extern
"C"
{
#endif
#include "m
gmt
Def.h"
#include "m
node
Def.h"
int32_t
mgmtInitProfile
();
void
mgmtCleanUpProfile
();
...
...
src/mnode/inc/mnodeShell.h
浏览文件 @
7ac821f2
...
...
@@ -19,7 +19,7 @@
#ifdef __cplusplus
extern
"C"
{
#endif
#include "m
gmt
Def.h"
#include "m
node
Def.h"
int32_t
mgmtInitShell
();
void
mgmtCleanUpShell
();
...
...
src/mnode/inc/mnodeTable.h
浏览文件 @
7ac821f2
...
...
@@ -20,7 +20,7 @@
extern
"C"
{
#endif
#include "m
gmt
Def.h"
#include "m
node
Def.h"
int32_t
mgmtInitTables
();
void
mgmtCleanUpTables
();
...
...
src/mnode/inc/mnodeUser.h
浏览文件 @
7ac821f2
...
...
@@ -19,7 +19,7 @@
#ifdef __cplusplus
extern
"C"
{
#endif
#include "m
gmt
Def.h"
#include "m
node
Def.h"
int32_t
mgmtInitUsers
();
void
mgmtCleanUpUsers
();
...
...
src/mnode/inc/mnodeVgroup.h
浏览文件 @
7ac821f2
...
...
@@ -20,7 +20,7 @@
extern
"C"
{
#endif
#include "m
gmt
Def.h"
#include "m
node
Def.h"
int32_t
mgmtInitVgroups
();
void
mgmtCleanUpVgroups
();
...
...
src/mnode/src/mnodeAcct.c
浏览文件 @
7ac821f2
...
...
@@ -19,12 +19,12 @@
#include "ttime.h"
#include "tutil.h"
#include "dnode.h"
#include "m
gmt
Def.h"
#include "m
gmt
Int.h"
#include "m
gmt
Acct.h"
#include "m
gmt
Db.h"
#include "m
gmt
Sdb.h"
#include "m
gmt
User.h"
#include "m
node
Def.h"
#include "m
node
Int.h"
#include "m
node
Acct.h"
#include "m
node
Db.h"
#include "m
node
Sdb.h"
#include "m
node
User.h"
void
*
tsAcctSdb
=
NULL
;
static
int32_t
tsAcctUpdateSize
;
...
...
src/mnode/src/mnodeBalance.c
浏览文件 @
7ac821f2
...
...
@@ -18,12 +18,12 @@
#include "trpc.h"
#include "tbalance.h"
#include "tglobal.h"
#include "m
gmt
Def.h"
#include "m
gmt
Int.h"
#include "m
gmt
Mnode.h"
#include "m
gmt
Dnode.h"
#include "m
gmt
Sdb.h"
#include "m
gmt
Vgroup.h"
#include "m
node
Def.h"
#include "m
node
Int.h"
#include "m
node
Mnode.h"
#include "m
node
Dnode.h"
#include "m
node
Sdb.h"
#include "m
node
Vgroup.h"
#ifndef _SYNC
...
...
src/mnode/src/mnodeDb.c
浏览文件 @
7ac821f2
...
...
@@ -24,18 +24,18 @@
#include "tname.h"
#include "tbalance.h"
#include "tdataformat.h"
#include "m
gmt
Def.h"
#include "m
gmt
Int.h"
#include "m
gmt
Acct.h"
#include "m
gmt
Db.h"
#include "m
gmt
Dnode.h"
#include "m
gmt
Mnode.h"
#include "m
gmt
Shell.h"
#include "m
gmt
Profile.h"
#include "m
gmt
Sdb.h"
#include "m
gmt
Table.h"
#include "m
gmt
User.h"
#include "m
gmt
Vgroup.h"
#include "m
node
Def.h"
#include "m
node
Int.h"
#include "m
node
Acct.h"
#include "m
node
Db.h"
#include "m
node
Dnode.h"
#include "m
node
Mnode.h"
#include "m
node
Shell.h"
#include "m
node
Profile.h"
#include "m
node
Sdb.h"
#include "m
node
Table.h"
#include "m
node
User.h"
#include "m
node
Vgroup.h"
static
void
*
tsDbSdb
=
NULL
;
static
int32_t
tsDbUpdateSize
;
...
...
@@ -150,8 +150,8 @@ int32_t mgmtInitDbs() {
mgmtAddShellMsgHandle
(
TSDB_MSG_TYPE_CM_CREATE_DB
,
mgmtProcessCreateDbMsg
);
mgmtAddShellMsgHandle
(
TSDB_MSG_TYPE_CM_ALTER_DB
,
mgmtProcessAlterDbMsg
);
mgmtAddShellMsgHandle
(
TSDB_MSG_TYPE_CM_DROP_DB
,
mgmtProcessDropDbMsg
);
mnodeAddShowMetaHandle
(
TSDB_M
GMT
_TABLE_DB
,
mgmtGetDbMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
GMT
_TABLE_DB
,
mgmtRetrieveDbs
);
mnodeAddShowMetaHandle
(
TSDB_M
NODE
_TABLE_DB
,
mgmtGetDbMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
NODE
_TABLE_DB
,
mgmtRetrieveDbs
);
mTrace
(
"table:dbs table is created"
);
return
0
;
...
...
src/mnode/src/mnodeDnode.c
浏览文件 @
7ac821f2
...
...
@@ -26,14 +26,14 @@
#include "tsync.h"
#include "tdataformat.h"
#include "dnode.h"
#include "m
gmt
Def.h"
#include "m
gmt
Int.h"
#include "m
gmt
Dnode.h"
#include "m
gmt
Mnode.h"
#include "m
gmt
Sdb.h"
#include "m
gmt
Shell.h"
#include "m
gmt
User.h"
#include "m
gmt
Vgroup.h"
#include "m
node
Def.h"
#include "m
node
Int.h"
#include "m
node
Dnode.h"
#include "m
node
Mnode.h"
#include "m
node
Sdb.h"
#include "m
node
Shell.h"
#include "m
node
User.h"
#include "m
node
Vgroup.h"
int32_t
tsAccessSquence
=
0
;
static
void
*
tsDnodeSdb
=
NULL
;
...
...
@@ -153,14 +153,14 @@ int32_t mgmtInitDnodes() {
mgmtAddShellMsgHandle
(
TSDB_MSG_TYPE_CM_CONFIG_DNODE
,
mgmtProcessCfgDnodeMsg
);
dnodeAddClientRspHandle
(
TSDB_MSG_TYPE_MD_CONFIG_DNODE_RSP
,
mgmtProcessCfgDnodeMsgRsp
);
dnodeAddServerMsgHandle
(
TSDB_MSG_TYPE_DM_STATUS
,
mgmtProcessDnodeStatusMsg
);
mnodeAddShowMetaHandle
(
TSDB_M
GMT
_TABLE_MODULE
,
mgmtGetModuleMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
GMT
_TABLE_MODULE
,
mgmtRetrieveModules
);
mnodeAddShowMetaHandle
(
TSDB_M
GMT
_TABLE_CONFIGS
,
mgmtGetConfigMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
GMT
_TABLE_CONFIGS
,
mgmtRetrieveConfigs
);
mnodeAddShowMetaHandle
(
TSDB_M
GMT
_TABLE_VNODES
,
mgmtGetVnodeMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
GMT
_TABLE_VNODES
,
mgmtRetrieveVnodes
);
mnodeAddShowMetaHandle
(
TSDB_M
GMT
_TABLE_DNODE
,
mgmtGetDnodeMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
GMT
_TABLE_DNODE
,
mgmtRetrieveDnodes
);
mnodeAddShowMetaHandle
(
TSDB_M
NODE
_TABLE_MODULE
,
mgmtGetModuleMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
NODE
_TABLE_MODULE
,
mgmtRetrieveModules
);
mnodeAddShowMetaHandle
(
TSDB_M
NODE
_TABLE_CONFIGS
,
mgmtGetConfigMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
NODE
_TABLE_CONFIGS
,
mgmtRetrieveConfigs
);
mnodeAddShowMetaHandle
(
TSDB_M
NODE
_TABLE_VNODES
,
mgmtGetVnodeMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
NODE
_TABLE_VNODES
,
mgmtRetrieveVnodes
);
mnodeAddShowMetaHandle
(
TSDB_M
NODE
_TABLE_DNODE
,
mgmtGetDnodeMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
NODE
_TABLE_DNODE
,
mgmtRetrieveDnodes
);
mTrace
(
"table:dnodes table is created"
);
return
0
;
...
...
src/mnode/src/mnodeGrant.c
浏览文件 @
7ac821f2
...
...
@@ -18,7 +18,7 @@
#include "os.h"
#include "taoserror.h"
#include "tgrant.h"
#include "m
gmt
Int.h"
#include "m
node
Int.h"
int32_t
grantInit
()
{
return
TSDB_CODE_SUCCESS
;
}
void
grantCleanUp
()
{}
...
...
src/mnode/src/mnodeMain.c
浏览文件 @
7ac821f2
...
...
@@ -22,18 +22,18 @@
#include "ttimer.h"
#include "tglobal.h"
#include "dnode.h"
#include "m
gmt
Def.h"
#include "m
gmt
Int.h"
#include "m
gmt
Server.h"
#include "m
gmt
Acct.h"
#include "m
gmt
Dnode.h"
#include "m
gmt
Mnode.h"
#include "m
gmt
Db.h"
#include "m
gmt
Sdb.h"
#include "m
gmt
Vgroup.h"
#include "m
gmt
User.h"
#include "m
gmt
Table.h"
#include "m
gmt
Shell.h"
#include "m
node
Def.h"
#include "m
node
Int.h"
#include "m
node
Server.h"
#include "m
node
Acct.h"
#include "m
node
Dnode.h"
#include "m
node
Mnode.h"
#include "m
node
Db.h"
#include "m
node
Sdb.h"
#include "m
node
Vgroup.h"
#include "m
node
User.h"
#include "m
node
Table.h"
#include "m
node
Shell.h"
static
void
*
tsMgmtTmr
;
static
bool
tsMgmtIsRunning
=
false
;
...
...
src/mnode/src/mnodeMgmt.c
浏览文件 @
7ac821f2
...
...
@@ -24,15 +24,15 @@
#include "tbalance.h"
#include "tglobal.h"
#include "dnode.h"
#include "m
gmt
Def.h"
#include "m
gmt
Int.h"
#include "m
gmt
Db.h"
#include "m
gmt
Mnode.h"
#include "m
gmt
Profile.h"
#include "m
gmt
Shell.h"
#include "m
gmt
Sdb.h"
#include "m
gmt
Table.h"
#include "m
gmt
Vgroup.h"
#include "m
node
Def.h"
#include "m
node
Int.h"
#include "m
node
Db.h"
#include "m
node
Mnode.h"
#include "m
node
Profile.h"
#include "m
node
Shell.h"
#include "m
node
Sdb.h"
#include "m
node
Table.h"
#include "m
node
Vgroup.h"
static
void
(
*
tsMnodeProcessMgmtMsgFp
[
TSDB_MSG_TYPE_MAX
])(
SMnodeMsg
*
);
...
...
src/mnode/src/mnodeMnode.c
浏览文件 @
7ac821f2
...
...
@@ -23,13 +23,13 @@
#include "ttime.h"
#include "tsocket.h"
#include "tdataformat.h"
#include "m
gmt
Def.h"
#include "m
gmt
Int.h"
#include "m
gmt
Mnode.h"
#include "m
gmt
Dnode.h"
#include "m
gmt
Sdb.h"
#include "m
gmt
Shell.h"
#include "m
gmt
User.h"
#include "m
node
Def.h"
#include "m
node
Int.h"
#include "m
node
Mnode.h"
#include "m
node
Dnode.h"
#include "m
node
Sdb.h"
#include "m
node
Shell.h"
#include "m
node
User.h"
static
void
*
tsMnodeSdb
=
NULL
;
static
int32_t
tsMnodeUpdateSize
=
0
;
...
...
@@ -154,8 +154,8 @@ int32_t mgmtInitMnodes() {
return
-
1
;
}
mnodeAddShowMetaHandle
(
TSDB_M
GMT
_TABLE_MNODE
,
mgmtGetMnodeMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
GMT
_TABLE_MNODE
,
mgmtRetrieveMnodes
);
mnodeAddShowMetaHandle
(
TSDB_M
NODE
_TABLE_MNODE
,
mgmtGetMnodeMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
NODE
_TABLE_MNODE
,
mgmtRetrieveMnodes
);
mTrace
(
"table:mnodes table is created"
);
return
TSDB_CODE_SUCCESS
;
...
...
src/mnode/src/mnodeProfile.c
浏览文件 @
7ac821f2
...
...
@@ -18,17 +18,17 @@
#include "taosmsg.h"
#include "taoserror.h"
#include "tutil.h"
#include "m
gmt
Def.h"
#include "m
gmt
Int.h"
#include "m
gmt
Acct.h"
#include "m
gmt
Dnode.h"
#include "m
gmt
Db.h"
#include "m
gmt
Mnode.h"
#include "m
gmt
Profile.h"
#include "m
gmt
Shell.h"
#include "m
gmt
Table.h"
#include "m
gmt
User.h"
#include "m
gmt
Vgroup.h"
#include "m
node
Def.h"
#include "m
node
Int.h"
#include "m
node
Acct.h"
#include "m
node
Dnode.h"
#include "m
node
Db.h"
#include "m
node
Mnode.h"
#include "m
node
Profile.h"
#include "m
node
Shell.h"
#include "m
node
Table.h"
#include "m
node
User.h"
#include "m
node
Vgroup.h"
int32_t
mgmtSaveQueryStreamList
(
SCMHeartBeatMsg
*
pHBMsg
);
...
...
@@ -745,12 +745,12 @@ void mgmtProcessKillConnectionMsg(SMnodeMsg *pMsg) {
}
int32_t
mgmtInitProfile
()
{
mnodeAddShowMetaHandle
(
TSDB_M
GMT
_TABLE_QUERIES
,
mgmtGetQueryMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
GMT
_TABLE_QUERIES
,
mgmtRetrieveQueries
);
mnodeAddShowMetaHandle
(
TSDB_M
GMT
_TABLE_CONNS
,
mgmtGetConnsMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
GMT
_TABLE_CONNS
,
mgmtRetrieveConns
);
mnodeAddShowMetaHandle
(
TSDB_M
GMT
_TABLE_STREAMS
,
mgmtGetStreamMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
GMT
_TABLE_STREAMS
,
mgmtRetrieveStreams
);
mnodeAddShowMetaHandle
(
TSDB_M
NODE
_TABLE_QUERIES
,
mgmtGetQueryMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
NODE
_TABLE_QUERIES
,
mgmtRetrieveQueries
);
mnodeAddShowMetaHandle
(
TSDB_M
NODE
_TABLE_CONNS
,
mgmtGetConnsMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
NODE
_TABLE_CONNS
,
mgmtRetrieveConns
);
mnodeAddShowMetaHandle
(
TSDB_M
NODE
_TABLE_STREAMS
,
mgmtGetStreamMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
NODE
_TABLE_STREAMS
,
mgmtRetrieveStreams
);
mgmtAddShellMsgHandle
(
TSDB_MSG_TYPE_CM_KILL_QUERY
,
mgmtProcessKillQueryMsg
);
mgmtAddShellMsgHandle
(
TSDB_MSG_TYPE_CM_KILL_STREAM
,
mgmtProcessKillStreamMsg
);
mgmtAddShellMsgHandle
(
TSDB_MSG_TYPE_CM_KILL_CONN
,
mgmtProcessKillConnectionMsg
);
...
...
src/mnode/src/mnodeRead.c
浏览文件 @
7ac821f2
...
...
@@ -23,13 +23,13 @@
#include "tglobal.h"
#include "mnode.h"
#include "dnode.h"
#include "m
gmt
Def.h"
#include "m
node
Def.h"
#include "mgmtInt.h"
#include "mgmtServer.h"
#include "m
gmt
Acct.h"
#include "m
node
Acct.h"
#include "mgmtDnode.h"
#include "mgmtMnode.h"
#include "m
gmt
Db.h"
#include "m
node
Db.h"
#include "mgmtSdb.h"
#include "mgmtVgroup.h"
#include "mgmtUser.h"
...
...
src/mnode/src/mnodeSdb.c
浏览文件 @
7ac821f2
...
...
@@ -25,11 +25,11 @@
#include "tsync.h"
#include "tglobal.h"
#include "dnode.h"
#include "m
gmt
Def.h"
#include "m
gmt
Int.h"
#include "m
gmt
Mnode.h"
#include "m
gmt
Dnode.h"
#include "m
gmt
Sdb.h"
#include "m
node
Def.h"
#include "m
node
Int.h"
#include "m
node
Mnode.h"
#include "m
node
Dnode.h"
#include "m
node
Sdb.h"
typedef
enum
{
SDB_ACTION_INSERT
,
...
...
src/mnode/src/mnodeShow.c
浏览文件 @
7ac821f2
...
...
@@ -25,41 +25,41 @@
#include "tglobal.h"
#include "tcache.h"
#include "dnode.h"
#include "m
gmt
Def.h"
#include "m
gmt
Int.h"
#include "m
gmt
Acct.h"
#include "m
gmt
Db.h"
#include "m
gmt
Dnode.h"
#include "m
gmt
Mnode.h"
#include "m
gmt
Profile.h"
#include "m
gmt
Sdb.h"
#include "m
gmt
Shell.h"
#include "m
gmt
Table.h"
#include "m
gmt
User.h"
#include "m
gmt
Vgroup.h"
#include "m
node
Def.h"
#include "m
node
Int.h"
#include "m
node
Acct.h"
#include "m
node
Db.h"
#include "m
node
Dnode.h"
#include "m
node
Mnode.h"
#include "m
node
Profile.h"
#include "m
node
Sdb.h"
#include "m
node
Shell.h"
#include "m
node
Table.h"
#include "m
node
User.h"
#include "m
node
Vgroup.h"
typedef
int32_t
(
*
SShowMetaFp
)(
STableMetaMsg
*
pMeta
,
SShowObj
*
pShow
,
void
*
pConn
);
typedef
int32_t
(
*
SShowRetrieveFp
)(
SShowObj
*
pShow
,
char
*
data
,
int32_t
rows
,
void
*
pConn
);
static
void
m
gmt
ProcessShowMsg
(
SMnodeMsg
*
queuedMsg
);
static
void
m
gmt
ProcessRetrieveMsg
(
SMnodeMsg
*
queuedMsg
);
static
void
m
gmt
ProcessHeartBeatMsg
(
SMnodeMsg
*
queuedMsg
);
static
void
m
gmt
ProcessConnectMsg
(
SMnodeMsg
*
queuedMsg
);
static
void
m
gmt
ProcessUseMsg
(
SMnodeMsg
*
queuedMsg
);
static
void
m
gmt
FreeShowObj
(
void
*
data
);
static
void
m
node
ProcessShowMsg
(
SMnodeMsg
*
queuedMsg
);
static
void
m
node
ProcessRetrieveMsg
(
SMnodeMsg
*
queuedMsg
);
static
void
m
node
ProcessHeartBeatMsg
(
SMnodeMsg
*
queuedMsg
);
static
void
m
node
ProcessConnectMsg
(
SMnodeMsg
*
queuedMsg
);
static
void
m
node
ProcessUseMsg
(
SMnodeMsg
*
queuedMsg
);
static
void
m
node
FreeShowObj
(
void
*
data
);
static
void
*
tsQhandleCache
=
NULL
;
static
SShowMetaFp
tsMnodeShowMetaFp
[
TSDB_M
GMT
_TABLE_MAX
]
=
{
0
};
static
SShowRetrieveFp
tsMnodeShowRetrieveFp
[
TSDB_M
GMT
_TABLE_MAX
]
=
{
0
};
static
SShowMetaFp
tsMnodeShowMetaFp
[
TSDB_M
NODE
_TABLE_MAX
]
=
{
0
};
static
SShowRetrieveFp
tsMnodeShowRetrieveFp
[
TSDB_M
NODE
_TABLE_MAX
]
=
{
0
};
void
mnodeInitShow
()
{
mnodeAddReadMsgHandle
(
TSDB_MSG_TYPE_CM_SHOW
,
m
gmt
ProcessShowMsg
);
mnodeAddReadMsgHandle
(
TSDB_MSG_TYPE_CM_RETRIEVE
,
m
gmt
ProcessRetrieveMsg
);
mnodeAddReadMsgHandle
(
TSDB_MSG_TYPE_CM_HEARTBEAT
,
m
gmt
ProcessHeartBeatMsg
);
mnodeAddReadMsgHandle
(
TSDB_MSG_TYPE_CM_CONNECT
,
m
gmt
ProcessConnectMsg
);
mnodeAddReadMsgHandle
(
TSDB_MSG_TYPE_CM_USE_DB
,
m
gmt
ProcessUseMsg
);
mnodeAddReadMsgHandle
(
TSDB_MSG_TYPE_CM_SHOW
,
m
node
ProcessShowMsg
);
mnodeAddReadMsgHandle
(
TSDB_MSG_TYPE_CM_RETRIEVE
,
m
node
ProcessRetrieveMsg
);
mnodeAddReadMsgHandle
(
TSDB_MSG_TYPE_CM_HEARTBEAT
,
m
node
ProcessHeartBeatMsg
);
mnodeAddReadMsgHandle
(
TSDB_MSG_TYPE_CM_CONNECT
,
m
node
ProcessConnectMsg
);
mnodeAddReadMsgHandle
(
TSDB_MSG_TYPE_CM_USE_DB
,
m
node
ProcessUseMsg
);
tsQhandleCache
=
taosCacheInitWithCb
(
tsMgmtTmr
,
10
,
m
gmt
FreeShowObj
);
tsQhandleCache
=
taosCacheInitWithCb
(
tsMgmtTmr
,
10
,
m
node
FreeShowObj
);
}
void
mnodeCleanUpShow
()
{
...
...
@@ -77,48 +77,37 @@ void mnodeAddShowRetrieveHandle(uint8_t msgType, SShowRetrieveFp fp) {
tsMnodeShowRetrieveFp
[
msgType
]
=
fp
;
}
int32_t
mnodeProcessRead
(
int
msgType
,
void
*
pCont
,
int32_t
contLen
,
SRspRet
*
ret
)
{
if
(
vnodeProcessReadMsgFp
[
msgType
]
==
NULL
)
return
TSDB_CODE_MSG_NOT_PROCESSED
;
if
(
pVnode
->
status
==
TAOS_VN_STATUS_DELETING
||
pVnode
->
status
==
TAOS_VN_STATUS_CLOSING
)
return
TSDB_CODE_NOT_ACTIVE_VNODE
;
return
(
*
vnodeProcessReadMsgFp
[
msgType
])(
pVnode
,
pCont
,
contLen
,
ret
);
}
char
*
mgmtGetShowTypeStr
(
int32_t
showType
)
{
char
*
mnodeGetShowType
(
int32_t
showType
)
{
switch
(
showType
)
{
case
TSDB_M
GMT
_TABLE_ACCT
:
return
"show accounts"
;
case
TSDB_M
GMT
_TABLE_USER
:
return
"show users"
;
case
TSDB_M
GMT
_TABLE_DB
:
return
"show databases"
;
case
TSDB_M
GMT
_TABLE_TABLE
:
return
"show tables"
;
case
TSDB_M
GMT
_TABLE_DNODE
:
return
"show dnodes"
;
case
TSDB_M
GMT
_TABLE_MNODE
:
return
"show mnodes"
;
case
TSDB_M
GMT
_TABLE_VGROUP
:
return
"show vgroups"
;
case
TSDB_M
GMT
_TABLE_METRIC
:
return
"show stables"
;
case
TSDB_M
GMT
_TABLE_MODULE
:
return
"show modules"
;
case
TSDB_M
GMT
_TABLE_QUERIES
:
return
"show queries"
;
case
TSDB_M
GMT
_TABLE_STREAMS
:
return
"show streams"
;
case
TSDB_M
GMT
_TABLE_CONFIGS
:
return
"show configs"
;
case
TSDB_M
GMT
_TABLE_CONNS
:
return
"show connections"
;
case
TSDB_M
GMT
_TABLE_SCORES
:
return
"show scores"
;
case
TSDB_M
GMT
_TABLE_GRANTS
:
return
"show grants"
;
case
TSDB_M
GMT
_TABLE_VNODES
:
return
"show vnodes"
;
case
TSDB_M
NODE
_TABLE_ACCT
:
return
"show accounts"
;
case
TSDB_M
NODE
_TABLE_USER
:
return
"show users"
;
case
TSDB_M
NODE
_TABLE_DB
:
return
"show databases"
;
case
TSDB_M
NODE
_TABLE_TABLE
:
return
"show tables"
;
case
TSDB_M
NODE
_TABLE_DNODE
:
return
"show dnodes"
;
case
TSDB_M
NODE
_TABLE_MNODE
:
return
"show mnodes"
;
case
TSDB_M
NODE
_TABLE_VGROUP
:
return
"show vgroups"
;
case
TSDB_M
NODE
_TABLE_METRIC
:
return
"show stables"
;
case
TSDB_M
NODE
_TABLE_MODULE
:
return
"show modules"
;
case
TSDB_M
NODE
_TABLE_QUERIES
:
return
"show queries"
;
case
TSDB_M
NODE
_TABLE_STREAMS
:
return
"show streams"
;
case
TSDB_M
NODE
_TABLE_CONFIGS
:
return
"show configs"
;
case
TSDB_M
NODE
_TABLE_CONNS
:
return
"show connections"
;
case
TSDB_M
NODE
_TABLE_SCORES
:
return
"show scores"
;
case
TSDB_M
NODE
_TABLE_GRANTS
:
return
"show grants"
;
case
TSDB_M
NODE
_TABLE_VNODES
:
return
"show vnodes"
;
default:
return
"undefined"
;
}
}
static
void
m
gmt
ProcessShowMsg
(
SMnodeMsg
*
pMsg
)
{
static
void
m
node
ProcessShowMsg
(
SMnodeMsg
*
pMsg
)
{
SCMShowMsg
*
pShowMsg
=
pMsg
->
pCont
;
if
(
pShowMsg
->
type
>=
TSDB_M
GMT
_TABLE_MAX
)
{
if
(
pShowMsg
->
type
>=
TSDB_M
NODE
_TABLE_MAX
)
{
mgmtSendSimpleResp
(
pMsg
->
thandle
,
TSDB_CODE_INVALID_MSG_TYPE
);
return
;
}
if
(
!
tsMnodeShowMetaFp
[
pShowMsg
->
type
]
||
!
tsMnodeShowRetrieveFp
[
pShowMsg
->
type
])
{
mError
(
"show type:%s is not support"
,
m
gmtGetShowTypeStr
(
pShowMsg
->
type
));
mError
(
"show type:%s is not support"
,
m
nodeGetShowType
(
pShowMsg
->
type
));
mgmtSendSimpleResp
(
pMsg
->
thandle
,
TSDB_CODE_OPS_NOT_SUPPORT
);
return
;
}
...
...
@@ -141,7 +130,7 @@ static void mgmtProcessShowMsg(SMnodeMsg *pMsg) {
pShow
=
mgmtSaveQhandle
(
pShow
,
showObjSize
);
pShowRsp
->
qhandle
=
htobe64
((
uint64_t
)
pShow
);
mTrace
(
"show:%p, type:%s, start to get meta"
,
pShow
,
m
gmtGetShowTypeStr
(
pShowMsg
->
type
));
mTrace
(
"show:%p, type:%s, start to get meta"
,
pShow
,
m
nodeGetShowType
(
pShowMsg
->
type
));
int32_t
code
=
(
*
tsMnodeShowMetaFp
[
pShowMsg
->
type
])(
&
pShowRsp
->
tableMeta
,
pShow
,
pMsg
->
thandle
);
if
(
code
==
0
)
{
SRpcMsg
rpcRsp
=
{
...
...
@@ -152,7 +141,7 @@ static void mgmtProcessShowMsg(SMnodeMsg *pMsg) {
};
rpcSendResponse
(
&
rpcRsp
);
}
else
{
mError
(
"show:%p, type:%s, failed to get meta, reason:%s"
,
pShow
,
m
gmtGetShowTypeStr
(
pShowMsg
->
type
),
tstrerror
(
code
));
mError
(
"show:%p, type:%s, failed to get meta, reason:%s"
,
pShow
,
m
nodeGetShowType
(
pShowMsg
->
type
),
tstrerror
(
code
));
mgmtFreeQhandle
(
pShow
,
false
);
SRpcMsg
rpcRsp
=
{
.
handle
=
pMsg
->
thandle
,
...
...
@@ -162,7 +151,7 @@ static void mgmtProcessShowMsg(SMnodeMsg *pMsg) {
}
}
static
void
m
gmt
ProcessRetrieveMsg
(
SMnodeMsg
*
pMsg
)
{
static
void
m
node
ProcessRetrieveMsg
(
SMnodeMsg
*
pMsg
)
{
int32_t
rowsToRead
=
0
;
int32_t
size
=
0
;
int32_t
rowsRead
=
0
;
...
...
@@ -180,7 +169,7 @@ static void mgmtProcessRetrieveMsg(SMnodeMsg *pMsg) {
}
SShowObj
*
pShow
=
(
SShowObj
*
)
pRetrieve
->
qhandle
;
mTrace
(
"show:%p, type:%s, retrieve data"
,
pShow
,
m
gmtGetShowTypeStr
(
pShow
->
type
));
mTrace
(
"show:%p, type:%s, retrieve data"
,
pShow
,
m
nodeGetShowType
(
pShow
->
type
));
if
((
pRetrieve
->
free
&
TSDB_QUERY_TYPE_FREE_RESOURCE
)
!=
TSDB_QUERY_TYPE_FREE_RESOURCE
)
{
rowsToRead
=
pShow
->
numOfRows
-
pShow
->
numOfReads
;
...
...
@@ -228,7 +217,7 @@ static void mgmtProcessRetrieveMsg(SMnodeMsg *pMsg) {
}
}
static
void
m
gmt
ProcessHeartBeatMsg
(
SMnodeMsg
*
pMsg
)
{
static
void
m
node
ProcessHeartBeatMsg
(
SMnodeMsg
*
pMsg
)
{
SCMHeartBeatRsp
*
pHBRsp
=
(
SCMHeartBeatRsp
*
)
rpcMallocCont
(
sizeof
(
SCMHeartBeatRsp
));
if
(
pHBRsp
==
NULL
)
{
mgmtSendSimpleResp
(
pMsg
->
thandle
,
TSDB_CODE_SERV_OUT_OF_MEMORY
);
...
...
@@ -257,7 +246,7 @@ static void mgmtProcessHeartBeatMsg(SMnodeMsg *pMsg) {
rpcSendResponse
(
&
rpcRsp
);
}
static
void
m
gmt
ProcessConnectMsg
(
SMnodeMsg
*
pMsg
)
{
static
void
m
node
ProcessConnectMsg
(
SMnodeMsg
*
pMsg
)
{
SRpcMsg
rpcRsp
=
{.
handle
=
pMsg
->
thandle
,
.
pCont
=
NULL
,
.
contLen
=
0
,
.
code
=
0
,
.
msgType
=
0
};
SCMConnectMsg
*
pConnectMsg
=
pMsg
->
pCont
;
...
...
@@ -317,7 +306,7 @@ connect_over:
rpcSendResponse
(
&
rpcRsp
);
}
static
void
m
gmt
ProcessUseMsg
(
SMnodeMsg
*
pMsg
)
{
static
void
m
node
ProcessUseMsg
(
SMnodeMsg
*
pMsg
)
{
SRpcMsg
rpcRsp
=
{.
handle
=
pMsg
->
thandle
,
.
pCont
=
NULL
,
.
contLen
=
0
,
.
code
=
0
,
.
msgType
=
0
};
SCMUseDbMsg
*
pUseDbMsg
=
pMsg
->
pCont
;
...
...
@@ -413,7 +402,7 @@ void* mgmtSaveQhandle(void *qhandle, int32_t size) {
return
NULL
;
}
static
void
m
gmt
FreeShowObj
(
void
*
data
)
{
static
void
m
node
FreeShowObj
(
void
*
data
)
{
SShowObj
*
pShow
=
data
;
sdbFreeIter
(
pShow
->
pIter
);
mTrace
(
"show:%p, is destroyed"
,
pShow
);
...
...
src/mnode/src/mnodeTable.c
浏览文件 @
7ac821f2
...
...
@@ -26,19 +26,19 @@
#include "tglobal.h"
#include "hash.h"
#include "dnode.h"
#include "m
gmt
Def.h"
#include "m
gmt
Int.h"
#include "m
gmt
Acct.h"
#include "m
gmt
Db.h"
#include "m
gmt
Dnode.h"
#include "m
node
Def.h"
#include "m
node
Int.h"
#include "m
node
Acct.h"
#include "m
node
Db.h"
#include "m
node
Dnode.h"
#include "tgrant.h"
#include "m
gmt
Mnode.h"
#include "m
gmt
Profile.h"
#include "m
gmt
Sdb.h"
#include "m
gmt
Shell.h"
#include "m
gmt
Table.h"
#include "m
gmt
User.h"
#include "m
gmt
Vgroup.h"
#include "m
node
Mnode.h"
#include "m
node
Profile.h"
#include "m
node
Sdb.h"
#include "m
node
Shell.h"
#include "m
node
Table.h"
#include "m
node
User.h"
#include "m
node
Vgroup.h"
#include "tcompare.h"
#include "tdataformat.h"
...
...
@@ -559,10 +559,10 @@ int32_t mgmtInitTables() {
dnodeAddServerMsgHandle
(
TSDB_MSG_TYPE_DM_CONFIG_TABLE
,
mgmtProcessTableCfgMsg
);
mnodeAddShowMetaHandle
(
TSDB_M
GMT
_TABLE_TABLE
,
mgmtGetShowTableMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
GMT
_TABLE_TABLE
,
mgmtRetrieveShowTables
);
mnodeAddShowMetaHandle
(
TSDB_M
GMT
_TABLE_METRIC
,
mgmtGetShowSuperTableMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
GMT
_TABLE_METRIC
,
mgmtRetrieveShowSuperTables
);
mnodeAddShowMetaHandle
(
TSDB_M
NODE
_TABLE_TABLE
,
mgmtGetShowTableMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
NODE
_TABLE_TABLE
,
mgmtRetrieveShowTables
);
mnodeAddShowMetaHandle
(
TSDB_M
NODE
_TABLE_METRIC
,
mgmtGetShowSuperTableMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
NODE
_TABLE_METRIC
,
mgmtRetrieveShowSuperTables
);
return
TSDB_CODE_SUCCESS
;
}
...
...
src/mnode/src/mnodeUser.c
浏览文件 @
7ac821f2
...
...
@@ -22,13 +22,13 @@
#include "tgrant.h"
#include "tdataformat.h"
#include "dnode.h"
#include "m
gmt
Def.h"
#include "m
gmt
Int.h"
#include "m
gmt
Acct.h"
#include "m
gmt
Mnode.h"
#include "m
gmt
Sdb.h"
#include "m
gmt
Shell.h"
#include "m
gmt
User.h"
#include "m
node
Def.h"
#include "m
node
Int.h"
#include "m
node
Acct.h"
#include "m
node
Mnode.h"
#include "m
node
Sdb.h"
#include "m
node
Shell.h"
#include "m
node
User.h"
static
void
*
tsUserSdb
=
NULL
;
static
int32_t
tsUserUpdateSize
=
0
;
...
...
@@ -139,8 +139,8 @@ int32_t mgmtInitUsers() {
mgmtAddShellMsgHandle
(
TSDB_MSG_TYPE_CM_CREATE_USER
,
mgmtProcessCreateUserMsg
);
mgmtAddShellMsgHandle
(
TSDB_MSG_TYPE_CM_ALTER_USER
,
mgmtProcessAlterUserMsg
);
mgmtAddShellMsgHandle
(
TSDB_MSG_TYPE_CM_DROP_USER
,
mgmtProcessDropUserMsg
);
mnodeAddShowMetaHandle
(
TSDB_M
GMT
_TABLE_USER
,
mgmtGetUserMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
GMT
_TABLE_USER
,
mgmtRetrieveUsers
);
mnodeAddShowMetaHandle
(
TSDB_M
NODE
_TABLE_USER
,
mgmtGetUserMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
NODE
_TABLE_USER
,
mgmtRetrieveUsers
);
dnodeAddServerMsgHandle
(
TSDB_MSG_TYPE_DM_AUTH
,
mgmtProcessAuthMsg
);
mTrace
(
"table:%s, hash is created"
,
tableDesc
.
tableName
);
...
...
src/mnode/src/mnodeVgroup.c
浏览文件 @
7ac821f2
...
...
@@ -25,16 +25,16 @@
#include "tglobal.h"
#include "dnode.h"
#include "tdataformat.h"
#include "m
gmt
Def.h"
#include "m
gmt
Int.h"
#include "m
gmt
Db.h"
#include "m
gmt
Dnode.h"
#include "m
gmt
Mnode.h"
#include "m
gmt
Profile.h"
#include "m
gmt
Sdb.h"
#include "m
gmt
Shell.h"
#include "m
gmt
Table.h"
#include "m
gmt
Vgroup.h"
#include "m
node
Def.h"
#include "m
node
Int.h"
#include "m
node
Db.h"
#include "m
node
Dnode.h"
#include "m
node
Mnode.h"
#include "m
node
Profile.h"
#include "m
node
Sdb.h"
#include "m
node
Shell.h"
#include "m
node
Table.h"
#include "m
node
Vgroup.h"
static
void
*
tsVgroupSdb
=
NULL
;
static
int32_t
tsVgUpdateSize
=
0
;
...
...
@@ -220,8 +220,8 @@ int32_t mgmtInitVgroups() {
return
-
1
;
}
mnodeAddShowMetaHandle
(
TSDB_M
GMT
_TABLE_VGROUP
,
mgmtGetVgroupMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
GMT
_TABLE_VGROUP
,
mgmtRetrieveVgroups
);
mnodeAddShowMetaHandle
(
TSDB_M
NODE
_TABLE_VGROUP
,
mgmtGetVgroupMeta
);
mnodeAddShowRetrieveHandle
(
TSDB_M
NODE
_TABLE_VGROUP
,
mgmtRetrieveVgroups
);
dnodeAddClientRspHandle
(
TSDB_MSG_TYPE_MD_CREATE_VNODE_RSP
,
mgmtProcessCreateVnodeRsp
);
dnodeAddClientRspHandle
(
TSDB_MSG_TYPE_MD_DROP_VNODE_RSP
,
mgmtProcessDropVnodeRsp
);
dnodeAddServerMsgHandle
(
TSDB_MSG_TYPE_DM_CONFIG_VNODE
,
mgmtProcessVnodeCfgMsg
);
...
...
src/mnode/src/mnodeWrite.c
浏览文件 @
7ac821f2
...
...
@@ -22,18 +22,18 @@
#include "ttimer.h"
#include "tglobal.h"
#include "dnode.h"
#include "m
gmt
Def.h"
#include "m
gmt
Int.h"
#include "m
gmt
Server.h"
#include "m
gmt
Acct.h"
#include "m
gmt
Dnode.h"
#include "m
gmt
Mnode.h"
#include "m
gmt
Db.h"
#include "m
gmt
Sdb.h"
#include "m
gmt
Vgroup.h"
#include "m
gmt
User.h"
#include "m
gmt
Table.h"
#include "m
gmt
Shell.h"
#include "m
node
Def.h"
#include "m
node
Int.h"
#include "m
node
Server.h"
#include "m
node
Acct.h"
#include "m
node
Dnode.h"
#include "m
node
Mnode.h"
#include "m
node
Db.h"
#include "m
node
Sdb.h"
#include "m
node
Vgroup.h"
#include "m
node
User.h"
#include "m
node
Table.h"
#include "m
node
Shell.h"
static
void
(
*
tsMnodeProcessWriteMsgFp
[
TSDB_MSG_TYPE_MAX
])(
SMnodeMsg
*
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录