@@ -807,15 +807,15 @@ int ObElectionGroup::process_vote_prepare_(const ObElectionMsgEGPrepare& msg, co
807807 ELECT_ASYNC_LOG_ (WARN, " store prepare message error" , K (ret), " election_group" , *this , K (msg));
808808 } else {
809809 T1_timestamp_ = msg_t1;
810- if (OB_FAIL (try_centrialized_voting_ (now_lease_time))) {
811- ELECT_ASYNC_LOG_ (WARN, " try centrialized voting error" , K (ret), " self" , *this , K (msg), K (now_lease_time));
810+ if (OB_FAIL (try_centralized_voting_ (now_lease_time))) {
811+ ELECT_ASYNC_LOG_ (WARN, " try centralized voting error" , K (ret), " self" , *this , K (msg), K (now_lease_time));
812812 } else {
813813 if (msg_eg_version != eg_version_ && ROLE_SLAVE == role_) {
814814 ELECT_ASYNC_LOG_ (
815815 INFO, " eg_version not equal with leader when send_vote_vote" , K (msg), K (msg_eg_version), " self" , *this );
816816 }
817817 }
818- REC_TRACE_EXT (tlog_, try_centrialized_voting , Y (ret), Y_ (vote_period), Y (lease_time));
818+ REC_TRACE_EXT (tlog_, try_centralized_voting , Y (ret), Y_ (vote_period), Y (lease_time));
819819 }
820820 }
821821 }
@@ -896,7 +896,7 @@ int ObElectionGroup::handle_vote_prepare(
896896 return ret;
897897}
898898
899- int ObElectionGroup::try_centrialized_voting_ (const int64_t lease_time)
899+ int ObElectionGroup::try_centralized_voting_ (const int64_t lease_time)
900900{
901901 int ret = OB_SUCCESS;
902902 ObAddr msg_cur_leader;
@@ -1162,7 +1162,7 @@ void ObElectionGroup::clear_part_stat_vote_cnt_()
11621162// receive new message
11631163// 1. check if received enough messages
11641164// 2. if so, send vote success message
1165- int ObElectionGroup::check_centrialized_majority_ ()
1165+ int ObElectionGroup::check_centralized_majority_ ()
11661166{
11671167 int ret = OB_SUCCESS;
11681168 ObAddr cur_leader;
@@ -1184,7 +1184,7 @@ int ObElectionGroup::check_centrialized_majority_()
11841184 if (OB_ELECTION_WARN_NOT_REACH_MAJORITY == ret || OB_ELECTION_WAIT_LEADER_MESSAGE == ret) {
11851185 // no enough message or waiting for leader's message
11861186 } else {
1187- ELECT_ASYNC_LOG_ (WARN, " check_centrialized_majority_ error" , K (ret), K_ (eg_id));
1187+ ELECT_ASYNC_LOG_ (WARN, " check_centralized_majority_ error" , K (ret), K_ (eg_id));
11881188 }
11891189 } else {
11901190 bool arg_all_part_merged_in = is_all_part_merged_in_;
@@ -1229,7 +1229,7 @@ int ObElectionGroup::check_centrialized_majority_()
12291229 }
12301230 } else {
12311231 ret = OB_STATE_NOT_MATCH;
1232- FORCE_ELECT_LOG (WARN, " check_centrialized_majority_ error" , K (ret), K (*this ), K (cur_leader));
1232+ FORCE_ELECT_LOG (WARN, " check_centralized_majority_ error" , K (ret), K (*this ), K (cur_leader));
12331233 }
12341234 }
12351235 clear_part_stat_vote_cnt_ ();
@@ -1957,10 +1957,10 @@ void ObElectionGroup::run_gt3_task(const int64_t expect_ts)
19571957 ELECT_ASYNC_LIMIT_LOG (
19581958 WARN, " run time out of range" , K (ret), " self" , *this , K (cur_ts), K (expect_ts), " delta" , cur_ts - expect_ts);
19591959 } else {
1960- if (OB_FAIL (check_centrialized_majority_ ())) {
1961- ELECT_ASYNC_LOG_ (WARN, " check_centrialized_majority_ error" , K (ret), " self" , *this );
1960+ if (OB_FAIL (check_centralized_majority_ ())) {
1961+ ELECT_ASYNC_LOG_ (WARN, " check_centralized_majority_ error" , K (ret), " self" , *this );
19621962 }
1963- REC_TRACE_EXT (tlog_, check_centrialized_majority , Y (ret));
1963+ REC_TRACE_EXT (tlog_, check_centralized_majority , Y (ret));
19641964 }
19651965 ELECT_ASYNC_LOG (DEBUG, " GT3Task" , K (ret), " self" , *this , K (expect_ts), K (cur_ts));
19661966}
0 commit comments