Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
野花太放肆
oceanbase
提交
9a236eda
O
oceanbase
项目概览
野花太放肆
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
1
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 搜索 >>
提交
9a236eda
编写于
10月 26, 2022
作者:
O
obdev
提交者:
wangzelin.wzl
10月 26, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix cb may not be set
上级
d441da91
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
8 addition
and
0 deletion
+8
-0
src/storage/tx/ob_id_service.cpp
src/storage/tx/ob_id_service.cpp
+7
-0
src/storage/tx/ob_id_service.h
src/storage/tx/ob_id_service.h
+1
-0
未找到文件。
src/storage/tx/ob_id_service.cpp
浏览文件 @
9a236eda
...
...
@@ -117,6 +117,10 @@ int ObIDService::submit_log_(const int64_t last_id, const int64_t limited_id)
}
else
if
(
last_id
<
0
||
limited_id
<
0
)
{
ret
=
OB_INVALID_ARGUMENT
;
TRANS_LOG
(
WARN
,
"invalid argument"
,
K
(
ret
),
K
(
last_id
),
K
(
limited_id
));
}
else
if
(
limited_id
<=
ATOMIC_LOAD
(
&
limited_id_
))
{
if
(
EXECUTE_COUNT_PER_SEC
(
10
))
{
TRANS_LOG
(
INFO
,
"no log required"
,
K
(
limited_id
),
K
(
ATOMIC_LOAD
(
&
limited_id_
)));
}
}
else
if
(
OB_FAIL
(
check_and_fill_ls
()))
{
TRANS_LOG
(
WARN
,
"ls set fail"
,
K
(
ret
));
}
else
{
...
...
@@ -500,6 +504,7 @@ int ObPresistIDLogCb::on_success()
ret
=
OB_ERR_UNEXPECTED
;
TRANS_LOG
(
WARN
,
"timestamp service is null"
,
K
(
ret
));
}
else
{
timestamp_service
->
test_lock
();
if
(
OB_FAIL
(
timestamp_service
->
handle_submit_callback
(
true
,
limited_id_
,
log_ts_
)))
{
TRANS_LOG
(
WARN
,
"timestamp service handle log callback fail"
,
K
(
ret
),
K_
(
limited_id
),
K_
(
log_ts
));
}
...
...
@@ -513,6 +518,7 @@ int ObPresistIDLogCb::on_success()
ret
=
OB_ERR_UNEXPECTED
;
TRANS_LOG
(
WARN
,
"trans id service is null"
,
K
(
ret
));
}
else
{
trans_id_service
->
test_lock
();
if
(
OB_FAIL
(
trans_id_service
->
handle_submit_callback
(
true
,
limited_id_
,
log_ts_
)))
{
TRANS_LOG
(
WARN
,
"trans id service handle log callback fail"
,
K
(
ret
),
K_
(
limited_id
),
K_
(
log_ts
));
}
...
...
@@ -526,6 +532,7 @@ int ObPresistIDLogCb::on_success()
ret
=
OB_ERR_UNEXPECTED
;
TRANS_LOG
(
WARN
,
"das id service is null"
,
K
(
ret
));
}
else
{
das_id_service
->
test_lock
();
if
(
OB_FAIL
(
das_id_service
->
handle_submit_callback
(
true
,
limited_id_
,
log_ts_
)))
{
TRANS_LOG
(
WARN
,
"das id service handle log callback fail"
,
K
(
ret
),
K_
(
limited_id
),
K_
(
log_ts
));
}
...
...
src/storage/tx/ob_id_service.h
浏览文件 @
9a236eda
...
...
@@ -103,6 +103,7 @@ public:
//日志处理
int
handle_submit_callback
(
const
bool
success
,
const
int64_t
limited_id
,
const
int64_t
log_ts
);
void
test_lock
()
{
WLockGuard
guard
(
rwlock_
);
}
//获取回放数据
int
handle_replay_result
(
const
int64_t
last_id
,
const
int64_t
limited_id
,
const
int64_t
log_ts
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录