123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- #ifndef GROUP_REPLICATION_PRIV_INCLUDE
- #define GROUP_REPLICATION_PRIV_INCLUDE
- #ifndef MYSQL_SERVER
- #define MYSQL_SERVER
- #endif
- #ifndef HAVE_REPLICATION
- #define HAVE_REPLICATION
- #endif
- #include <my_global.h>
- #include <my_thread.h>
- #include <my_sys.h>
- #include <debug_sync.h>
- #include <log_event.h>
- #include <replication.h>
- #include <rpl_channel_service_interface.h>
- #include <rpl_gtid.h>
- #include <rpl_write_set_handler.h>
- int group_replication_init();
- my_thread_attr_t *get_connection_attrib();
- void get_server_parameters(char **hostname, uint *port, char **uuid,
- unsigned int *server_version,
- st_server_ssl_variables* server_ssl_variables);
- ulong get_server_id();
- ulong get_auto_increment_increment();
- ulong get_auto_increment_offset();
- void set_auto_increment_increment(ulong auto_increment_increment);
- void set_auto_increment_offset(ulong auto_increment_offset);
- void get_server_startup_prerequirements(Trans_context_info& requirements,
- bool has_lock);
- bool get_server_encoded_gtid_executed(uchar **encoded_gtid_executed,
- size_t *length);
- #if !defined(DBUG_OFF)
- char* encoded_gtid_set_to_string(uchar *encoded_gtid_set, size_t length);
- #endif
- rpl_gno get_last_executed_gno(rpl_sidno sidno);
- rpl_sidno get_sidno_from_global_sid_map(rpl_sid sid);
- void set_slave_thread_options(THD* thd);
- void global_thd_manager_add_thd(THD *thd);
- void global_thd_manager_remove_thd(THD *thd);
- const char* get_write_set_algorithm_string(unsigned int algorithm);
- unsigned long get_slave_max_allowed_packet();
- #endif
|