MySQL 8.0.39
Source Code Documentation
primary_election_invocation_handler.h File Reference

Go to the source code of this file.

Classes

class  Primary_election_handler
 The base class to request and execute an election. More...
 

Functions

void sort_members_for_election (Group_member_info_list *all_members_info, Group_member_info_list_iterator lowest_version_end)
 Sort lower version members based on member weight if member version is greater than equal to PRIMARY_ELECTION_MEMBER_WEIGHT_VERSION or uuid. More...
 
Group_member_info_list_iterator sort_and_get_lowest_version_member_position (Group_member_info_list *all_members_info)
 Sort members based on member_version and get first iterator position where member version differs. More...
 

Function Documentation

◆ sort_and_get_lowest_version_member_position()

Group_member_info_list_iterator sort_and_get_lowest_version_member_position ( Group_member_info_list all_members_info)

Sort members based on member_version and get first iterator position where member version differs.

Parameters
all_members_infothe vector with members info
Returns
the first iterator position where members version increase.
Note
from the start of the list to the returned iterator, all members have the lowest version in the group.

◆ sort_members_for_election()

void sort_members_for_election ( Group_member_info_list all_members_info,
Group_member_info_list_iterator  lowest_version_end 
)

Sort lower version members based on member weight if member version is greater than equal to PRIMARY_ELECTION_MEMBER_WEIGHT_VERSION or uuid.

Parameters
all_members_infothe vector with members info
lowest_version_endfirst iterator position where members version increases.