Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
2129bc1e
T
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1187
Star
22018
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看板
提交
2129bc1e
编写于
2月 09, 2020
作者:
H
hjxilinx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor codes
上级
160fd228
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
2 addition
and
32 deletion
+2
-32
src/system/detail/inc/vnodeTagMgmt.h
src/system/detail/inc/vnodeTagMgmt.h
+0
-11
src/system/detail/src/vnodeTagMgmt.c
src/system/detail/src/vnodeTagMgmt.c
+2
-21
未找到文件。
src/system/detail/inc/vnodeTagMgmt.h
浏览文件 @
2129bc1e
...
...
@@ -32,15 +32,6 @@ extern "C" {
* Note:
* 1. we implement a quick sort algorithm, may remove it later.
*/
//typedef struct tTagSchema {
// struct SSchema *pSchema;
// int32_t numOfCols;
// int32_t colOffset[];
//} tTagSchema;
typedef
SColumnModel
tTagSchema
;
typedef
struct
tSidSet
{
int32_t
numOfSids
;
int32_t
numOfSubSet
;
...
...
@@ -56,8 +47,6 @@ typedef int32_t (*__ext_compar_fn_t)(const void *p1, const void *p2, void *param
tSidSet
*
tSidSetCreate
(
struct
SMeterSidExtInfo
**
pMeterSidExtInfo
,
int32_t
numOfMeters
,
SSchema
*
pSchema
,
int32_t
numOfTags
,
SColIndexEx
*
colList
,
int32_t
numOfOrderCols
);
//tTagSchema *tCreateTagSchema(SSchema *pSchema, int32_t numOfTagCols);
int32_t
*
calculateSubGroup
(
void
**
pSids
,
int32_t
numOfMeters
,
int32_t
*
numOfSubset
,
tOrderDescriptor
*
pOrderDesc
,
__ext_compar_fn_t
compareFn
);
...
...
src/system/detail/src/vnodeTagMgmt.c
浏览文件 @
2129bc1e
...
...
@@ -27,7 +27,7 @@
#define GET_TAG_VAL_POINTER(s, col, sc, t) ((t *)(&((s)->tags[getColumnModelOffset(sc, col)])))
#define GET_TAG_VAL(s, col, sc, t) (*GET_TAG_VAL_POINTER(s, col, sc, t))
static
void
tTagsPrints
(
SMeterSidExtInfo
*
pMeterInfo
,
tTagSchema
*
pSchema
,
SColumnOrderInfo
*
pOrder
);
static
void
tTagsPrints
(
SMeterSidExtInfo
*
pMeterInfo
,
SColumnModel
*
pSchema
,
SColumnOrderInfo
*
pOrder
);
static
void
tSidSetDisplay
(
tSidSet
*
pSets
);
...
...
@@ -241,25 +241,6 @@ int32_t *calculateSubGroup(void **pSids, int32_t numOfMeters, int32_t *numOfSubs
return
starterPos
;
}
//tTagSchema *tCreateTagSchema(SSchema *pSchema, int32_t numOfTagCols) {
// if (numOfTagCols == 0 || pSchema == NULL) {
// return NULL;
// }
//
// tTagSchema *pColumnModel =
// (tTagSchema *)calloc(1, sizeof(tTagSchema) + numOfTagCols * sizeof(int32_t) + sizeof(SSchema) * numOfTagCols);
//
// pColumnModel->colOffset[0] = 0;
// pColumnModel->numOfCols = numOfTagCols;
// for (int32_t i = 1; i < numOfTagCols; ++i) {
// pColumnModel->colOffset[i] = (pColumnModel->colOffset[i - 1] + pSchema[i - 1].bytes);
// }
//
// pColumnModel->pSchema = (SSchema *)&(pColumnModel->colOffset[numOfTagCols]);
// memcpy(pColumnModel->pSchema, pSchema, sizeof(SSchema) * numOfTagCols);
// return pColumnModel;
//}
tSidSet
*
tSidSetCreate
(
struct
SMeterSidExtInfo
**
pMeterSidExtInfo
,
int32_t
numOfMeters
,
SSchema
*
pSchema
,
int32_t
numOfTags
,
SColIndexEx
*
colList
,
int32_t
numOfCols
)
{
tSidSet
*
pSidSet
=
(
tSidSet
*
)
calloc
(
1
,
sizeof
(
tSidSet
)
+
numOfCols
*
sizeof
(
int16_t
));
...
...
@@ -296,7 +277,7 @@ void tSidSetDestroy(tSidSet **pSets) {
}
}
void
tTagsPrints
(
SMeterSidExtInfo
*
pMeterInfo
,
tTagSchema
*
pSchema
,
SColumnOrderInfo
*
pOrder
)
{
void
tTagsPrints
(
SMeterSidExtInfo
*
pMeterInfo
,
SColumnModel
*
pSchema
,
SColumnOrderInfo
*
pOrder
)
{
if
(
pSchema
==
NULL
)
{
return
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录