MySQL 8.4.2
Source Code Documentation
|
#include "dest_metadata_cache.h"
#include <algorithm>
#include <cctype>
#include <chrono>
#include <iterator>
#include <memory>
#include <mutex>
#include <set>
#include <stdexcept>
#include <string>
#include <string_view>
#include <system_error>
#include "mysql/harness/logging/logging.h"
#include "mysql/harness/plugin.h"
#include "mysqlrouter/destination.h"
#include "mysqlrouter/routing.h"
#include "tcp_address.h"
Classes | |
class | MetadataCacheDestination |
Namespaces | |
namespace | anonymous_namespace{dest_metadata_cache.cc} |
Functions | |
DestMetadataCacheGroup::ServerRole | get_server_role_from_uri (const mysqlrouter::URIQuery &uri) |
routing::RoutingStrategy | get_default_routing_strategy (const DestMetadataCacheGroup::ServerRole role) |
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 | |
static const auto | kPrimaryFailoverTimeout = 10s |
static constexpr std::array | supported_params |
constexpr const std::array< std::pair< std::string_view, DestMetadataCacheGroup::ServerRole >, 3 > | anonymous_namespace{dest_metadata_cache.cc}::known_roles |
routing::RoutingStrategy get_default_routing_strategy | ( | const DestMetadataCacheGroup::ServerRole | role | ) |
bool get_disconnect_on_metadata_unavailable | ( | const mysqlrouter::URIQuery & | uri | ) |
bool get_disconnect_on_promoted_to_primary | ( | const mysqlrouter::URIQuery & | uri, |
const DestMetadataCacheGroup::ServerRole & | role | ||
) |
DestMetadataCacheGroup::ServerRole get_server_role_from_uri | ( | const mysqlrouter::URIQuery & | uri | ) |
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 | ||
) |
|
static |
|
staticconstexpr |