Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Metz
oceanbase
提交
5183f3af
O
oceanbase
项目概览
Metz
/
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,发现更多精彩内容 >>
未验证
提交
5183f3af
编写于
11月 23, 2021
作者:
Z
Zhihao Chen
提交者:
GitHub
11月 23, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix typos in ob_partition_log_service.cpp (#559)
上级
28026e84
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
7 addition
and
7 deletion
+7
-7
src/clog/ob_partition_log_service.cpp
src/clog/ob_partition_log_service.cpp
+7
-7
未找到文件。
src/clog/ob_partition_log_service.cpp
浏览文件 @
5183f3af
...
...
@@ -823,7 +823,7 @@ int ObPartitionLogService::change_member_(
CLOG_LOG
(
WARN
,
"invalid argument"
,
K
(
member
),
K
(
quorum
),
K
(
ret
));
}
else
{
// ========== step 1 ===========
// 1) check it can do cha
gn
e member
// 1) check it can do cha
ng
e member
// 2) get current membership_ts and member_list
// 3) get current proposal_id
//
...
...
@@ -1888,7 +1888,7 @@ int ObPartitionLogService::process_archive_checkpoint(const uint64_t next_log_id
"process_archive_checkpoint in unexpected state"
,
K_
(
partition_key
),
K
(
ret
),
"is_archive_reso
tr
ing"
,
"is_archive_reso
rt
ing"
,
restore_mgr_
.
is_archive_restoring
(),
"role"
,
restore_mgr_
.
get_role
(),
...
...
@@ -2109,7 +2109,7 @@ int ObPartitionLogService::fake_ack_log(const ObAddr& server, const uint64_t log
}
else
if
(
!
state_mgr_
.
can_receive_log_ack
(
proposal_id
)
||
self_
==
server
)
{
ret
=
OB_STATE_NOT_MATCH
;
}
else
if
(
LEADER
!=
state_mgr_
.
get_role
()
||
!
is_in_curr_member_list
)
{
// self is not leader or sender is not paxos mem
e
ber, ignore
// self is not leader or sender is not paxos member, ignore
}
else
if
(
log_id
!=
sw_
.
get_start_id
())
{
// log_id not match with current start_id, skip
}
else
{
...
...
@@ -2159,7 +2159,7 @@ int ObPartitionLogService::ack_renew_ms_log(
}
ret
=
OB_STATE_NOT_MATCH
;
}
else
if
(
!
is_in_curr_member_list
)
{
// if not paxos mem
e
ber, record ts and skip majority count
// if not paxos member, record ts and skip majority count
}
else
{
// only leader need to count majority, other parent skip
bool
majority
=
false
;
...
...
@@ -6162,7 +6162,7 @@ int ObPartitionLogService::notify_log_missing(
if
(
!
restore_mgr_
.
is_standby_restore_state
())
{
CLOG_LOG
(
INFO
,
"self is not in restore state, ignore msg"
,
K_
(
partition_key
),
K
(
src_server
));
}
else
if
(
FOLLOWER
!=
state_mgr_
.
get_role
())
{
CLOG_LOG
(
WARN
,
"self is not follower, igore msg"
,
K_
(
partition_key
),
K
(
src_server
));
CLOG_LOG
(
WARN
,
"self is not follower, ig
n
ore msg"
,
K_
(
partition_key
),
K
(
src_server
));
}
else
if
(
ObReplicaTypeCheck
::
is_paxos_replica_V2
(
replica_type
)
&&
!
is_in_member_list
)
{
CLOG_LOG
(
INFO
,
"self is paxos replica, but not in standby_leader's member_list, cannot exec restore"
,
...
...
@@ -6784,7 +6784,7 @@ int ObPartitionLogService::pre_change_member(const int64_t quorum, const bool is
if
(
!
is_standby_op
)
{
proposal_id
=
state_mgr_
.
get_proposal_id
();
}
else
{
// standby non-private ta
lb
e's member change, use ms_proposal_id
// standby non-private ta
bl
e's member change, use ms_proposal_id
proposal_id
=
mm_
.
get_ms_proposal_id
();
}
if
(
OB_SUCCESS
!=
(
ret
=
member_list
.
deep_copy
(
mm_
.
get_curr_member_list
())))
{
...
...
@@ -6999,7 +6999,7 @@ int ObPartitionLogService::leader_keepalive(const int64_t keepalive_interval)
if
(
!
ObMultiClusterUtil
::
is_cluster_private_table
(
partition_key_
.
get_table_id
()))
{
if
(
GCTX
.
is_primary_cluster
()
||
GCTX
.
is_in_flashback_state
()
||
GCTX
.
is_in_cleanup_state
())
{
// non-private leader only in flashback/cleanup state can advance next_log_ts
// it cannot do this in swi
t
hing state, which may lead conflict with new primary cluster
// it cannot do this in swi
c
hing state, which may lead conflict with new primary cluster
is_cluster_status_allow_update
=
true
;
}
else
{
is_cluster_status_allow_update
=
false
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录