fix max majority too much when switch leader to follower
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user