MySQL  8.0.19
Source Code Documentation
primary_election_invocation_handler.h File Reference

Go to the source code of this file.

Classes

class  Primary_election_handler
 

Functions

void sort_members_for_election (std::vector< Group_member_info * > *all_members_info, std::vector< Group_member_info * >::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...
 
std::vector< Group_member_info * >::iterator sort_and_get_lowest_version_member_position (std::vector< Group_member_info * > *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()

std::vector<Group_member_info *>::iterator sort_and_get_lowest_version_member_position ( std::vector< Group_member_info * > *  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 ( std::vector< Group_member_info * > *  all_members_info,
std::vector< Group_member_info * >::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.