MySQL 8.0.39
Source Code Documentation
|
Service providing setters and getters for some properties of a session. More...
#include "mysql/service_srv_session.h"
#include <stdint.h>
#include "m_string.h"
#include "my_thread.h"
#include "my_thread_local.h"
#include "mysql_com.h"
#include "plugin.h"
Go to the source code of this file.
Classes | |
struct | srv_session_info_service_st |
Functions | |
MYSQL_THD | srv_session_info_get_thd (MYSQL_SESSION session) |
Returns the THD of a session. More... | |
my_thread_id | srv_session_info_get_session_id (MYSQL_SESSION session) |
Returns the ID of a session. More... | |
LEX_CSTRING | srv_session_info_get_current_db (MYSQL_SESSION session) |
Returns the current database of a session. More... | |
uint16_t | srv_session_info_get_client_port (MYSQL_SESSION session) |
Returns the client port of a session. More... | |
int | srv_session_info_set_client_port (MYSQL_SESSION session, uint16_t port) |
Sets the client port of a session. More... | |
int | srv_session_info_set_connection_type (MYSQL_SESSION session, enum enum_vio_type type) |
Sets the connection type of a session. More... | |
int | srv_session_info_killed (MYSQL_SESSION session) |
Returns whether the session was killed. More... | |
unsigned int | srv_session_info_session_count () |
Returns the number opened sessions in thread initialized by srv_session service. More... | |
unsigned int | srv_session_info_thread_count (const void *plugin) |
Returns the number opened sessions in thread initialized by srv_session service. More... | |
Variables | |
enum enum_vio_type int struct srv_session_info_service_st * | srv_session_info_service |
Service providing setters and getters for some properties of a session.
uint16_t srv_session_info_get_client_port | ( | MYSQL_SESSION | session | ) |
Returns the client port of a session.
session | Session |
LEX_CSTRING srv_session_info_get_current_db | ( | MYSQL_SESSION | session | ) |
Returns the current database of a session.
session | Session |
my_thread_id srv_session_info_get_session_id | ( | MYSQL_SESSION | session | ) |
Returns the ID of a session.
session | Session |
MYSQL_THD srv_session_info_get_thd | ( | MYSQL_SESSION | session | ) |
Returns the THD of a session.
session | Session |
int srv_session_info_killed | ( | MYSQL_SESSION | session | ) |
Returns whether the session was killed.
session | Session |
unsigned int srv_session_info_session_count | ( | ) |
Returns the number opened sessions in thread initialized by srv_session service.
int srv_session_info_set_client_port | ( | MYSQL_SESSION | session, |
uint16_t | port | ||
) |
Sets the client port of a session.
session | Session |
port | Port number |
int srv_session_info_set_connection_type | ( | MYSQL_SESSION | session, |
enum enum_vio_type | type | ||
) |
Sets the connection type of a session.
unsigned int srv_session_info_thread_count | ( | const void * | plugin | ) |
Returns the number opened sessions in thread initialized by srv_session service.
plugin | Pointer to the plugin structure, passed to the plugin over the plugin init function. |
enum enum_vio_type int struct srv_session_info_service_st * srv_session_info_service |