Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
78001a28
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看板
提交
78001a28
编写于
10月 25, 2021
作者:
S
Shengliang Guan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[TD-10430] rename some files
上级
ad96d32b
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
20 addition
and
21 deletion
+20
-21
source/server/dnode/inc/dnodeCheck.h
source/server/dnode/inc/dnodeCheck.h
+0
-1
source/server/dnode/inc/dnodeDnodeEps.h
source/server/dnode/inc/dnodeDnodeEps.h
+6
-6
source/server/dnode/inc/dnodeMain.h
source/server/dnode/inc/dnodeMain.h
+2
-2
source/server/dnode/src/dnodeDnodeEps.c
source/server/dnode/src/dnodeDnodeEps.c
+4
-4
source/server/dnode/src/dnodeInt.c
source/server/dnode/src/dnodeInt.c
+2
-2
source/server/dnode/src/dnodeMain.c
source/server/dnode/src/dnodeMain.c
+3
-3
source/server/dnode/src/dnodeMnodeEps.c
source/server/dnode/src/dnodeMnodeEps.c
+1
-1
source/server/dnode/src/dnodeStatus.c
source/server/dnode/src/dnodeStatus.c
+2
-2
未找到文件。
source/server/dnode/inc/dnodeCheck.h
浏览文件 @
78001a28
...
...
@@ -21,7 +21,6 @@ extern "C" {
#endif
#include "dnodeInt.h"
int32_t
dnodeInitCheck
();
void
dnodeCleanupCheck
();
...
...
source/server/dnode/inc/dnodeEps.h
→
source/server/dnode/inc/dnode
Dnode
Eps.h
浏览文件 @
78001a28
...
...
@@ -13,17 +13,17 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _TD_DNODE_EPS_H_
#define _TD_DNODE_EPS_H_
#ifndef _TD_DNODE_
DNODE_
EPS_H_
#define _TD_DNODE_
DNODE_
EPS_H_
#ifdef __cplusplus
extern
"C"
{
#endif
#include "dnodeInt.h"
int32_t
dnodeInitEps
();
void
dnodeCleanupEps
();
void
dnodeUpdateEps
(
SDnodeEps
*
data
);
int32_t
dnodeInit
Dnode
Eps
();
void
dnodeCleanup
Dnode
Eps
();
void
dnodeUpdate
Dnode
Eps
(
SDnodeEps
*
data
);
bool
dnodeIsDnodeEpChanged
(
int32_t
dnodeId
,
char
*
epstr
);
void
dnodeGetDnodeEp
(
int32_t
dnodeId
,
char
*
epstr
,
char
*
fqdn
,
uint16_t
*
port
);
...
...
@@ -31,4 +31,4 @@ void dnodeGetDnodeEp(int32_t dnodeId, char *epstr, char *fqdn, uint16_t *port
}
#endif
#endif
/*_TD_DNODE_EPS_H_*/
\ No newline at end of file
#endif
/*_TD_DNODE_DNODE_EPS_H_*/
\ No newline at end of file
source/server/dnode/inc/dnodeMain.h
浏览文件 @
78001a28
...
...
@@ -25,7 +25,7 @@ typedef enum {
DN_RUN_STAT_INIT
,
DN_RUN_STAT_RUNNING
,
DN_RUN_STAT_STOPPED
}
EDn
Run
Stat
;
}
EDnStat
;
int32_t
dnodeInitMain
();
void
dnodeCleanupMain
();
...
...
@@ -36,7 +36,7 @@ void dnodeReportStartupFinished(char *name, char *desc);
void
dnodeProcessStartupReq
(
SRpcMsg
*
pMsg
);
void
dnodeProcessCreateMnodeReq
(
SRpcMsg
*
pMsg
);
void
dnodeProcessConfigDnodeReq
(
SRpcMsg
*
pMsg
);
EDn
Run
Stat
dnodeGetRunStat
();
EDnStat
dnodeGetRunStat
();
void
dnodeSetRunStat
();
void
*
dnodeGetTimer
();
...
...
source/server/dnode/src/dnodeEps.c
→
source/server/dnode/src/dnode
Dnode
Eps.c
浏览文件 @
78001a28
...
...
@@ -18,7 +18,7 @@
#include "cJSON.h"
#include "thash.h"
#include "tglobal.h"
#include "dnodeEps.h"
#include "dnode
Dnode
Eps.h"
#include "dnodeCfg.h"
static
struct
{
...
...
@@ -192,7 +192,7 @@ static int32_t dnodeWriteEps() {
return
0
;
}
int32_t
dnodeInitEps
()
{
int32_t
dnodeInit
Dnode
Eps
()
{
tsDeps
.
dnodeHash
=
taosHashInit
(
4
,
taosGetDefaultHashFunction
(
TSDB_DATA_TYPE_INT
),
true
,
HASH_ENTRY_LOCK
);
if
(
tsDeps
.
dnodeHash
==
NULL
)
return
-
1
;
...
...
@@ -209,7 +209,7 @@ int32_t dnodeInitEps() {
return
ret
;
}
void
dnodeCleanupEps
()
{
void
dnodeCleanup
Dnode
Eps
()
{
pthread_mutex_lock
(
&
tsDeps
.
mutex
);
if
(
tsDeps
.
dnodeList
!=
NULL
)
{
...
...
@@ -227,7 +227,7 @@ void dnodeCleanupEps() {
pthread_mutex_destroy
(
&
tsDeps
.
mutex
);
}
void
dnodeUpdateEps
(
SDnodeEps
*
data
)
{
void
dnodeUpdate
Dnode
Eps
(
SDnodeEps
*
data
)
{
if
(
data
==
NULL
||
data
->
dnodeNum
<=
0
)
return
;
data
->
dnodeNum
=
htonl
(
data
->
dnodeNum
);
...
...
source/server/dnode/src/dnodeInt.c
浏览文件 @
78001a28
...
...
@@ -24,7 +24,7 @@
#include "tstep.h"
#include "dnodeCfg.h"
#include "dnodeCheck.h"
#include "dnodeEps.h"
#include "dnode
Dnode
Eps.h"
#include "dnodeMain.h"
#include "dnodeMnodeEps.h"
#include "dnodeStatus.h"
...
...
@@ -64,7 +64,7 @@ int32_t dnodeInit() {
taosStepAdd
(
tsSteps
,
"dnode-rpc"
,
rpcInit
,
rpcCleanup
);
taosStepAdd
(
tsSteps
,
"dnode-check"
,
dnodeInitCheck
,
dnodeCleanupCheck
);
taosStepAdd
(
tsSteps
,
"dnode-cfg"
,
dnodeInitCfg
,
dnodeCleanupCfg
);
taosStepAdd
(
tsSteps
,
"dnode-deps"
,
dnodeInit
Eps
,
dnodeCleanup
Eps
);
taosStepAdd
(
tsSteps
,
"dnode-deps"
,
dnodeInit
DnodeEps
,
dnodeCleanupDnode
Eps
);
taosStepAdd
(
tsSteps
,
"dnode-meps"
,
dnodeInitMnodeEps
,
dnodeCleanupMnodeEps
);
//taosStepAdd(tsSteps, "dnode-wal", walInit, walCleanUp);
//taosStepAdd(tsSteps, "dnode-sync", syncInit, syncCleanUp);
...
...
source/server/dnode/src/dnodeMain.c
浏览文件 @
78001a28
...
...
@@ -29,7 +29,7 @@
#include "mnode.h"
static
struct
{
EDn
Run
Stat
runStatus
;
EDnStat
runStatus
;
void
*
dnodeTimer
;
SStartupStep
startup
;
}
tsDmain
;
...
...
@@ -260,8 +260,8 @@ void dnodeProcessConfigDnodeReq(SRpcMsg *pMsg) {
rpcFreeCont
(
pMsg
->
pCont
);
}
EDn
Run
Stat
dnodeGetRunStat
()
{
return
tsDmain
.
runStatus
;
}
EDnStat
dnodeGetRunStat
()
{
return
tsDmain
.
runStatus
;
}
void
dnodeSetRunStat
(
EDn
Run
Stat
stat
)
{
tsDmain
.
runStatus
=
stat
;
}
void
dnodeSetRunStat
(
EDnStat
stat
)
{
tsDmain
.
runStatus
=
stat
;
}
void
*
dnodeGetTimer
()
{
return
tsDmain
.
dnodeTimer
;
}
\ No newline at end of file
source/server/dnode/src/dnodeMnodeEps.c
浏览文件 @
78001a28
...
...
@@ -18,7 +18,7 @@
#include "cJSON.h"
#include "tglobal.h"
#include "dnodeCfg.h"
#include "dnodeEps.h"
#include "dnode
Dnode
Eps.h"
#include "dnodeMnodeEps.h"
#include "mnode.h"
...
...
source/server/dnode/src/dnodeStatus.c
浏览文件 @
78001a28
...
...
@@ -19,7 +19,7 @@
#include "ttimer.h"
#include "tglobal.h"
#include "dnodeCfg.h"
#include "dnodeEps.h"
#include "dnode
Dnode
Eps.h"
#include "dnodeMnodeEps.h"
#include "dnodeStatus.h"
#include "dnodeMain.h"
...
...
@@ -114,7 +114,7 @@ void dnodeProcessStatusRsp(SRpcMsg *pMsg) {
vnodeSetAccess
(
pStatusRsp
->
vgAccess
,
pCfg
->
numOfVnodes
);
SDnodeEps
*
pEps
=
(
SDnodeEps
*
)((
char
*
)
pStatusRsp
->
vgAccess
+
pCfg
->
numOfVnodes
*
sizeof
(
SVgroupAccess
));
dnodeUpdateEps
(
pEps
);
dnodeUpdate
Dnode
Eps
(
pEps
);
taosTmrReset
(
dnodeSendStatusMsg
,
tsStatusInterval
*
1000
,
NULL
,
tsStatus
.
dnodeTimer
,
&
tsStatus
.
statusTimer
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录