MySQL 8.3.0
Source Code Documentation
cluster_metadata.h File Reference
#include "mysqlrouter/router_export.h"
#include <optional>
#include <stdexcept>
#include <string>
#include "mysql/harness/stdx/expected.h"

Go to the source code of this file.

Classes

struct  mysqlrouter::MetadataSchemaVersion
 
class  mysqlrouter::MetadataUpgradeInProgressException
 
class  mysqlrouter::TargetCluster
 

Namespaces

namespace  mysqlrouter
 

Enumerations

enum class  mysqlrouter::ClusterType { mysqlrouter::GR_V1 , mysqlrouter::GR_V2 , mysqlrouter::GR_CS , mysqlrouter::RS_V2 }
 
enum class  mysqlrouter::InstanceType { mysqlrouter::GroupMember , mysqlrouter::AsyncMember , mysqlrouter::ReadReplica , mysqlrouter::Unsupported }
 

Functions

std::string ROUTER_LIB_EXPORT mysqlrouter::to_string (const MetadataSchemaVersion &version)
 
MetadataSchemaVersion ROUTER_LIB_EXPORT mysqlrouter::get_metadata_schema_version (MySQLSession *mysql)
 
bool ROUTER_LIB_EXPORT mysqlrouter::metadata_schema_version_is_compatible (const mysqlrouter::MetadataSchemaVersion &required, const mysqlrouter::MetadataSchemaVersion &available)
 
bool ROUTER_LIB_EXPORT mysqlrouter::metadata_schema_version_is_deprecated (const mysqlrouter::MetadataSchemaVersion &version)
 
std::string ROUTER_LIB_EXPORT mysqlrouter::get_metadata_schema_deprecated_msg (const mysqlrouter::MetadataSchemaVersion &version)
 
bool ROUTER_LIB_EXPORT mysqlrouter::check_group_replication_online (MySQLSession *mysql)
 
bool ROUTER_LIB_EXPORT mysqlrouter::check_group_has_quorum (MySQLSession *mysql)
 
template<size_t N>
bool mysqlrouter::metadata_schema_version_is_compatible (const mysqlrouter::MetadataSchemaVersion(&required)[N], const mysqlrouter::MetadataSchemaVersion &available)
 
template<size_t N>
std::string mysqlrouter::to_string (const mysqlrouter::MetadataSchemaVersion(&version)[N])
 
ClusterType ROUTER_LIB_EXPORT mysqlrouter::get_cluster_type (const MetadataSchemaVersion &schema_version, MySQLSession *mysql, unsigned int router_id=0)
 
std::string ROUTER_LIB_EXPORT mysqlrouter::to_string (const ClusterType cluster_type)
 
stdx::expected< void, std::string > ROUTER_LIB_EXPORT mysqlrouter::setup_metadata_session (MySQLSession &session)
 
bool ROUTER_LIB_EXPORT mysqlrouter::is_part_of_cluster_set (MySQLSession *mysql)
 
std::optional< InstanceType > ROUTER_LIB_EXPORT mysqlrouter::str_to_instance_type (const std::string &)
 
std::string ROUTER_LIB_EXPORT mysqlrouter::to_string (const InstanceType)
 

Variables

constexpr MetadataSchemaVersion mysqlrouter::kRequiredBootstrapSchemaVersion []
 
constexpr MetadataSchemaVersion mysqlrouter::kRequiredRoutingMetadataSchemaVersion []
 
constexpr MetadataSchemaVersion mysqlrouter::kNewMetadataVersion {2, 0, 0}
 
constexpr MetadataSchemaVersion mysqlrouter::kClusterSetsMetadataVersion {2, 1, 0}
 
constexpr MetadataSchemaVersion mysqlrouter::kUpgradeInProgressMetadataVersion {0, 0, 0}
 
constexpr const std::string_view mysqlrouter::kNodeTagHidden {"_hidden"}
 
constexpr const std::string_view mysqlrouter::kNodeTagDisconnectWhenHidden
 
constexpr const bool mysqlrouter::kNodeTagHiddenDefault {false}
 
constexpr const bool mysqlrouter::kNodeTagDisconnectWhenHiddenDefault {true}