Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
天地威能
oceanbase
提交
283a205f
O
oceanbase
项目概览
天地威能
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
283a205f
编写于
12月 01, 2022
作者:
O
obdev
提交者:
OB-robot
12月 01, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Cherry-pick 'Skip ready_for_flush if migration_clog_checkpoint >= end_log_ts'
上级
f0c8b5bd
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
23 addition
and
0 deletion
+23
-0
src/storage/memtable/ob_memtable.cpp
src/storage/memtable/ob_memtable.cpp
+7
-0
src/storage/memtable/ob_multi_source_data.cpp
src/storage/memtable/ob_multi_source_data.cpp
+15
-0
src/storage/memtable/ob_multi_source_data.h
src/storage/memtable/ob_multi_source_data.h
+1
-0
未找到文件。
src/storage/memtable/ob_memtable.cpp
浏览文件 @
283a205f
...
...
@@ -1647,6 +1647,13 @@ bool ObMemtable::ready_for_flush_()
int
ret
=
OB_SUCCESS
;
SCN
current_right_boundary
=
ObScnRange
::
MIN_SCN
;
share
::
ObLSID
ls_id
=
freezer_
->
get_ls_id
();
const
SCN
migration_clog_checkpoint_scn
=
get_migration_clog_checkpoint_scn
();
if
(
!
migration_clog_checkpoint_scn
.
is_min
()
&&
migration_clog_checkpoint_scn
>=
get_end_scn
()
&&
0
!=
get_unsynced_cnt
()
&&
multi_source_data_
.
get_all_unsync_cnt_for_multi_data
()
==
get_unsynced_cnt
())
{
bool_ret
=
true
;
}
if
(
bool_ret
)
{
if
(
OB_FAIL
(
resolve_snapshot_version_
()))
{
TRANS_LOG
(
WARN
,
"fail to resolve snapshot version"
,
K
(
ret
),
KPC
(
this
),
K
(
ls_id
));
...
...
src/storage/memtable/ob_multi_source_data.cpp
浏览文件 @
283a205f
...
...
@@ -223,5 +223,20 @@ int ObMultiSourceData::get_unsync_cnt_for_multi_data(const MultiSourceDataUnitTy
return
ret
;
}
int64_t
ObMultiSourceData
::
get_all_unsync_cnt_for_multi_data
()
{
int
ret
=
OB_SUCCESS
;
int64_t
unsynced_cnt_for_multi_data
=
0
;
for
(
int
i
=
0
;
i
<
MAX_PTR_COUNT
;
++
i
)
{
ObIMultiSourceDataUnit
*
value
=
units_
[
i
];
if
(
nullptr
!=
value
&&
value
->
is_valid
())
{
int64_t
cnt
=
value
->
get_unsync_cnt_for_multi_data
();
unsynced_cnt_for_multi_data
+=
cnt
;
}
}
return
unsynced_cnt_for_multi_data
;
}
}
// namespace memtable
}
// namespace oceanbase
src/storage/memtable/ob_multi_source_data.h
浏览文件 @
283a205f
...
...
@@ -128,6 +128,7 @@ public:
int
save_multi_source_data_unit
(
const
T
*
const
src
,
bool
is_callback
);
int
update_unsync_cnt_for_multi_data
(
const
MultiSourceDataUnitType
multi_source_type
,
const
bool
is_inc
);
int
get_unsync_cnt_for_multi_data
(
const
MultiSourceDataUnitType
multi_source_type
,
int
&
unsynced_cnt_for_multi_data
);
int64_t
get_all_unsync_cnt_for_multi_data
();
private:
int
inner_mark_unit_sync_finish
(
const
int64_t
unit_type
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录