MySQL 9.1.0
Source Code Documentation
|
#include <string>
#include <vector>
#include "plugin/group_replication/include/member_info.h"
#include "plugin/group_replication/include/plugin_handlers/primary_election_include.h"
#include "plugin/group_replication/include/plugin_handlers/primary_election_primary_process.h"
#include "plugin/group_replication/include/plugin_handlers/primary_election_secondary_process.h"
#include "plugin/group_replication/include/plugin_messages/single_primary_message.h"
#include "plugin/group_replication/include/plugin_observers/group_transaction_observation_manager.h"
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... | |
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.
all_members_info | the vector with members info |
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.
all_members_info | the vector with members info |
lowest_version_end | first iterator position where members version increases. |