MySQL 8.0.40
Source Code Documentation
group_replication_metadata.cc File Reference
#include "group_replication_metadata.h"
#include <cassert>
#include <cstdlib>
#include <cstring>
#include <memory>
#include <sstream>
#include "mysql/harness/logging/logging.h"
#include "mysqlrouter/metadata_cache.h"
#include "mysqlrouter/mysql_session.h"

Functions

static std::string find_group_replication_primary_member (MySQLSession &connection)
 
std::map< std::string, GroupReplicationMemberfetch_group_replication_members (MySQLSession &connection, bool &single_primary)
 Fetches the list of group replication members known to the instance of the given connection. More...
 
const char * to_string (GroupReplicationMember::State member_state)
 

Function Documentation

◆ fetch_group_replication_members()

std::map< std::string, GroupReplicationMember > fetch_group_replication_members ( mysqlrouter::MySQLSession connection,
bool &  single_primary 
)

Fetches the list of group replication members known to the instance of the given connection.

throws metadata_cache::metadata_error

◆ find_group_replication_primary_member()

static std::string find_group_replication_primary_member ( MySQLSession connection)
static

◆ to_string()

const char * to_string ( GroupReplicationMember::State  member_state)