20 #include "sql_class.h"
21 #include "rpl_info_handler.h"
22 #include "rpl_reporting.h"
41 mysql_cond_t data_cond, start_cond, stop_cond, sleep_cond;
43 #ifdef HAVE_PSI_INTERFACE
44 PSI_mutex_key *key_info_run_lock, *key_info_data_lock, *key_info_sleep_lock;
46 PSI_mutex_key *key_info_data_cond, *key_info_start_cond, *key_info_stop_cond,
53 volatile bool abort_slave;
54 volatile uint slave_running;
55 volatile ulong slave_run_id;
58 int events_until_exit;
81 enum_return_check check_info()
88 return (
handler->remove_info());
96 bool is_transactional()
98 return (
handler->is_transactional());
101 bool update_is_transactional()
103 return (
handler->update_is_transactional());
106 char *get_description_info()
108 return (
handler->get_description_info());
111 bool copy_info(Rpl_info_handler *from, Rpl_info_handler *
to)
113 if (read_info(from) || write_info(to))
119 uint get_internal_id()
139 #ifdef HAVE_PSI_INTERFACE
140 ,PSI_mutex_key *param_key_info_run_lock,
141 PSI_mutex_key *param_key_info_data_lock,
142 PSI_mutex_key *param_key_info_sleep_lock,
143 PSI_mutex_key *param_key_info_data_cond,
144 PSI_mutex_key *param_key_info_start_cond,
145 PSI_mutex_key *param_key_info_stop_cond,
146 PSI_mutex_key *param_key_info_sleep_cond
152 virtual bool read_info(Rpl_info_handler *from)= 0;
153 virtual bool write_info(Rpl_info_handler *to)= 0;