#include <rpl_async_conn_failover.h>
◆ DoAutoConnFailoverError
| Enumerator | 
|---|
| no_error  |  | 
| retriable_error  |  | 
| no_sources_error  |  | 
 
 
◆ SourceQuorumStatus
| Enumerator | 
|---|
| no_error  |  | 
| fatal_error  |  | 
| transient_network_error  |  | 
| no_quorum_error  |  | 
 
 
◆ Async_conn_failover_manager() [1/3]
  
  
      
        
          | Async_conn_failover_manager::Async_conn_failover_manager  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
delete   | 
  
 
 
◆ Async_conn_failover_manager() [2/3]
◆ Async_conn_failover_manager() [3/3]
◆ do_auto_conn_failover()
Re-establishes connection to next available source. 
- Parameters
 - 
  
    | [in] | mi | the mi of the failed connection which needs to be reconnected to the new source.  | 
    | [in] | force_highest_weight | When true, sender with highest weight is chosen, otherwise the next sender from the current one is chosen. | 
  
   
- Return values
 - 
  
    | Please | see DoAutoConnFailoverError.  | 
  
   
 
 
◆ get_source_quorum_status()
◆ log_error_for_async_executing_query_failure()
  
  
      
        
          | static void Async_conn_failover_manager::log_error_for_async_executing_query_failure  | 
          ( | 
          const longlong  | 
          sql_errno,  | 
         
        
           | 
           | 
          MYSQL *  | 
          mysql,  | 
         
        
           | 
           | 
          Master_info *  | 
          mi  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
inlinestatic   | 
  
 
Logs error for failure while executing queries. 
It logs error for following server error codes: ER_RPL_ASYNC_CHECK_CONNECTION_ERROR ER_RPL_ASYNC_MONITOR_IO_THD_FETCH_GROUP_MAJORITY_ERROR ER_RPL_ASYNC_REPLICA_IO_THD_FETCH_GROUP_MAJORITY_ERROR ER_RPL_ASYNC_GET_GROUP_MEMBERSHIP_DETAILS_ERROR
- Parameters
 - 
  
    | sql_errno | Server error code.  | 
    | mysql | MYSQL to request uuid from source.  | 
    | mi | Master_info to set master_uuid.  | 
  
   
 
 
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ set_channel_conn_details()
  
  
      
        
          | bool Async_conn_failover_manager::set_channel_conn_details  | 
          ( | 
          Master_info *  | 
          mi,  | 
         
        
           | 
           | 
          const std::string  | 
          host,  | 
         
        
           | 
           | 
          const uint  | 
          port,  | 
         
        
           | 
           | 
          const std::string  | 
          network_namespace  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
staticprivate   | 
  
 
Sets source network configuration details <host, port, network_namespace> for the provided Master_info object. 
The function is used by async conn failure to set configuration details of new source.
- Parameters
 - 
  
    | [in] | mi | the channel of the failed connection which needs to be reconnected to the new source.  | 
    | [in] | host | the source hostname to be set for Master_info object  | 
    | [in] | port | the source port to be set for Master_info object  | 
    | [in] | network_namespace | the source network_namespace to be set for Master_info object | 
  
   
- Return values
 - 
  
  
 
 
 
The documentation for this class was generated from the following files: