MySQL 9.1.0
Source Code Documentation
|
Memory storage of the replication failover channel status configuration propagated to Group Replication members. More...
#include <rpl_async_conn_failover_configuration_propagation.h>
Public Types | |
enum | enum_key { SOURCE_CONNECTION_AUTO_FAILOVER = 0 } |
Status keys propagated with the group. More... | |
Static Private Member Functions | |
static std::string | get_key_name (Rpl_acf_status_configuration::enum_key key) |
Private Attributes | |
mysql_mutex_t | m_lock |
ulonglong | m_version {0} |
std::map< std::pair< std::string, std::string >, int > | m_status |
Static Private Attributes | |
static const std::vector< std::string > | m_key_names |
Memory storage of the replication failover channel status configuration propagated to Group Replication members.
Rpl_acf_status_configuration::Rpl_acf_status_configuration | ( | ) |
|
virtual |
void Rpl_acf_status_configuration::delete_channel_status | ( | const std::string & | channel, |
Rpl_acf_status_configuration::enum_key | key | ||
) |
Delete the status configuration value.
[in] | channel | the channel name. |
[in] | key | the variable whose status to set and increment version. |
void Rpl_acf_status_configuration::get | ( | protobuf_replication_asynchronous_connection_failover::SourceAndManagedAndStatusList & | configuration | ) |
Gets the status configuration to send to the group.
[out] | configuration | the configuration in protobuf |
|
staticprivate |
void Rpl_acf_status_configuration::reload | ( | ) |
Reloads the status configuration from runtime information.
bool Rpl_acf_status_configuration::reset | ( | void | ) |
Clears the status configuration.
bool Rpl_acf_status_configuration::set | ( | const protobuf_replication_asynchronous_connection_failover::SourceAndManagedAndStatusList & | configuration | ) |
Sets the status configuration with the one received from the group.
[in] | configuration | the configuration in protobuf |
bool Rpl_acf_status_configuration::set | ( | const protobuf_replication_asynchronous_connection_failover::VariableStatusList & | configuration | ) |
Sets the status configuration with the one received from the group.
[in] | configuration | the configuration in protobuf |
void Rpl_acf_status_configuration::set_value_and_increment_version | ( | const std::string & | channel, |
Rpl_acf_status_configuration::enum_key | key, | ||
int | value, | ||
protobuf_replication_asynchronous_connection_failover::VariableStatusList & | configuration | ||
) |
Sets the status configuration value and increment version value.
[in] | channel | the channel name. |
[in] | key | the variable whose status to set and increment version. |
[in] | value | the variable status value to set. |
[in] | configuration | the configuration in protobuf |
|
staticprivate |
|
private |
|
private |
|
private |