Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
e79683a6
TDengine
项目概览
taosdata
/
TDengine
1 年多 前同步成功
通知
1185
Star
22016
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看板
提交
e79683a6
编写于
6月 26, 2023
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix more
上级
713deac2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
10 addition
and
4 deletion
+10
-4
source/dnode/vnode/src/inc/tsdb.h
source/dnode/vnode/src/inc/tsdb.h
+2
-2
source/dnode/vnode/src/tsdb/tsdbIter.c
source/dnode/vnode/src/tsdb/tsdbIter.c
+6
-0
source/dnode/vnode/src/tsdb/tsdbMerge.c
source/dnode/vnode/src/tsdb/tsdbMerge.c
+1
-1
source/dnode/vnode/src/tsdb/tsdbSnapshot.c
source/dnode/vnode/src/tsdb/tsdbSnapshot.c
+1
-1
未找到文件。
source/dnode/vnode/src/inc/tsdb.h
浏览文件 @
e79683a6
...
@@ -202,7 +202,7 @@ int32_t tMapDataToArray(SMapData *pMapData, int32_t itemSize, int32_t (*tGetItem
...
@@ -202,7 +202,7 @@ int32_t tMapDataToArray(SMapData *pMapData, int32_t itemSize, int32_t (*tGetItem
// other
// other
int32_t
tsdbKeyFid
(
TSKEY
key
,
int32_t
minutes
,
int8_t
precision
);
int32_t
tsdbKeyFid
(
TSKEY
key
,
int32_t
minutes
,
int8_t
precision
);
void
tsdbFidKeyRange
(
int32_t
fid
,
int32_t
minutes
,
int8_t
precision
,
TSKEY
*
minKey
,
TSKEY
*
maxKey
);
void
tsdbFidKeyRange
(
int32_t
fid
,
int32_t
minutes
,
int8_t
precision
,
TSKEY
*
minKey
,
TSKEY
*
maxKey
);
int32_t
tsdbFidLevel
(
int32_t
fid
,
STsdbKeepCfg
*
pKeepCfg
,
int64_t
now
);
int32_t
tsdbFidLevel
(
int32_t
fid
,
STsdbKeepCfg
*
pKeepCfg
,
int64_t
now
Sec
);
int32_t
tsdbBuildDeleteSkyline
(
SArray
*
aDelData
,
int32_t
sidx
,
int32_t
eidx
,
SArray
*
aSkyline
);
int32_t
tsdbBuildDeleteSkyline
(
SArray
*
aDelData
,
int32_t
sidx
,
int32_t
eidx
,
SArray
*
aSkyline
);
int32_t
tPutColumnDataAgg
(
uint8_t
*
p
,
SColumnDataAgg
*
pColAgg
);
int32_t
tPutColumnDataAgg
(
uint8_t
*
p
,
SColumnDataAgg
*
pColAgg
);
int32_t
tGetColumnDataAgg
(
uint8_t
*
p
,
SColumnDataAgg
*
pColAgg
);
int32_t
tGetColumnDataAgg
(
uint8_t
*
p
,
SColumnDataAgg
*
pColAgg
);
...
@@ -707,7 +707,7 @@ typedef struct SSttBlockLoadInfo {
...
@@ -707,7 +707,7 @@ typedef struct SSttBlockLoadInfo {
SArray
*
aSttBlk
;
SArray
*
aSttBlk
;
SArray
*
pTombBlockArray
;
// tomb block array list
SArray
*
pTombBlockArray
;
// tomb block array list
int32_t
blockIndex
[
2
];
// to denote the loaded block in the corresponding position.
int32_t
blockIndex
[
2
];
// to denote the loaded block in the corresponding position.
int32_t
currentLoadBlockIndex
;
int32_t
currentLoadBlockIndex
;
int32_t
loadBlocks
;
int32_t
loadBlocks
;
double
elapsedTime
;
double
elapsedTime
;
...
...
source/dnode/vnode/src/tsdb/tsdbIter.c
浏览文件 @
e79683a6
...
@@ -629,6 +629,12 @@ static int32_t tsdbIterSkipTableData(STsdbIter *iter, const TABLEID *tbid) {
...
@@ -629,6 +629,12 @@ static int32_t tsdbIterSkipTableData(STsdbIter *iter, const TABLEID *tbid) {
return
tsdbDataIterNext
(
iter
,
tbid
);
return
tsdbDataIterNext
(
iter
,
tbid
);
case
TSDB_ITER_TYPE_MEMT
:
case
TSDB_ITER_TYPE_MEMT
:
return
tsdbMemTableIterNext
(
iter
,
tbid
);
return
tsdbMemTableIterNext
(
iter
,
tbid
);
case
TSDB_ITER_TYPE_STT_TOMB
:
return
tsdbSttTombIterNext
(
iter
,
tbid
);
case
TSDB_ITER_TYPE_DATA_TOMB
:
return
tsdbDataTombIterNext
(
iter
,
tbid
);
case
TSDB_ITER_TYPE_MEMT_TOMB
:
return
tsdbMemTombIterNext
(
iter
,
tbid
);
default:
default:
ASSERT
(
false
);
ASSERT
(
false
);
}
}
...
...
source/dnode/vnode/src/tsdb/tsdbMerge.c
浏览文件 @
e79683a6
...
@@ -52,7 +52,7 @@ typedef struct {
...
@@ -52,7 +52,7 @@ typedef struct {
}
SMerger
;
}
SMerger
;
static
int32_t
tsdbMergerOpen
(
SMerger
*
merger
)
{
static
int32_t
tsdbMergerOpen
(
SMerger
*
merger
)
{
merger
->
ctx
->
now
=
taosGetTimestamp
Ms
();
merger
->
ctx
->
now
=
taosGetTimestamp
Sec
();
merger
->
maxRow
=
merger
->
tsdb
->
pVnode
->
config
.
tsdbCfg
.
maxRows
;
merger
->
maxRow
=
merger
->
tsdb
->
pVnode
->
config
.
tsdbCfg
.
maxRows
;
merger
->
minRow
=
merger
->
tsdb
->
pVnode
->
config
.
tsdbCfg
.
minRows
;
merger
->
minRow
=
merger
->
tsdb
->
pVnode
->
config
.
tsdbCfg
.
minRows
;
merger
->
szPage
=
merger
->
tsdb
->
pVnode
->
config
.
tsdbPageSize
;
merger
->
szPage
=
merger
->
tsdb
->
pVnode
->
config
.
tsdbPageSize
;
...
...
source/dnode/vnode/src/tsdb/tsdbSnapshot.c
浏览文件 @
e79683a6
...
@@ -766,7 +766,7 @@ static int32_t tsdbSnapWriteFileSetBegin(STsdbSnapWriter* writer, int32_t fid) {
...
@@ -766,7 +766,7 @@ static int32_t tsdbSnapWriteFileSetBegin(STsdbSnapWriter* writer, int32_t fid) {
writer
->
ctx
->
fid
=
fid
;
writer
->
ctx
->
fid
=
fid
;
writer
->
ctx
->
fset
=
TARRAY2_SEARCH_EX
(
writer
->
fsetArr
,
&
fset
,
tsdbTFileSetCmprFn
,
TD_EQ
);
writer
->
ctx
->
fset
=
TARRAY2_SEARCH_EX
(
writer
->
fsetArr
,
&
fset
,
tsdbTFileSetCmprFn
,
TD_EQ
);
int32_t
level
=
tsdbFidLevel
(
fid
,
&
writer
->
tsdb
->
keepCfg
,
writer
->
now
);
int32_t
level
=
tsdbFidLevel
(
fid
,
&
writer
->
tsdb
->
keepCfg
,
taosGetTimestampSec
()
);
if
(
tfsAllocDisk
(
writer
->
tsdb
->
pVnode
->
pTfs
,
level
,
&
writer
->
ctx
->
did
))
{
if
(
tfsAllocDisk
(
writer
->
tsdb
->
pVnode
->
pTfs
,
level
,
&
writer
->
ctx
->
did
))
{
code
=
TSDB_CODE_NO_AVAIL_DISK
;
code
=
TSDB_CODE_NO_AVAIL_DISK
;
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
TSDB_CHECK_CODE
(
code
,
lino
,
_exit
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录