MySQL 8.0.40
Source Code Documentation
metadata_cache::ManagedCluster Class Reference

Represents a cluster (a GR group or AR members) More...

#include <metadata_cache_datatypes.h>

Public Member Functions

bool empty () const noexcept
 
void clear () noexcept
 

Public Attributes

std::string id
 UUID in the metadata. More...
 
std::string name
 Name of the cluster. More...
 
cluster_nodes_list_t members
 List of the members that belong to the cluster. More...
 
bool single_primary_mode
 Whether the cluster is in single_primary_mode (from PFS in case of GR) More...
 
bool md_discrepancy {false}
 Metadata for the cluster is not consistent (only applicable for the GR cluster when the data in the GR metadata is not consistent with the cluster metadata) More...
 
bool is_primary {true}
 Is this a PRIMARY Cluster in case of ClusterSet. More...
 
bool is_invalidated {false}
 Is the Cluster marked as invalid in the metadata. More...
 

Detailed Description

Represents a cluster (a GR group or AR members)

Member Function Documentation

◆ clear()

void metadata_cache::ManagedCluster::clear ( )
inlinenoexcept

◆ empty()

bool metadata_cache::ManagedCluster::empty ( ) const
inlinenoexcept

Member Data Documentation

◆ id

std::string metadata_cache::ManagedCluster::id

UUID in the metadata.

◆ is_invalidated

bool metadata_cache::ManagedCluster::is_invalidated {false}

Is the Cluster marked as invalid in the metadata.

◆ is_primary

bool metadata_cache::ManagedCluster::is_primary {true}

Is this a PRIMARY Cluster in case of ClusterSet.

◆ md_discrepancy

bool metadata_cache::ManagedCluster::md_discrepancy {false}

Metadata for the cluster is not consistent (only applicable for the GR cluster when the data in the GR metadata is not consistent with the cluster metadata)

◆ members

cluster_nodes_list_t metadata_cache::ManagedCluster::members

List of the members that belong to the cluster.

◆ name

std::string metadata_cache::ManagedCluster::name

Name of the cluster.

◆ single_primary_mode

bool metadata_cache::ManagedCluster::single_primary_mode

Whether the cluster is in single_primary_mode (from PFS in case of GR)


The documentation for this class was generated from the following file: