MySQL 9.1.0
Source Code Documentation
metadata_cache.cc File Reference
#include "metadata_cache.h"
#include <cassert>
#include <cmath>
#include <memory>
#include <stdexcept>
#include <vector>
#include "my_thread.h"
#include "mysql/harness/event_state_tracker.h"
#include "mysql/harness/logging/logging.h"
#include "mysql/harness/plugin.h"
#include "mysqld_error.h"
#include "mysqlrouter/mysql_client_thread_token.h"
#include "mysqlrouter/mysql_session.h"

Namespaces

 

Functions

bool metadata_cache::operator== (const metadata_cache::ManagedCluster &cluster_a, const metadata_cache::ManagedCluster &cluster_b)
 
bool metadata_cache::operator!= (const metadata_cache::ManagedCluster &cluster_a, const metadata_cache::ManagedCluster &cluster_b)
 
bool metadata_cache::operator== (const metadata_cache::ClusterTopology &a, const metadata_cache::ClusterTopology &b)
 
bool metadata_cache::operator!= (const metadata_cache::ClusterTopology &a, const metadata_cache::ClusterTopology &b)
 
std::string to_string (metadata_cache::ServerMode mode)
 
std::string get_hidden_info (const metadata_cache::ManagedInstance &instance)
 Gets user readable information string about the nodes attributes related to _hidden and _disconnect_existing_sessions_when_hidden tags. More...
 
static bool primary_has_changed (const std::vector< metadata_cache::ManagedInstance > &members, const std::string &primary_server_uuid)
 check if primary has changed. More...
 

Function Documentation

◆ get_hidden_info()

std::string get_hidden_info ( const metadata_cache::ManagedInstance instance)

Gets user readable information string about the nodes attributes related to _hidden and _disconnect_existing_sessions_when_hidden tags.

◆ primary_has_changed()

static bool primary_has_changed ( const std::vector< metadata_cache::ManagedInstance > &  members,
const std::string &  primary_server_uuid 
)
static

check if primary has changed.

  • hidden members are ignored
Parameters
memberscontainer current membership info
primary_server_uuidserver-uuid of the previous PRIMARY

◆ to_string()

std::string to_string ( metadata_cache::ServerMode  mode)