#include <rpl_info.h>
|
| ~Rpl_info () override |
|
void | set_rpl_info_handler (Rpl_info_handler *param_handler) |
| Sets the persistency component/handler. More...
|
|
Rpl_info_handler * | get_rpl_info_handler () |
| Gets the persistency component/handler. More...
|
|
enum_return_check | check_info () const |
|
int | remove_info () |
|
int | clean_info () |
|
bool | is_transactional () const |
|
bool | update_is_transactional () |
|
char * | get_description_info () const |
|
bool | copy_info (Rpl_info_handler *from, Rpl_info_handler *to) |
|
uint | get_internal_id () const |
|
char * | get_channel () const |
|
virtual bool | set_info_search_keys (Rpl_info_handler *to)=0 |
| To search in the slave repositories, each slave info object (mi, rli or worker) should use a primary key. More...
|
|
| Slave_reporting_capability (char const *thread_name) |
| Constructor. More...
|
|
virtual void | report (loglevel level, int err_code, const char *msg,...) const |
| Writes a message and, if it's an error message, to Last_Error (which will be displayed by SHOW SLAVE STATUS). More...
|
|
void | va_report (loglevel level, int err_code, const char *prefix_msg, const char *msg, va_list v_args) const |
|
void | clear_error () |
| Clear errors. More...
|
|
int | has_temporary_error (THD *thd, uint error_arg=0, bool *silent=nullptr) const |
| Check if the current error is of temporary nature or not. More...
|
|
Error const & | last_error () const |
|
bool | is_error () const |
|
virtual const char * | get_for_channel_str (bool upper_case) const =0 |
|
virtual | ~Slave_reporting_capability ()=0 |
|
|
| Rpl_info (const char *type, PSI_mutex_key *param_key_info_run_lock, PSI_mutex_key *param_key_info_data_lock, PSI_mutex_key *param_key_info_sleep_lock, PSI_mutex_key *param_key_info_thd_lock, PSI_mutex_key *param_key_info_data_cond, PSI_mutex_key *param_key_info_start_cond, PSI_mutex_key *param_key_info_stop_cond, PSI_mutex_key *param_key_info_sleep_cond, uint param_id, const char *param_channel) |
|
virtual void | do_report (loglevel level, int err_code, const char *msg, va_list v_args) const |
|
◆ ~Rpl_info()
◆ Rpl_info() [1/2]
Rpl_info::Rpl_info |
( |
const char * |
type, |
|
|
PSI_mutex_key * |
param_key_info_run_lock, |
|
|
PSI_mutex_key * |
param_key_info_data_lock, |
|
|
PSI_mutex_key * |
param_key_info_sleep_lock, |
|
|
PSI_mutex_key * |
param_key_info_thd_lock, |
|
|
PSI_mutex_key * |
param_key_info_data_cond, |
|
|
PSI_mutex_key * |
param_key_info_start_cond, |
|
|
PSI_mutex_key * |
param_key_info_stop_cond, |
|
|
PSI_mutex_key * |
param_key_info_sleep_cond, |
|
|
uint |
param_id, |
|
|
const char * |
param_channel |
|
) |
| |
|
protected |
◆ Rpl_info() [2/2]
Rpl_info::Rpl_info |
( |
const Rpl_info & |
info | ) |
|
|
private |
◆ check_info()
◆ clean_info()
int Rpl_info::clean_info |
( |
| ) |
|
|
inline |
◆ copy_info()
◆ get_channel()
char * Rpl_info::get_channel |
( |
| ) |
const |
|
inline |
◆ get_description_info()
char * Rpl_info::get_description_info |
( |
| ) |
const |
|
inline |
◆ get_internal_id()
uint Rpl_info::get_internal_id |
( |
| ) |
const |
|
inline |
◆ get_rpl_info_handler()
Gets the persistency component/handler.
- Returns
- the handler if there is one.
◆ is_transactional()
bool Rpl_info::is_transactional |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ read_info()
◆ remove_info()
int Rpl_info::remove_info |
( |
| ) |
|
|
inline |
◆ set_info_search_keys()
To search in the slave repositories, each slave info object (mi, rli or worker) should use a primary key.
This function sets the field values of the slave info objects with the search information, which is nothing but PK in mysql slave info tables. Ex: field_value[23]="channel_name" in the master info object.
Currently, used only for TABLE repository.
Implemented in Master_info, Relay_log_info, and Slave_worker.
◆ set_rpl_info_handler()
Sets the persistency component/handler.
- Parameters
-
[in] | param_handler | Pointer to the handler. |
◆ update_is_transactional()
bool Rpl_info::update_is_transactional |
( |
| ) |
|
|
inline |
◆ write_info()
◆ abort_slave
std::atomic<bool> Rpl_info::abort_slave |
◆ atomic_is_stopping
std::atomic<bool> Rpl_info::atomic_is_stopping {false} |
◆ channel
Every slave info object acts on a particular channel in Multisource Replication.
◆ data_cond
◆ data_lock
◆ events_until_exit
int Rpl_info::events_until_exit |
◆ handler
Pointer to the repository's handler.
◆ info_thd
◆ info_thd_lock
◆ inited
◆ internal_id
uint Rpl_info::internal_id |
|
protected |
Uniquely and internally identifies an info entry (.e.g.
a row or file). This information is completely transparent to users and is used only during startup to retrieve information from the repositories.
◆ key_info_data_cond
◆ key_info_data_lock
◆ key_info_run_lock
◆ key_info_sleep_cond
◆ key_info_sleep_lock
◆ key_info_start_cond
◆ key_info_stop_cond
◆ key_info_thd_lock
◆ run_lock
◆ slave_run_id
std::atomic<ulong> Rpl_info::slave_run_id |
◆ slave_running
std::atomic<uint> Rpl_info::slave_running |
◆ sleep_cond
◆ sleep_lock
◆ start_cond
◆ stop_cond
The documentation for this class was generated from the following files: