MySQL 9.1.0
Source Code Documentation
Recovery_metadata_joiner_information Class Reference

#include <recovery_metadata_joiner_information.h>

Public Member Functions

 Recovery_metadata_joiner_information (const std::string &view_id)
 Constructor. More...
 
virtual ~Recovery_metadata_joiner_information ()
 Destructor. More...
 
bool is_member_waiting_on_metadata ()
 Is the member joiner and waiting for the recovery metadata. More...
 
bool is_joiner_recovery_metadata (const std::string &view_id)
 Does the metadata belongs to the joiners for which it was waiting? More...
 
bool is_valid_sender_list_empty ()
 Is there any member in the group that has the recovery metadata for the joiner? More...
 
void set_valid_sender_list_of_joiner (const std::vector< Gcs_member_identifier > &valid_senders)
 Saves the GCS Member ID of the metadata senders i.e. More...
 
void delete_leaving_members_from_sender (std::vector< Gcs_member_identifier > member_left)
 Delete the members that have left the group from the stored GCS Member ID of the valid sender list. More...
 

Private Attributes

std::vector< Gcs_member_identifierm_valid_senders_for_joiner
 Stores valid recovery metadata senders for joiner. More...
 
const std::string m_joiner_view_id
 View ID on which joiner joined. More...
 

Constructor & Destructor Documentation

◆ Recovery_metadata_joiner_information()

Recovery_metadata_joiner_information::Recovery_metadata_joiner_information ( const std::string &  view_id)
inline

Constructor.

◆ ~Recovery_metadata_joiner_information()

virtual Recovery_metadata_joiner_information::~Recovery_metadata_joiner_information ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ delete_leaving_members_from_sender()

void Recovery_metadata_joiner_information::delete_leaving_members_from_sender ( std::vector< Gcs_member_identifier member_left)

Delete the members that have left the group from the stored GCS Member ID of the valid sender list.

Parameters
member_leftGCS Member ID of the member left the group.

◆ is_joiner_recovery_metadata()

bool Recovery_metadata_joiner_information::is_joiner_recovery_metadata ( const std::string &  view_id)

Does the metadata belongs to the joiners for which it was waiting?

Parameters
view_idThe view ID of which metadata has to be compared
Returns
the send status
Return values
trueView-ID matches with the metadata in which joiner joined
falseView-ID does not match with the metadata in which joiner joined

◆ is_member_waiting_on_metadata()

bool Recovery_metadata_joiner_information::is_member_waiting_on_metadata ( )

Is the member joiner and waiting for the recovery metadata.

Returns
the send status
Return values
trueMember is joiner and waiting for recovery metadata.
falseMember is not joiner.

◆ is_valid_sender_list_empty()

bool Recovery_metadata_joiner_information::is_valid_sender_list_empty ( )

Is there any member in the group that has the recovery metadata for the joiner?

Returns
the send status
Return values
trueAtleast 1 server in the group has recovery metadata for the joiner.
falseNo server in the group has recovery metadata for the joiner.

◆ set_valid_sender_list_of_joiner()

void Recovery_metadata_joiner_information::set_valid_sender_list_of_joiner ( const std::vector< Gcs_member_identifier > &  valid_senders)

Saves the GCS Member ID of the metadata senders i.e.

members that were ONLINE when the join request was received. This members will save the recovery metadata till the joiner receives it.

Parameters
valid_sendersGCS Member ID of the member having recovery metadata

Member Data Documentation

◆ m_joiner_view_id

const std::string Recovery_metadata_joiner_information::m_joiner_view_id
private

View ID on which joiner joined.

◆ m_valid_senders_for_joiner

std::vector<Gcs_member_identifier> Recovery_metadata_joiner_information::m_valid_senders_for_joiner
private

Stores valid recovery metadata senders for joiner.


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