MySQL 8.0.40
Source Code Documentation
anonymous_namespace{dest_metadata_cache.cc} Namespace Reference

Functions

DestMetadataCacheGroup::ServerRole get_server_role_from_uri (const mysqlrouter::URIQuery &uri)
 
std::string get_server_role_name (const DestMetadataCacheGroup::ServerRole role)
 
routing::RoutingStrategy get_default_routing_strategy (const DestMetadataCacheGroup::ServerRole role)
 
bool mode_is_valid (const routing::AccessMode mode, const DestMetadataCacheGroup::ServerRole role)
 check that mode (if present) is correct for the role More...
 
bool get_yes_no_option (const mysqlrouter::URIQuery &uri, const std::string &option_name, const bool defalut_res, const std::function< void()> &check_option_allowed)
 
bool get_disconnect_on_promoted_to_primary (const mysqlrouter::URIQuery &uri, const DestMetadataCacheGroup::ServerRole &role)
 
bool get_disconnect_on_metadata_unavailable (const mysqlrouter::URIQuery &uri)
 

Variables

constexpr const std::array< std::pair< std::string_view, DestMetadataCacheGroup::ServerRole >, 3 > known_roles
 

Function Documentation

◆ get_default_routing_strategy()

routing::RoutingStrategy anonymous_namespace{dest_metadata_cache.cc}::get_default_routing_strategy ( const DestMetadataCacheGroup::ServerRole  role)

◆ get_disconnect_on_metadata_unavailable()

bool anonymous_namespace{dest_metadata_cache.cc}::get_disconnect_on_metadata_unavailable ( const mysqlrouter::URIQuery uri)

◆ get_disconnect_on_promoted_to_primary()

bool anonymous_namespace{dest_metadata_cache.cc}::get_disconnect_on_promoted_to_primary ( const mysqlrouter::URIQuery uri,
const DestMetadataCacheGroup::ServerRole role 
)

◆ get_server_role_from_uri()

DestMetadataCacheGroup::ServerRole anonymous_namespace{dest_metadata_cache.cc}::get_server_role_from_uri ( const mysqlrouter::URIQuery uri)

◆ get_server_role_name()

std::string anonymous_namespace{dest_metadata_cache.cc}::get_server_role_name ( const DestMetadataCacheGroup::ServerRole  role)

◆ get_yes_no_option()

bool anonymous_namespace{dest_metadata_cache.cc}::get_yes_no_option ( const mysqlrouter::URIQuery uri,
const std::string &  option_name,
const bool  defalut_res,
const std::function< void()> &  check_option_allowed 
)

◆ mode_is_valid()

bool anonymous_namespace{dest_metadata_cache.cc}::mode_is_valid ( const routing::AccessMode  mode,
const DestMetadataCacheGroup::ServerRole  role 
)

check that mode (if present) is correct for the role

Variable Documentation

◆ known_roles

constexpr const std::array< std::pair<std::string_view, DestMetadataCacheGroup::ServerRole>, 3> anonymous_namespace{dest_metadata_cache.cc}::known_roles
constexpr
Initial value:
{{
{"PRIMARY", DestMetadataCacheGroup::ServerRole::Primary},
{"SECONDARY", DestMetadataCacheGroup::ServerRole::Secondary},
{"PRIMARY_AND_SECONDARY",
DestMetadataCacheGroup::ServerRole::PrimaryAndSecondary},
}}