Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
taosdata
TDengine
提交
9e1912b1
T
TDengine
项目概览
taosdata
/
TDengine
大约 1 年 前同步成功
通知
1184
Star
22015
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9e1912b1
编写于
7月 09, 2023
作者:
K
kailixu
浏览文件
操作
浏览文件
下载
差异文件
Merge branch '3.0' into enh/TD-23769-3.0
上级
a746d288
6a0da778
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
34 addition
and
1 deletion
+34
-1
docs/en/12-taos-sql/22-meta.md
docs/en/12-taos-sql/22-meta.md
+2
-0
docs/zh/12-taos-sql/22-meta.md
docs/zh/12-taos-sql/22-meta.md
+2
-0
source/libs/tdb/src/db/tdbPager.c
source/libs/tdb/src/db/tdbPager.c
+29
-1
source/libs/tdb/src/inc/tdbInt.h
source/libs/tdb/src/inc/tdbInt.h
+1
-0
未找到文件。
docs/en/12-taos-sql/22-meta.md
浏览文件 @
9e1912b1
...
...
@@ -283,6 +283,8 @@ Provides dnode configuration information.
| 2 | consumer_group | BINARY(193) | Subscribed consumer group |
| 3 | vgroup_id | INT | Vgroup ID for the consumer |
| 4 | consumer_id | BIGINT | Consumer ID |
| 5 | offset | BINARY(64) | Consumption progress |
| 6 | rows | BIGINT | Number of consumption items |
## INS_STREAMS
...
...
docs/zh/12-taos-sql/22-meta.md
浏览文件 @
9e1912b1
...
...
@@ -284,6 +284,8 @@ TDengine 内置了一个名为 `INFORMATION_SCHEMA` 的数据库,提供对数
| 2 | consumer_group | BINARY(193) | 订阅者的消费者组 |
| 3 | vgroup_id | INT | 消费者被分配的 vgroup id |
| 4 | consumer_id | BIGINT | 消费者的唯一 id |
| 5 | offset | BINARY(64) | 消费者的消费进度 |
| 6 | rows | BIGINT | 消费者的消费的数据条数 |
## INS_STREAMS
...
...
source/libs/tdb/src/db/tdbPager.c
浏览文件 @
9e1912b1
...
...
@@ -720,15 +720,39 @@ int tdbPagerInsertFreePage(SPager *pPager, SPage *pPage, TXN *pTxn) {
int
code
=
0
;
SPgno
pgno
=
TDB_PAGE_PGNO
(
pPage
);
if
(
pPager
->
frps
)
{
taosArrayPush
(
pPager
->
frps
,
&
pgno
);
pPage
->
pPager
=
NULL
;
return
code
;
}
pPager
->
frps
=
taosArrayInit
(
8
,
sizeof
(
SPgno
));
// memset(pPage->pData, 0, pPage->pageSize);
tdbTrace
(
"tdb/insert-free-page: tbc recycle page: %d."
,
pgno
);
// printf("tdb/insert-free-page: tbc recycle page: %d.\n", pgno);
code
=
tdbTbInsert
(
pPager
->
pEnv
->
pFreeDb
,
&
pgno
,
sizeof
(
pgno
),
NULL
,
0
,
pTxn
);
if
(
code
<
0
)
{
tdbError
(
"tdb/insert-free-page: tb insert failed with ret: %d."
,
code
);
taosArrayDestroy
(
pPager
->
frps
);
pPager
->
frps
=
NULL
;
return
-
1
;
}
while
(
TARRAY_SIZE
(
pPager
->
frps
)
>
0
)
{
pgno
=
*
(
SPgno
*
)
taosArrayPop
(
pPager
->
frps
);
code
=
tdbTbInsert
(
pPager
->
pEnv
->
pFreeDb
,
&
pgno
,
sizeof
(
pgno
),
NULL
,
0
,
pTxn
);
if
(
code
<
0
)
{
tdbError
(
"tdb/insert-free-page: tb insert failed with ret: %d."
,
code
);
taosArrayDestroy
(
pPager
->
frps
);
pPager
->
frps
=
NULL
;
return
-
1
;
}
}
taosArrayDestroy
(
pPager
->
frps
);
pPager
->
frps
=
NULL
;
pPage
->
pPager
=
NULL
;
return
code
;
...
...
@@ -739,7 +763,11 @@ static int tdbPagerRemoveFreePage(SPager *pPager, SPgno *pPgno, TXN *pTxn) {
TBC
*
pCur
;
if
(
!
pPager
->
pEnv
->
pFreeDb
)
{
return
0
;
return
code
;
}
if
(
pPager
->
frps
)
{
return
code
;
}
code
=
tdbTbcOpen
(
pPager
->
pEnv
->
pFreeDb
,
&
pCur
,
pTxn
);
...
...
source/libs/tdb/src/inc/tdbInt.h
浏览文件 @
9e1912b1
...
...
@@ -408,6 +408,7 @@ struct SPager {
// u8 inTran;
TXN
*
pActiveTxn
;
SArray
*
ofps
;
SArray
*
frps
;
SPager
*
pNext
;
// used by TDB
SPager
*
pHashNext
;
// used by TDB
#ifdef USE_MAINDB
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录