Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
e0e55b2d
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看板
提交
e0e55b2d
编写于
11月 23, 2022
作者:
H
Haojun Liao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: do some internal refactor.
上级
611ab8b3
变更
11
显示空白变更内容
内联
并排
Showing
11 changed file
with
51 addition
and
18 deletion
+51
-18
include/common/tdatablock.h
include/common/tdatablock.h
+0
-13
include/common/tmisce.h
include/common/tmisce.h
+42
-0
source/client/inc/clientInt.h
source/client/inc/clientInt.h
+1
-1
source/client/src/clientMain.c
source/client/src/clientMain.c
+1
-1
source/client/src/clientMsgHandler.c
source/client/src/clientMsgHandler.c
+1
-0
source/common/src/tglobal.c
source/common/src/tglobal.c
+1
-1
source/common/src/tmisce.c
source/common/src/tmisce.c
+1
-1
source/dnode/mgmt/node_util/src/dmEps.c
source/dnode/mgmt/node_util/src/dmEps.c
+1
-0
source/dnode/mnode/impl/src/mndDnode.c
source/dnode/mnode/impl/src/mndDnode.c
+1
-0
source/dnode/mnode/impl/src/mndMnode.c
source/dnode/mnode/impl/src/mndMnode.c
+1
-1
source/dnode/mnode/impl/src/mndVgroup.c
source/dnode/mnode/impl/src/mndVgroup.c
+1
-0
未找到文件。
include/common/tdatablock.h
浏览文件 @
e0e55b2d
...
...
@@ -24,11 +24,6 @@
extern
"C"
{
#endif
typedef
struct
SCorEpSet
{
int32_t
version
;
SEpSet
epSet
;
}
SCorEpSet
;
typedef
struct
SBlockOrderInfo
{
bool
nullFirst
;
int32_t
order
;
...
...
@@ -36,14 +31,6 @@ typedef struct SBlockOrderInfo {
SColumnInfoData
*
pColData
;
}
SBlockOrderInfo
;
int32_t
taosGetFqdnPortFromEp
(
const
char
*
ep
,
SEp
*
pEp
);
void
addEpIntoEpSet
(
SEpSet
*
pEpSet
,
const
char
*
fqdn
,
uint16_t
port
);
bool
isEpsetEqual
(
const
SEpSet
*
s1
,
const
SEpSet
*
s2
);
void
updateEpSet_s
(
SCorEpSet
*
pEpSet
,
SEpSet
*
pNewEpSet
);
SEpSet
getEpSet_s
(
SCorEpSet
*
pEpSet
);
#define NBIT (3u)
#define BitPos(_n) ((_n) & ((1 << NBIT) - 1))
#define BMCharPos(bm_, r_) ((bm_)[(r_) >> NBIT])
...
...
include/common/tmisce.h
0 → 100644
浏览文件 @
e0e55b2d
/*
* 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 TDENGINE_TMISCE_H
#define TDENGINE_TMISCE_H
#ifdef __cplusplus
extern
"C"
{
#endif
#include "tmsg.h"
typedef
struct
SCorEpSet
{
int32_t
version
;
SEpSet
epSet
;
}
SCorEpSet
;
int32_t
taosGetFqdnPortFromEp
(
const
char
*
ep
,
SEp
*
pEp
);
void
addEpIntoEpSet
(
SEpSet
*
pEpSet
,
const
char
*
fqdn
,
uint16_t
port
);
bool
isEpsetEqual
(
const
SEpSet
*
s1
,
const
SEpSet
*
s2
);
void
updateEpSet_s
(
SCorEpSet
*
pEpSet
,
SEpSet
*
pNewEpSet
);
SEpSet
getEpSet_s
(
SCorEpSet
*
pEpSet
);
#ifdef __cplusplus
}
#endif
#endif // TDENGINE_TMISCE_H
source/client/inc/clientInt.h
浏览文件 @
e0e55b2d
...
...
@@ -26,7 +26,7 @@ extern "C" {
#include "query.h"
#include "taos.h"
#include "tcommon.h"
#include "t
datablock
.h"
#include "t
misce
.h"
#include "tdef.h"
#include "thash.h"
#include "tlist.h"
...
...
source/client/src/clientMain.c
浏览文件 @
e0e55b2d
...
...
@@ -20,13 +20,13 @@
#include "functionMgt.h"
#include "os.h"
#include "query.h"
#include "qworker.h"
#include "scheduler.h"
#include "tglobal.h"
#include "tmsg.h"
#include "tref.h"
#include "trpc.h"
#include "version.h"
#include "tdatablock.h"
#define TSC_VAR_NOT_RELEASE 1
#define TSC_VAR_RELEASED 0
...
...
source/client/src/clientMsgHandler.c
浏览文件 @
e0e55b2d
...
...
@@ -20,6 +20,7 @@
#include "query.h"
#include "tdef.h"
#include "tname.h"
#include "tdatablock.h"
static
void
setErrno
(
SRequestObj
*
pRequest
,
int32_t
code
)
{
pRequest
->
code
=
code
;
...
...
source/common/src/tglobal.c
浏览文件 @
e0e55b2d
...
...
@@ -16,7 +16,7 @@
#define _DEFAULT_SOURCE
#include "tglobal.h"
#include "tconfig.h"
#include "t
datablock
.h"
#include "t
misce
.h"
#include "tgrant.h"
#include "tlog.h"
...
...
source/common/src/tmisce.c
浏览文件 @
e0e55b2d
...
...
@@ -14,7 +14,7 @@
*/
#define _DEFAULT_SOURCE
#include "t
datablock
.h"
#include "t
misce
.h"
#include "tglobal.h"
#include "tlog.h"
#include "tname.h"
...
...
source/dnode/mgmt/node_util/src/dmEps.c
浏览文件 @
e0e55b2d
...
...
@@ -15,6 +15,7 @@
#define _DEFAULT_SOURCE
#include "dmUtil.h"
#include "tmisce.h"
static
void
dmPrintEps
(
SDnodeData
*
pData
);
static
bool
dmIsEpChanged
(
SDnodeData
*
pData
,
int32_t
dnodeId
,
const
char
*
ep
);
...
...
source/dnode/mnode/impl/src/mndDnode.c
浏览文件 @
e0e55b2d
...
...
@@ -24,6 +24,7 @@
#include "mndTrans.h"
#include "mndUser.h"
#include "mndVgroup.h"
#include "tmisce.h"
#define TSDB_DNODE_VER_NUMBER 1
#define TSDB_DNODE_RESERVE_SIZE 64
...
...
source/dnode/mnode/impl/src/mndMnode.c
浏览文件 @
e0e55b2d
...
...
@@ -20,7 +20,7 @@
#include "mndShow.h"
#include "mndSync.h"
#include "mndTrans.h"
#include "
mndUser
.h"
#include "
tmisce
.h"
#define MNODE_VER_NUMBER 1
#define MNODE_RESERVE_SIZE 64
...
...
source/dnode/mnode/impl/src/mndVgroup.c
浏览文件 @
e0e55b2d
...
...
@@ -22,6 +22,7 @@
#include "mndShow.h"
#include "mndTrans.h"
#include "mndUser.h"
#include "tmisce.h"
#define VGROUP_VER_NUMBER 1
#define VGROUP_RESERVE_SIZE 64
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录