fix max majority too much when switch leader to follower

This commit is contained in:
handora
2022-03-15 12:00:50 +08:00
committed by LINxiansheng
parent fb27693fff
commit fc1052428f
10 changed files with 61 additions and 6 deletions

View File

@ -189,6 +189,11 @@ public:
UNUSED(idc);
return OB_SUCCESS;
}
virtual void try_update_max_majority_log(const uint64_t log_id, const int64_t log_ts)
{
UNUSED(log_id);
UNUSED(log_ts);
}
virtual int fetch_register_server_resp_v2(const common::ObAddr& sender, const bool is_assign_parent_succeed,
const share::ObCascadMemberList& candidate_list, const int32_t msg_type)
{

View File

@ -249,6 +249,7 @@ public:
MOCK_METHOD1(get_checkpoint, int(int64_t& checkpoint));
MOCK_METHOD1(update_last_checkpoint, int(const int64_t checkpoint));
MOCK_METHOD1(set_replay_checkpoint, int(const int64_t checkpoint));
MOCK_METHOD2(update_max_majority_log, int(const uint64_t log_id, const int64_t log_ts));
// MOCK_METHOD1(get_replay_checkpoint, int(int64_t &checkpoint));
int get_replay_checkpoint(int64_t& checkpoint)
{