1#ifndef MYSQL_SERVICE_SRV_SESSION_INFO_INCLUDED
2#define MYSQL_SERVICE_SRV_SESSION_INFO_INCLUDED
32#ifndef MYSQL_ABI_CHECK
61#ifdef MYSQL_DYNAMIC_PLUGIN
62#define srv_session_info_get_thd(session) \
63 srv_session_info_service->get_thd((session))
64#define srv_session_info_get_session_id(sess) \
65 srv_session_info_service->get_session_id((sess))
66#define srv_session_info_get_current_db(sess) \
67 srv_session_info_service->get_current_db((sess))
68#define srv_session_info_get_client_port(sess) \
69 srv_session_info_service->get_client_port((sess))
70#define srv_session_info_set_client_port(sess, port) \
71 srv_session_info_service->set_client_port((sess), (port))
72#define srv_session_info_set_connection_type(sess, type) \
73 srv_session_info_service->set_connection_type((sess), (type))
74#define srv_session_info_killed(sess) srv_session_info_service->killed((sess))
75#define srv_session_info_session_count() \
76 srv_session_info_service->session_count()
77#define srv_session_info_thread_count(plugin) \
78 srv_session_info_service->thread_count(plugin)
#define MYSQL_THD
Definition: backup_page_tracker.h:38
struct MYSQL_LEX_CSTRING LEX_CSTRING
Definition: lex_string.h:42
Defines to make different thread packages compatible.
uint32 my_thread_id
Definition: my_thread_local.h:34
Common definition between mysql server & client.
required uint64 port
Definition: replication_asynchronous_connection_failover.proto:33
required string type
Definition: replication_group_member_actions.proto:34
Header file for the Server session service.
class Srv_session * MYSQL_SESSION
Definition: service_srv_session_bits.h:37
MYSQL_THD srv_session_info_get_thd(MYSQL_SESSION session)
Returns the THD of a session.
uint16_t srv_session_info_get_client_port(MYSQL_SESSION session)
Returns the client port of a session.
enum enum_vio_type int struct srv_session_info_service_st * srv_session_info_service
unsigned int srv_session_info_thread_count(const void *plugin)
Returns the number opened sessions in thread initialized by srv_session service.
Definition: srv_session_info_service.cc:144
int srv_session_info_killed(MYSQL_SESSION session)
Returns whether the session was killed.
unsigned int srv_session_info_session_count()
Returns the number opened sessions in thread initialized by srv_session service.
Definition: srv_session_info_service.cc:133
int srv_session_info_set_client_port(MYSQL_SESSION session, uint16_t port)
Sets the client port of a session.
LEX_CSTRING srv_session_info_get_current_db(MYSQL_SESSION session)
Returns the current database of a session.
int srv_session_info_set_connection_type(MYSQL_SESSION session, enum enum_vio_type type)
Sets the connection type of a session.
my_thread_id srv_session_info_get_session_id(MYSQL_SESSION session)
Returns the ID of a session.
Definition: mysql_lex_string.h:40
Definition: service_srv_session_info.h:43
int(* killed)(MYSQL_SESSION session)
Definition: service_srv_session_info.h:55
unsigned int(* thread_count)(const void *plugin)
Definition: service_srv_session_info.h:58
unsigned int(* session_count)()
Definition: service_srv_session_info.h:57
int(* set_client_port)(MYSQL_SESSION session, uint16_t port)
Definition: service_srv_session_info.h:51
my_thread_id(* get_session_id)(MYSQL_SESSION session)
Definition: service_srv_session_info.h:46
uint16_t(* get_client_port)(MYSQL_SESSION session)
Definition: service_srv_session_info.h:50
LEX_CSTRING(* get_current_db)(MYSQL_SESSION session)
Definition: service_srv_session_info.h:48
int(* set_connection_type)(MYSQL_SESSION session, enum enum_vio_type type)
Definition: service_srv_session_info.h:53
MYSQL_THD(* get_thd)(MYSQL_SESSION session)
Definition: service_srv_session_info.h:44
enum_vio_type
Definition: violite.h:79