Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
0b05c880
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
Fork
4786
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
0b05c880
编写于
6月 17, 2022
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
more work
上级
189f99eb
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
16 deletion
+18
-16
source/dnode/vnode/src/inc/tsdb.h
source/dnode/vnode/src/inc/tsdb.h
+13
-13
source/dnode/vnode/src/inc/vnodeInt.h
source/dnode/vnode/src/inc/vnodeInt.h
+1
-1
source/dnode/vnode/src/tsdb/tsdbUtil.c
source/dnode/vnode/src/tsdb/tsdbUtil.c
+4
-2
未找到文件。
source/dnode/vnode/src/inc/tsdb.h
浏览文件 @
0b05c880
...
...
@@ -48,9 +48,9 @@ typedef struct SMapData SMapData;
typedef
struct
SBlockSMA
SBlockSMA
;
typedef
struct
SBlockIdx
SBlockIdx
;
typedef
struct
SBlock
SBlock
;
typedef
struct
SBlockCol
SBlockCol
;
typedef
struct
SBlockStatis
SBlockStatis
;
typedef
struct
SAggrBlkCol
SAggrBlkCol
;
typedef
struct
SColData
SColData
;
typedef
struct
SBlockData
SBlockData
;
typedef
struct
SReadH
SReadH
;
...
...
@@ -305,14 +305,6 @@ struct SBlock {
SSubBlock
sBlocks
[
TSDB_MAX_SUBBLOCKS
];
};
struct
SBlockCol
{
int16_t
colId
;
uint16_t
type
:
6
;
uint16_t
blen
:
10
;
// 0 no bitmap if all rows are NORM, > 0 bitmap length
uint32_t
len
;
// data length + bitmap length
uint32_t
offset
;
};
struct
SAggrBlkCol
{
int16_t
colId
;
int16_t
maxIndex
;
...
...
@@ -323,12 +315,20 @@ struct SAggrBlkCol {
int64_t
min
;
};
struct
SBlockData
{
int32_t
nRow
;
SBlockCol
cols
[];
struct
SColData
{
int16_t
cid
;
int8_t
type
;
int32_t
bytes
;
uint8_t
flags
;
uint8_t
*
pBitMap
;
uint32_t
nData
;
uint8_t
*
pData
;
};
typedef
void
SAggrBlkData
;
// SBlockCol cols[];
struct
SBlockData
{
int32_t
nRow
;
SArray
*
aColData
;
};
// ================== TSDB global config
extern
bool
tsdbForceKeepFile
;
...
...
source/dnode/vnode/src/inc/vnodeInt.h
浏览文件 @
0b05c880
...
...
@@ -258,7 +258,7 @@ struct SSma {
#define SMA_CFG(s) (&(s)->pVnode->config)
#define SMA_TSDB_CFG(s) (&(s)->pVnode->config.tsdbCfg)
#define SMA_RETENTION(s) ((SRetention
*)&(s)->pVnode->config.tsdbCfg.retentions)
#define SMA_RETENTION(s) ((SRetention*)&(s)->pVnode->config.tsdbCfg.retentions)
#define SMA_LOCKED(s) ((s)->locked)
#define SMA_META(s) ((s)->pVnode->pMeta)
#define SMA_VID(s) TD_VID((s)->pVnode)
...
...
source/dnode/vnode/src/tsdb/tsdbUtil.c
浏览文件 @
0b05c880
...
...
@@ -164,7 +164,7 @@ int32_t tsdbRealloc(uint8_t **ppBuf, int64_t size) {
if
(
bsize
>=
size
)
goto
_exit
;
if
(
bsize
==
0
)
bsize
=
1
28
;
if
(
bsize
==
0
)
bsize
=
1
6
;
while
(
bsize
<
size
)
{
bsize
*=
2
;
}
...
...
@@ -543,4 +543,6 @@ int32_t tGetKEYINFO(uint8_t *p, KEYINFO *pKeyInfo) {
n
+=
tGetI64v
(
p
+
n
,
&
pKeyInfo
->
maxVersion
);
return
n
;
}
\ No newline at end of file
}
// SBlockData ======================================================
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录