MySQL 8.4.1
Source Code Documentation
Plugin_gcs_view_modification_notifier Class Reference

#include <gcs_view_modification_notifier.h>

Public Member Functions

 Plugin_gcs_view_modification_notifier ()
 
virtual ~Plugin_gcs_view_modification_notifier ()
 
void start_view_modification ()
 Signals that a view modification is about to start. More...
 
bool is_view_modification_ongoing ()
 Checks if there is a view modification ongoing. More...
 
void end_view_modification ()
 Signals that a view modification has ended. More...
 
void cancel_view_modification (int errnr=GROUP_REPLICATION_CONFIGURATION_ERROR)
 Signals that a view modification has been cancelled. More...
 
bool is_cancelled ()
 Check if view modification was cancelled. More...
 
bool wait_for_view_modification (long timeout=VIEW_MODIFICATION_TIMEOUT)
 Method in which one waits for the view modification to end. More...
 
int get_error ()
 Get the error number that did happen on view modification. More...
 

Private Attributes

bool view_changing
 
bool cancelled_view_change
 
int error
 
mysql_cond_t wait_for_view_cond
 
mysql_mutex_t wait_for_view_mutex
 

Constructor & Destructor Documentation

◆ Plugin_gcs_view_modification_notifier()

Plugin_gcs_view_modification_notifier::Plugin_gcs_view_modification_notifier ( )

◆ ~Plugin_gcs_view_modification_notifier()

Plugin_gcs_view_modification_notifier::~Plugin_gcs_view_modification_notifier ( )
virtual

Member Function Documentation

◆ cancel_view_modification()

void Plugin_gcs_view_modification_notifier::cancel_view_modification ( int  errnr = GROUP_REPLICATION_CONFIGURATION_ERROR)

Signals that a view modification has been cancelled.

Parameters
[in]errnrerror that did cause the view modification to be cancelled

◆ end_view_modification()

void Plugin_gcs_view_modification_notifier::end_view_modification ( )

Signals that a view modification has ended.

◆ get_error()

int Plugin_gcs_view_modification_notifier::get_error ( )

Get the error number that did happen on view modification.

This method must only be called after view modification is complete.

Returns
Operation
Return values
0OK (no error)
>0error number

◆ is_cancelled()

bool Plugin_gcs_view_modification_notifier::is_cancelled ( )

Check if view modification was cancelled.

This method must only be called after view modification is complete.

Return values
trueview modification was cancelled
falseotherwise

◆ is_view_modification_ongoing()

bool Plugin_gcs_view_modification_notifier::is_view_modification_ongoing ( )

Checks if there is a view modification ongoing.

Return values
truethere is a view modification ongoing
falseotherwise

◆ start_view_modification()

void Plugin_gcs_view_modification_notifier::start_view_modification ( )

Signals that a view modification is about to start.

◆ wait_for_view_modification()

bool Plugin_gcs_view_modification_notifier::wait_for_view_modification ( long  timeout = VIEW_MODIFICATION_TIMEOUT)

Method in which one waits for the view modification to end.

Parameters
[in]timeouthow long one wants to wait, in seconds
Returns
Operation status
Return values
falseOK
trueerror (timeout or view modification cancelled)

Member Data Documentation

◆ cancelled_view_change

bool Plugin_gcs_view_modification_notifier::cancelled_view_change
private

◆ error

int Plugin_gcs_view_modification_notifier::error
private

◆ view_changing

bool Plugin_gcs_view_modification_notifier::view_changing
private

◆ wait_for_view_cond

mysql_cond_t Plugin_gcs_view_modification_notifier::wait_for_view_cond
private

◆ wait_for_view_mutex

mysql_mutex_t Plugin_gcs_view_modification_notifier::wait_for_view_mutex
private

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