![]()  | 
  
    MySQL 8.0.44
    
   Source Code Documentation 
   | 
 
#include "my_sys.h"#include "my_thread.h"#include "sql/binlog/group_commit/bgc_ticket_manager.h"#include "sql/binlog_ostream.h"#include "sql/binlog_reader.h"#include "sql/debug_sync.h"#include "sql/log_event.h"#include "sql/replication.h"#include "sql/rpl_channel_service_interface.h"#include "sql/rpl_commit_stage_manager.h"#include "sql/rpl_gtid.h"#include "sql/rpl_write_set_handler.h"Go to the source code of this file.
Functions | |
| int | group_replication_init () | 
| Server side initializations.  More... | |
| my_thread_attr_t * | get_connection_attrib () | 
| Returns the server connection attribute.  More... | |
| void | get_server_parameters (char **hostname, uint *port, char **uuid, unsigned int *server_version, uint *admin_port) | 
| Returns the server hostname, port and uuid.  More... | |
| void | get_server_main_ssl_parameters (st_server_ssl_variables *server_ssl_variables) | 
| Returns the server's client-server interface's ssl configuration values.  More... | |
| void | get_server_admin_ssl_parameters (st_server_ssl_variables *server_ssl_variables) | 
| Returns the server's admin interface's ssl configuration values.  More... | |
| ulong | get_server_id () | 
| Returns the server_id.  More... | |
| ulong | get_auto_increment_increment () | 
| Returns the server auto_increment_increment.  More... | |
| ulong | get_auto_increment_offset () | 
| Returns the server auto_increment_offset.  More... | |
| void | set_auto_increment_increment (ulong auto_increment_increment) | 
| Set server auto_increment_increment.  More... | |
| void | set_auto_increment_offset (ulong auto_increment_offset) | 
| Set server auto_increment_offset.  More... | |
| void | get_server_startup_prerequirements (Trans_context_info &requirements) | 
| Returns a struct containing all server startup information needed to evaluate if one has conditions to proceed executing master-master replication.  More... | |
| bool | get_server_encoded_gtid_executed (uchar **encoded_gtid_executed, size_t *length) | 
| Returns the server GTID_EXECUTED encoded as a binary string.  More... | |
| char * | encoded_gtid_set_to_string (uchar *encoded_gtid_set, size_t length) | 
| Returns a text representation of a encoded GTID set.  More... | |
| rpl_gno | get_last_executed_gno (rpl_sidno sidno) | 
| Return last gno for a given sidno, see Gtid_state::get_last_executed_gno() for details.  More... | |
| rpl_sidno | get_sidno_from_global_sid_map (rpl_sid sid) | 
| Return sidno for a given sid, see Sid_map::add_sid() for details.  More... | |
| void | set_slave_thread_options (THD *thd) | 
| Set slave thread default options.  More... | |
| void | global_thd_manager_add_thd (THD *thd) | 
| Add thread to Global_THD_manager singleton.  More... | |
| void | global_thd_manager_remove_thd (THD *thd) | 
| Remove thread from Global_THD_manager singleton.  More... | |
| const char * | get_write_set_algorithm_string (unsigned int algorithm) | 
| Function that returns the write set extraction algorithm name.  More... | |
| bool | is_gtid_committed (const Gtid >id) | 
| Returns true if the given transaction is committed.  More... | |
| unsigned long | get_replica_max_allowed_packet () | 
| Returns the value of replica_max_allowed_packet.  More... | |
| bool | wait_for_gtid_set_committed (const char *gtid_set_text, double timeout, bool update_thd_status) | 
| Wait until the given Gtid_set is included in @GLOBAL.GTID_EXECUTED.  More... | |
| unsigned long | get_max_replica_max_allowed_packet () | 
| bool | is_server_restarting_after_clone () | 
| bool | is_server_data_dropped () | 
| char * encoded_gtid_set_to_string | ( | uchar * | encoded_gtid_set, | 
| size_t | length | ||
| ) | 
Returns a text representation of a encoded GTID set.
| [in] | encoded_gtid_set | binary string | 
| [in] | length | binary string length | 
| ulong get_auto_increment_increment | ( | ) | 
Returns the server auto_increment_increment.
| ulong get_auto_increment_offset | ( | ) | 
Returns the server auto_increment_offset.
| my_thread_attr_t * get_connection_attrib | ( | ) | 
Returns the server connection attribute.
Returns the server connection attribute.
| Reference | to thread attribute for connection threads | 
Return last gno for a given sidno, see Gtid_state::get_last_executed_gno() for details.
| unsigned long get_max_replica_max_allowed_packet | ( | ) | 
| unsigned long get_replica_max_allowed_packet | ( | ) | 
Returns the value of replica_max_allowed_packet.
| void get_server_admin_ssl_parameters | ( | st_server_ssl_variables * | server_ssl_variables | ) | 
Returns the server's admin interface's ssl configuration values.
| [out] | server_ssl_variables | server's ssl_variables | 
| bool get_server_encoded_gtid_executed | ( | uchar ** | encoded_gtid_executed, | 
| size_t * | length | ||
| ) | 
Returns the server GTID_EXECUTED encoded as a binary string.
| [out] | encoded_gtid_executed | binary string | 
| [out] | length | binary string length | 
| ulong get_server_id | ( | ) | 
Returns the server_id.
| void get_server_main_ssl_parameters | ( | st_server_ssl_variables * | server_ssl_variables | ) | 
Returns the server's client-server interface's ssl configuration values.
| [out] | server_ssl_variables | server's ssl_variables | 
| void get_server_parameters | ( | char ** | hostname, | 
| uint * | port, | ||
| char ** | uuid, | ||
| unsigned int * | server_version, | ||
| uint * | admin_port | ||
| ) | 
Returns the server hostname, port and uuid.
| [out] | hostname | hostname | 
| [out] | port | port | 
| [out] | uuid | uuid | 
| [out] | server_version | server version | 
| [out] | admin_port | mysqld admin port | 
| void get_server_startup_prerequirements | ( | Trans_context_info & | requirements | ) | 
Returns a struct containing all server startup information needed to evaluate if one has conditions to proceed executing master-master replication.
| [out] | requirements | requirements | 
Return sidno for a given sid, see Sid_map::add_sid() for details.
| const char * get_write_set_algorithm_string | ( | unsigned int | algorithm | ) | 
Function that returns the write set extraction algorithm name.
| [in] | algorithm | The algorithm value | 
| void global_thd_manager_add_thd | ( | THD * | thd | ) | 
Add thread to Global_THD_manager singleton.
| [in] | thd | The thread | 
| void global_thd_manager_remove_thd | ( | THD * | thd | ) | 
Remove thread from Global_THD_manager singleton.
| [in] | thd | The thread | 
| int group_replication_init | ( | ) | 
Server side initializations.
| bool is_gtid_committed | ( | const Gtid & | gtid | ) | 
Returns true if the given transaction is committed.
| [in] | gtid | The transaction identifier | 
| bool is_server_data_dropped | ( | ) | 
| bool is_server_restarting_after_clone | ( | ) | 
| void set_auto_increment_increment | ( | ulong | auto_increment_increment | ) | 
Set server auto_increment_increment.
| [in] | auto_increment_increment | auto-increment increment | 
| void set_auto_increment_offset | ( | ulong | auto_increment_offset | ) | 
Set server auto_increment_offset.
| [in] | auto_increment_offset | auto-increment offset | 
| bool wait_for_gtid_set_committed | ( | const char * | gtid_set_text, | 
| double | timeout, | ||
| bool | update_thd_status | ||
| ) | 
Wait until the given Gtid_set is included in @GLOBAL.GTID_EXECUTED.
| [in] | gtid_set_text | Gtid_set to wait for. | 
| [in] | timeout | The maximum number of seconds that the function should wait, or 0 to wait indefinitely. | 
| [in] | update_thd_status | when true updates the stage info with the new wait condition, when false keeps the current stage info. | 
| false | the Gtid_set is included in @GLOBAL.GTID_EXECUTED | 
| true | otherwise |