MySQL 9.1.0
Source Code Documentation
cluster_metadata.cc File Reference
#include "cluster_metadata.h"
#include <algorithm>
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <sstream>
#include <stdexcept>
#include <vector>
#include <errmsg.h>
#include <mysql.h>
#include "configuration_update_schema.h"
#include "dim.h"
#include "group_replication_metadata.h"
#include "log_suppressor.h"
#include "mysql/harness/dynamic_config.h"
#include "mysql/harness/event_state_tracker.h"
#include "mysql/harness/logging/logging.h"
#include "mysql/harness/utility/string.h"
#include "mysqld_error.h"
#include "mysqlrouter/cluster_metadata_instance_attributes.h"
#include "mysqlrouter/mysql_session.h"
#include "mysqlrouter/uri.h"
#include "mysqlrouter/utils.h"
#include "mysqlrouter/utils_sqlstring.h"
#include "router_config.h"
#include "tcp_address.h"

Functions

std::string as_string (const char *input_str)
 Return a string representation of the input character string. More...
 
bool set_instance_ports (metadata_cache::ManagedInstance &instance, const mysqlrouter::MySQLSession::Row &row, const size_t classic_port_column, const size_t x_port_column)
 
static std::string get_limit_target_cluster_clause (const mysqlrouter::TargetCluster &target_cluster, const mysqlrouter::ClusterType &cluster_type, mysqlrouter::MySQLSession &session)
 
void set_instance_attributes (metadata_cache::ManagedInstance &instance, const std::string &attributes)
 

Function Documentation

◆ as_string()

std::string as_string ( const char *  input_str)

Return a string representation of the input character string.

Parameters
input_strA character string.
Returns
A string object encapsulation of the input character string. An empty string if input string is nullptr.

◆ get_limit_target_cluster_clause()

static std::string get_limit_target_cluster_clause ( const mysqlrouter::TargetCluster target_cluster,
const mysqlrouter::ClusterType cluster_type,
mysqlrouter::MySQLSession session 
)
static

◆ set_instance_attributes()

void set_instance_attributes ( metadata_cache::ManagedInstance instance,
const std::string &  attributes 
)

◆ set_instance_ports()

bool set_instance_ports ( metadata_cache::ManagedInstance instance,
const mysqlrouter::MySQLSession::Row row,
const size_t  classic_port_column,
const size_t  x_port_column 
)