Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
不争之德
oceanbase
提交
e2fa173d
O
oceanbase
项目概览
不争之德
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
1
Fork
0
代码
文件
提交
分支
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 搜索 >>
提交
e2fa173d
编写于
10月 03, 2022
作者:
C
chinaxing
提交者:
wangzelin.wzl
10月 03, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[CP] [3_2_3] persist has_trans_state_log_ field in tx_table
上级
493b2fb2
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
7 addition
and
2 deletion
+7
-2
src/storage/transaction/ob_trans_define.cpp
src/storage/transaction/ob_trans_define.cpp
+2
-1
src/storage/transaction/ob_trans_define.h
src/storage/transaction/ob_trans_define.h
+3
-1
src/storage/transaction/ob_trans_part_ctx.cpp
src/storage/transaction/ob_trans_part_ctx.cpp
+2
-0
未找到文件。
src/storage/transaction/ob_trans_define.cpp
浏览文件 @
e2fa173d
...
...
@@ -57,7 +57,8 @@ OB_SERIALIZE_MEMBER(ObTransSSTableDurableCtxInfo, trans_table_info_, partition_,
app_trace_id_str_
,
partition_log_info_arr_
,
prev_trans_arr_
,
can_elr_
,
max_durable_log_ts_
,
global_trans_version_
,
commit_log_checksum_
,
state_
,
prepare_version_
,
max_durable_sql_no_
,
trans_type_
,
elr_prepared_state_
,
is_dup_table_trans_
,
redo_log_no_
,
mutator_log_no_
,
stmt_info_
,
min_log_ts_
,
sp_user_request_
,
need_checksum_
,
prepare_log_id_
,
prepare_log_timestamp_
,
clear_log_base_ts_
,
min_log_id_
);
prepare_log_id_
,
prepare_log_timestamp_
,
clear_log_base_ts_
,
min_log_id_
,
prev_checkpoint_id_
,
has_trans_state_log_
);
OB_SERIALIZE_MEMBER
(
ObXATransID
,
gtrid_str_
,
bqual_str_
,
format_id_
);
int64_t
ObTransID
::
s_inc_num
=
1
;
...
...
src/storage/transaction/ob_trans_define.h
浏览文件 @
e2fa173d
...
...
@@ -3552,6 +3552,7 @@ public:
prepare_log_timestamp_
=
0
;
clear_log_base_ts_
=
0
;
prev_checkpoint_id_
=
0
;
has_trans_state_log_
=
false
;
}
void
destroy
()
{
...
...
@@ -3563,7 +3564,7 @@ public:
K_
(
global_trans_version
),
K_
(
commit_log_checksum
),
K_
(
state
),
K_
(
prepare_version
),
K_
(
max_durable_sql_no
),
K_
(
trans_type
),
K_
(
elr_prepared_state
),
K_
(
is_dup_table_trans
),
K_
(
redo_log_no
),
K_
(
mutator_log_no
),
K_
(
stmt_info
),
K_
(
min_log_ts
),
K_
(
min_log_id
),
K_
(
sp_user_request
),
K_
(
need_checksum
),
K_
(
prepare_log_id
),
K_
(
prepare_log_timestamp
),
K_
(
prev_checkpoint_id
));
K_
(
prepare_log_timestamp
),
K_
(
prev_checkpoint_id
)
,
K_
(
has_trans_state_log
)
);
ObTransTableStatusInfo
trans_table_info_
;
common
::
ObPartitionKey
partition_
;
ObStartTransParam
trans_param_
;
...
...
@@ -3599,6 +3600,7 @@ public:
int64_t
prepare_log_timestamp_
;
int64_t
clear_log_base_ts_
;
uint64_t
prev_checkpoint_id_
;
bool
has_trans_state_log_
;
};
struct
CtxInfo
final
{
...
...
src/storage/transaction/ob_trans_part_ctx.cpp
浏览文件 @
e2fa173d
...
...
@@ -10602,6 +10602,7 @@ int ObPartTransCtx::recover_from_trans_sstable_durable_ctx_info(ObTransSSTableDu
clear_log_base_ts_
=
ctx_info
.
clear_log_base_ts_
;
// for record log
prev_checkpoint_id_
=
ctx_info
.
prev_checkpoint_id_
;
has_trans_state_log_
=
ctx_info
.
has_trans_state_log_
;
(
void
)
mark_dirty_trans
();
...
...
@@ -10684,6 +10685,7 @@ int ObPartTransCtx::get_trans_sstable_durable_ctx_info(const int64_t log_ts, ObT
info
.
prepare_log_timestamp_
=
prepare_log_timestamp_
;
info
.
clear_log_base_ts_
=
clear_log_base_ts_
;
info
.
prev_checkpoint_id_
=
prev_checkpoint_id_
;
info
.
has_trans_state_log_
=
has_trans_state_log_
;
TRANS_LOG
(
INFO
,
"trans table status when dump trans table"
,
K
(
*
this
),
K
(
info
),
K
(
log_ts
));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录