Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
m0_53320357
TDengine
提交
35f8e568
TDengine
项目概览
m0_53320357
/
TDengine
与 Fork 源项目一致
Fork自
taosdata / TDengine
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
TDengine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
35f8e568
编写于
9月 17, 2020
作者:
H
Hongze Cheng
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add scan interface
上级
d3d0f60c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
12 addition
and
25 deletion
+12
-25
src/inc/tsdb.h
src/inc/tsdb.h
+8
-0
src/tsdb/inc/tsdbMain.h
src/tsdb/inc/tsdbMain.h
+0
-10
src/tsdb/src/tsdbScan.c
src/tsdb/src/tsdbScan.c
+4
-15
未找到文件。
src/inc/tsdb.h
浏览文件 @
35f8e568
...
...
@@ -314,6 +314,14 @@ void tsdbCleanupQueryHandle(TsdbQueryHandleT queryHandle);
*/
void
tsdbReportStat
(
void
*
repo
,
int64_t
*
totalPoints
,
int64_t
*
totalStorage
,
int64_t
*
compStorage
);
// ------------------ tsdbScan.c
typedef
void
*
STsdbScanH
;
STsdbScanH
tsdbNewScanHandle
();
void
tsdbFreeScanHandle
(
STsdbScanH
pScanH
);
void
tsdbSetScanLogStream
(
STsdbScanH
pScanH
,
FILE
*
fLogStream
);
int
tsdbScanFGroup
(
STsdbScanH
pScanH
,
char
*
rootDir
,
int
fid
);
#ifdef __cplusplus
}
#endif
...
...
src/tsdb/inc/tsdbMain.h
浏览文件 @
35f8e568
...
...
@@ -562,16 +562,6 @@ STsdbMeta* tsdbGetMeta(TSDB_REPO_T* pRepo);
STsdbFileH
*
tsdbGetFile
(
TSDB_REPO_T
*
pRepo
);
int
tsdbCheckCommit
(
STsdbRepo
*
pRepo
);
// ------------------ tsdbScan.c
int
tsdbScanFGroup
(
STsdbScanHandle
*
pScanHandle
,
char
*
rootDir
,
int
fid
);
STsdbScanHandle
*
tsdbNewScanHandle
();
void
tsdbSetScanLogStream
(
STsdbScanHandle
*
pScanHandle
,
FILE
*
fLogStream
);
int
tsdbSetAndOpenScanFile
(
STsdbScanHandle
*
pScanHandle
,
char
*
rootDir
,
int
fid
);
int
tsdbScanSCompIdx
(
STsdbScanHandle
*
pScanHandle
);
int
tsdbScanSCompBlock
(
STsdbScanHandle
*
pScanHandle
,
int
idx
);
int
tsdbCloseScanFile
(
STsdbScanHandle
*
pScanHandle
);
void
tsdbFreeScanHandle
(
STsdbScanHandle
*
pScanHandle
);
#ifdef __cplusplus
}
#endif
...
...
src/tsdb/src/tsdbScan.c
浏览文件 @
35f8e568
...
...
@@ -17,20 +17,9 @@
#ifndef _TSDB_PLUGINS
int
tsdbScanFGroup
(
STsdbScanHandle
*
pScanHandle
,
char
*
rootDir
,
int
fid
)
{
return
0
;
}
STsdbScanHandle
*
tsdbNewScanHandle
()
{
return
NULL
;
}
void
tsdbSetScanLogStream
(
STsdbScanHandle
*
pScanHandle
,
FILE
*
fLogStream
)
{}
int
tsdbSetAndOpenScanFile
(
STsdbScanHandle
*
pScanHandle
,
char
*
rootDir
,
int
fid
)
{
return
0
;
}
int
tsdbScanSCompIdx
(
STsdbScanHandle
*
pScanHandle
)
{
return
0
;
}
int
tsdbScanSCompBlock
(
STsdbScanHandle
*
pScanHandle
,
int
idx
)
{
return
0
;
}
int
tsdbCloseScanFile
(
STsdbScanHandle
*
pScanHandle
)
{
return
0
;
}
void
tsdbFreeScanHandle
(
STsdbScanHandle
*
pScanHandle
)
{}
STsdbScanH
tsdbNewScanHandle
()
{
return
NULL
;
}
void
tsdbFreeScanHandle
(
STsdbScanH
pScanHandle
)
{}
void
tsdbSetScanLogStream
(
STsdbScanH
pScanHandle
,
FILE
*
fLogStream
)
{
return
;
}
int
tsdbScanFGroup
(
STsdbScanH
pScanHandle
,
char
*
rootDir
,
int
fid
)
{
return
0
;
}
#endif
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录