MySQL 9.1.0
Source Code Documentation
classic_connection_base.cc File Reference
#include "classic_connection_base.h"
#include <chrono>
#include <cinttypes>
#include <memory>
#include <sstream>
#include <string>
#include <system_error>
#include <utility>
#include "basic_protocol_splicer.h"
#include "classic_auth_caching_sha2.h"
#include "mysql/harness/logging/logging.h"
#include "mysql/harness/stdx/expected.h"
#include "mysql/harness/tls_error.h"
#include "mysqlrouter/channel.h"
#include "mysqlrouter/classic_protocol_session_track.h"
#include "mysqlrouter/classic_protocol_state.h"
#include "mysqlrouter/connection_pool_component.h"
#include "processor.h"
#include "tracer.h"

Functions

template<class T >
static constexpr uint8_t type_byte ()
 
static stdx::expected< size_t, std::error_code > encode_server_side_client_greeting (Channel::recv_buffer_type &send_buf, uint8_t seq_id, const classic_protocol::capabilities::value_type &shared_capabilities)
 
static void log_fatal_error_code (const char *msg, std::error_code ec)
 
static bool trx_characteristics_is_sharable (const std::optional< classic_protocol::session_track::TransactionCharacteristics > &trx_chars)
 
static bool trx_state_is_sharable (const std::optional< classic_protocol::session_track::TransactionState > &trx_state)
 

Function Documentation

◆ encode_server_side_client_greeting()

static stdx::expected< size_t, std::error_code > encode_server_side_client_greeting ( Channel::recv_buffer_type send_buf,
uint8_t  seq_id,
const classic_protocol::capabilities::value_type shared_capabilities 
)
static

◆ log_fatal_error_code()

static void log_fatal_error_code ( const char *  msg,
std::error_code  ec 
)
static

◆ trx_characteristics_is_sharable()

static bool trx_characteristics_is_sharable ( const std::optional< classic_protocol::session_track::TransactionCharacteristics > &  trx_chars)
static

◆ trx_state_is_sharable()

static bool trx_state_is_sharable ( const std::optional< classic_protocol::session_track::TransactionState > &  trx_state)
static

◆ type_byte()

template<class T >
static constexpr uint8_t type_byte ( )
staticconstexpr