![]() |
MySQL 9.7.0
Source Code Documentation
|
#include <my_time.h>#include <mysql/components/component_implementation.h>#include <mysql/components/my_service.h>#include <mysql/components/service_implementation.h>#include <mysql/components/services/component_status_var_service.h>#include <mysql/components/services/component_sys_var_service.h>#include <mysql/components/services/log_builtins.h>#include <mysql/components/services/mysql_runtime_error_service.h>#include <mysqld_error.h>#include <atomic>#include "mysql/components/services/group_replication_elect_prefers_most_updated_service.h"#include "mysql/components/services/registry.h"Classes | |
| class | Group_replication_primary_election_imp |
Functions | |
| REQUIRES_SERVICE_PLACEHOLDER (mysql_runtime_error) | |
| REQUIRES_SERVICE_PLACEHOLDER (component_sys_variable_register) | |
| REQUIRES_SERVICE_PLACEHOLDER (component_sys_variable_unregister) | |
| REQUIRES_SERVICE_PLACEHOLDER (registry_registration) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (status_variable_registration, statvar_register_srv) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (log_builtins, log_bi) | |
| REQUIRES_SERVICE_PLACEHOLDER_AS (log_builtins_string, log_bs) | |
| const std::string | comp_enable_full_error_name (std::string(component_name)+std::string(".")+std::string(component_name)) |
| static int | gr_primary_election_uptodate_to_apply (THD *, SHOW_VAR *var, char *buf) |
| static int | gr_primary_election_uptodate_timestamp (THD *, SHOW_VAR *var, char *buf) |
| int | register_system_variables () |
| Register global system variables with component information. More... | |
| int | unregister_system_variables () |
| Unregister global system variables with component information. More... | |
| mysql_service_status_t | group_replication_primary_election_init () |
| Initialization entry method for Component used when loading the Component. More... | |
| mysql_service_status_t | group_replication_primary_election_deinit () |
| De-initialization method for Component used when unloading the Component. More... | |
| PROVIDES_SERVICE (group_replication_primary_election, group_replication_primary_election) | |
| END_COMPONENT_PROVIDES () | |
| REQUIRES_SERVICE (mysql_runtime_error) | |
| REQUIRES_SERVICE_AS (status_variable_registration, statvar_register_srv) | |
| REQUIRES_SERVICE (component_sys_variable_register) | |
| REQUIRES_SERVICE (component_sys_variable_unregister) | |
| REQUIRES_SERVICE (registry_registration) | |
| REQUIRES_SERVICE_AS (log_builtins, log_bi) | |
| REQUIRES_SERVICE_AS (log_builtins_string, log_bs) | |
| END_COMPONENT_REQUIRES () | |
| METADATA ("mysql.author", "Oracle Corporation") | |
| METADATA ("mysql.license", "GPL") | |
| END_COMPONENT_METADATA () | |
| DECLARE_LIBRARY_COMPONENTS & | COMPONENT_REF (group_replication_primary_election_component) |
Variables | |
| const char | component_name [] = LOG_COMPONENT_TAG |
| const char | component_enable_var_name [] = "enabled" |
| static std::atomic< bool > | enabled {true} |
| static std::atomic< uint64_t > | gr_most_uptodate_delta_to_apply {0} |
| static std::string | gr_most_uptodate_timestamp {""} |
| static SHOW_VAR | status_func_var [] |
| const mysql_service_group_replication_primary_election_t | imp_group_replication_primary_election_group_replication_primary_election |
| mysql_component_t | mysql_component_group_replication_primary_election_component |
| const std::string comp_enable_full_error_name | ( | std::string(component_name)+std::string(".")+std::string(component_name) | ) |
| DECLARE_LIBRARY_COMPONENTS & COMPONENT_REF | ( | group_replication_primary_election_component | ) |
| END_COMPONENT_METADATA | ( | ) |
| END_COMPONENT_PROVIDES | ( | ) |
| END_COMPONENT_REQUIRES | ( | ) |
| mysql_service_status_t group_replication_primary_election_deinit | ( | ) |
De-initialization method for Component used when unloading the Component.
| 0 | success |
| non-zero | failure |
| mysql_service_status_t group_replication_primary_election_init | ( | ) |
Initialization entry method for Component used when loading the Component.
| 0 | success |
| non-zero | failure |
| METADATA | ( | "mysql.author" | , |
| "Oracle Corporation" | |||
| ) |
| METADATA | ( | "mysql.license" | , |
| "GPL" | |||
| ) |
| PROVIDES_SERVICE | ( | group_replication_primary_election | , |
| group_replication_primary_election | |||
| ) |
| int register_system_variables | ( | ) |
Register global system variables with component information.
| 0 | success |
| non-zero | failure |
| REQUIRES_SERVICE | ( | component_sys_variable_register | ) |
| REQUIRES_SERVICE | ( | component_sys_variable_unregister | ) |
| REQUIRES_SERVICE | ( | mysql_runtime_error | ) |
| REQUIRES_SERVICE | ( | registry_registration | ) |
| REQUIRES_SERVICE_AS | ( | log_builtins | , |
| log_bi | |||
| ) |
| REQUIRES_SERVICE_AS | ( | log_builtins_string | , |
| log_bs | |||
| ) |
| REQUIRES_SERVICE_AS | ( | status_variable_registration | , |
| statvar_register_srv | |||
| ) |
| REQUIRES_SERVICE_PLACEHOLDER | ( | component_sys_variable_register | ) |
| REQUIRES_SERVICE_PLACEHOLDER | ( | component_sys_variable_unregister | ) |
| REQUIRES_SERVICE_PLACEHOLDER | ( | mysql_runtime_error | ) |
| REQUIRES_SERVICE_PLACEHOLDER | ( | registry_registration | ) |
| REQUIRES_SERVICE_PLACEHOLDER_AS | ( | log_builtins | , |
| log_bi | |||
| ) |
| REQUIRES_SERVICE_PLACEHOLDER_AS | ( | log_builtins_string | , |
| log_bs | |||
| ) |
| REQUIRES_SERVICE_PLACEHOLDER_AS | ( | status_variable_registration | , |
| statvar_register_srv | |||
| ) |
| int unregister_system_variables | ( | ) |
Unregister global system variables with component information.
| 0 | success |
| non-zero | failure |
| const char component_enable_var_name[] = "enabled" |
| const char component_name[] = LOG_COMPONENT_TAG |
|
static |
|
static |
|
static |
| const mysql_service_group_replication_primary_election_t imp_group_replication_primary_election_group_replication_primary_election |
| mysql_component_t mysql_component_group_replication_primary_election_component |
|
static |