Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
FDD-WEB
oceanbase
提交
03f600e8
O
oceanbase
项目概览
FDD-WEB
/
oceanbase
与 Fork 源项目一致
Fork自
DP.peng / 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 搜索 >>
提交
03f600e8
编写于
10月 27, 2022
作者:
O
obdev
提交者:
wangzelin.wzl
10月 27, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify ObLSTxCtxMgr lock strategy
上级
1a6d072a
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
1 addition
and
17 deletion
+1
-17
src/storage/tx/ob_trans_ctx_mgr_v4.cpp
src/storage/tx/ob_trans_ctx_mgr_v4.cpp
+1
-17
未找到文件。
src/storage/tx/ob_trans_ctx_mgr_v4.cpp
浏览文件 @
03f600e8
...
...
@@ -538,7 +538,6 @@ int ObLSTxCtxMgr::iterator_tx_id(ObTxIDIterator& iter)
int
ObLSTxCtxMgr
::
get_tx_ctx_directly_from_hash_map
(
const
ObTransID
&
tx_id
,
ObPartTransCtx
*&
ctx
)
{
int
ret
=
OB_SUCCESS
;
RLockGuard
guard
(
rwlock_
);
ObTransCtx
*
tmp_ctx
=
NULL
;
if
(
IS_NOT_INIT
)
{
...
...
@@ -1007,8 +1006,6 @@ int ObLSTxCtxMgr::check_scheduler_status()
{
int
ret
=
OB_SUCCESS
;
ObTimeGuard
tg
(
"ObLSTxCtxMgr::check_scheduler_status"
,
100000
);
RDLockGuard
guard
(
rwlock_
);
tg
.
click
();
IteratePartCtxAskSchedulerStatusFunctor
functor
;
if
(
OB_FAIL
(
ls_tx_ctx_map_
.
for_each
(
functor
)))
{
...
...
@@ -1025,7 +1022,6 @@ int ObLSTxCtxMgr::check_modify_schema_elapsed(const ObTabletID &tablet_id,
int
ret
=
OB_SUCCESS
;
ObTimeGuard
timeguard
(
"ObLSTxCtxMgr::check_modify_schema_elapsed"
);
WLockGuard
guard
(
rwlock_
);
if
(
IS_NOT_INIT
)
{
TRANS_LOG
(
WARN
,
"ObLSTxCtxMgr not inited"
);
...
...
@@ -1057,7 +1053,6 @@ int ObLSTxCtxMgr::check_modify_time_elapsed(const ObTabletID &tablet_id,
int
ret
=
OB_SUCCESS
;
ObTimeGuard
timeguard
(
"ObLSTxCtxMgr::check_modify_time_elapsed"
);
WLockGuard
guard
(
rwlock_
);
if
(
IS_NOT_INIT
)
{
TRANS_LOG
(
WARN
,
"ObLSTxCtxMgr not inited"
);
...
...
@@ -1084,8 +1079,6 @@ int ObLSTxCtxMgr::iterate_tx_obj_lock_op(ObLockOpIterator &iter)
{
int
ret
=
OB_SUCCESS
;
RLockGuard
guard
(
rwlock_
);
if
(
IS_NOT_INIT
)
{
TRANS_LOG
(
WARN
,
"ObLSTxCtxMgr not inited"
);
ret
=
OB_NOT_INIT
;
...
...
@@ -1103,8 +1096,6 @@ int ObLSTxCtxMgr::iterate_tx_lock_stat(ObTxLockStatIterator &tx_lock_stat_iter)
{
int
ret
=
OB_SUCCESS
;
RLockGuard
guard
(
rwlock_
);
if
(
IS_NOT_INIT
)
{
TRANS_LOG
(
WARN
,
"ObLSTxCtxMgr not inited"
);
ret
=
OB_NOT_INIT
;
...
...
@@ -1122,8 +1113,6 @@ int ObLSTxCtxMgr::iterate_tx_ctx_stat(ObTxStatIterator &tx_stat_iter)
{
int
ret
=
OB_SUCCESS
;
RLockGuard
guard
(
rwlock_
);
if
(
IS_NOT_INIT
)
{
TRANS_LOG
(
WARN
,
"ObLSTxCtxMgr not inited"
);
ret
=
OB_NOT_INIT
;
...
...
@@ -1139,13 +1128,11 @@ int ObLSTxCtxMgr::iterate_tx_ctx_stat(ObTxStatIterator &tx_stat_iter)
int
ObLSTxCtxMgr
::
revert_tx_ctx
(
ObPartTransCtx
*
ctx
)
{
RLockGuard
guard
(
rwlock_
);
return
revert_tx_ctx_without_lock
(
ctx
);
}
int
ObLSTxCtxMgr
::
revert_tx_ctx
(
ObTransCtx
*
ctx
)
{
RLockGuard
guard
(
rwlock_
);
return
revert_tx_ctx_without_lock
(
ctx
);
}
...
...
@@ -1154,10 +1141,7 @@ int ObLSTxCtxMgr::revert_tx_ctx_without_lock(ObTransCtx *ctx)
int
ret
=
OB_SUCCESS
;
TRANS_LOG
(
DEBUG
,
"revert_tx_ctx_without_lock"
,
KPC
(
ctx
));
if
(
IS_NOT_INIT
)
{
TRANS_LOG
(
WARN
,
"ObLSTxCtxMgr not inited"
);
ret
=
OB_NOT_INIT
;
}
else
if
(
OB_ISNULL
(
ctx
))
{
if
(
OB_ISNULL
(
ctx
))
{
TRANS_LOG
(
WARN
,
"invalid argument"
,
KP
(
ctx
));
ret
=
OB_INVALID_ARGUMENT
;
}
else
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录