Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DP.peng
oceanbase
提交
ae138ca6
O
oceanbase
项目概览
DP.peng
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
3
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
ae138ca6
编写于
10月 30, 2022
作者:
O
obdev
提交者:
wangzelin.wzl
10月 30, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix backup defend issue
上级
c70b8a05
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
3 addition
and
3 deletion
+3
-3
src/storage/backup/ob_backup_task.cpp
src/storage/backup/ob_backup_task.cpp
+2
-2
src/storage/backup/ob_backup_utils.cpp
src/storage/backup/ob_backup_utils.cpp
+1
-1
未找到文件。
src/storage/backup/ob_backup_task.cpp
浏览文件 @
ae138ca6
...
...
@@ -3993,7 +3993,6 @@ int ObLSBackupPrepareTask::get_tablet_min_filled_tx_log_ts_(
}
else
if
(
tablet
->
get_tablet_meta
().
tablet_id_
.
is_ls_inner_tablet
())
{
// skip inner tablet
}
else
{
min_filled_tx_log_ts
=
tablet
->
get_tablet_meta
().
clog_checkpoint_ts_
;
ObTabletTableStore
&
table_store
=
tablet
->
get_table_store
();
const
ObSSTableArray
&
sstable_array
=
table_store
.
get_minor_sstables
();
has_minor_sstable
=
!
sstable_array
.
empty
();
...
...
@@ -4008,7 +4007,8 @@ int ObLSBackupPrepareTask::get_tablet_min_filled_tx_log_ts_(
LOG_WARN
(
"table ptr type not expectedd"
,
K
(
ret
));
}
else
if
(
FALSE_IT
(
sstable
=
static_cast
<
ObSSTable
*>
(
table_ptr
)))
{
}
else
{
min_filled_tx_log_ts
=
std
::
min
(
sstable
->
get_meta
().
get_basic_meta
().
filled_tx_log_ts_
,
min_filled_tx_log_ts
);
min_filled_tx_log_ts
=
std
::
min
(
std
::
max
(
sstable
->
get_meta
().
get_basic_meta
().
filled_tx_log_ts_
,
sstable
->
get_end_log_ts
()),
min_filled_tx_log_ts
);
}
}
}
...
...
src/storage/backup/ob_backup_utils.cpp
浏览文件 @
ae138ca6
...
...
@@ -252,7 +252,7 @@ int ObBackupUtils::check_tablet_minor_sstable_validity_(const storage::ObTabletH
LOG_WARN
(
"table ptr not correct"
,
K
(
ret
),
KPC
(
last_table_ptr
));
}
else
{
const
ObITable
::
TableKey
&
table_key
=
last_table_ptr
->
get_key
();
if
(
table_key
.
get_end_log_ts
()
!=
clog_checkpoint_ts
)
{
if
(
table_key
.
get_end_log_ts
()
<
clog_checkpoint_ts
)
{
ret
=
OB_ERR_UNEXPECTED
;
LOG_ERROR
(
"tablet meta is not valid"
,
K
(
ret
),
K
(
table_key
),
K
(
clog_checkpoint_ts
));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录