MySQL 8.0.40
Source Code Documentation
|
Clone Notification handler. More...
#include <clone0api.h>
Public Types | |
enum class | Type { SPACE_CREATE , SPACE_DROP , SPACE_RENAME , SPACE_IMPORT , SPACE_ALTER_ENCRYPT , SPACE_ALTER_ENCRYPT_GENERAL , SPACE_ALTER_ENCRYPT_GENERAL_FLAGS , SPACE_ALTER_INPLACE , SPACE_ALTER_INPLACE_BULK , SPACE_UNDO_DDL , SYSTEM_REDO_DISABLE } |
Notification type. More... | |
Public Member Functions | |
Clone_notify (Type type, space_id_t space, bool no_wait) | |
Constructor to initiate notification. More... | |
~Clone_notify () | |
Destructor to automatically end notification. More... | |
void | get_mesg (bool begin, std::string &mesg) |
Get notification message for printing. More... | |
bool | failed () const |
int | get_error () const |
Clone_notify (Clone_notify &)=delete | |
Disable copy construction. More... | |
Clone_notify & | operator= (Clone_notify const &)=delete |
Disable assignment. More... | |
Private Types | |
enum class | Wait_at { NONE , ENTER , STATE_CHANGE , ABORT } |
Notification wait type set. More... | |
Private Attributes | |
space_id_t | m_space_id |
Tablespace ID for which notification is sent. More... | |
Type | m_type |
Notification type. More... | |
Wait_at | m_wait |
Wait type set. More... | |
uint32_t | m_blocked_state |
Blocked clone state if clone is blocked. More... | |
int | m_error |
Saved error. More... | |
Clone Notification handler.
|
strong |
|
strongprivate |
Clone_notify::Clone_notify | ( | Clone_notify::Type | type, |
space_id_t | space, | ||
bool | no_wait | ||
) |
Constructor to initiate notification.
[in] | type | notification type |
[in] | space | tablespace ID for which notification is sent |
[in] | no_wait | set error and return immediately if needs to wait |
Clone_notify::~Clone_notify | ( | ) |
Destructor to automatically end notification.
|
delete |
Disable copy construction.
|
inline |
|
inline |
void Clone_notify::get_mesg | ( | bool | begin, |
std::string & | mesg | ||
) |
Get notification message for printing.
[in] | begin | true if notification begin otherwise end |
[out] | mesg | notification message |
|
delete |
Disable assignment.
|
private |
Blocked clone state if clone is blocked.
|
private |
Saved error.
|
private |
Tablespace ID for which notification is sent.
|
private |
Notification type.
|
private |
Wait type set.