MySQL 8.0.40
Source Code Documentation
|
Server session service implementation. More...
#include <stddef.h>
#include <new>
#include "my_dbug.h"
#include "mysql/service_srv_session.h"
#include "mysqld_error.h"
#include "sql/conn_handler/connection_handler_manager.h"
#include "sql/current_thd.h"
#include "sql/derror.h"
#include "sql/mysqld.h"
#include "sql/server_component/mysql_admin_session_imp.h"
#include "sql/sql_class.h"
#include "sql/srv_session.h"
Functions | |
int | srv_session_init_thread (const void *plugin) |
Initializes physical thread to use with session service. More... | |
void | srv_session_deinit_thread () |
Deinitializes physical thread to use with session service. More... | |
Srv_session * | srv_session_open_internal (srv_session_error_cb error_cb, void *plugin_ctx, bool ignore_max_connection_limit) |
Opens server session. More... | |
Srv_session * | srv_session_open (srv_session_error_cb error_cb, void *plugin_ctx) |
Opens server session. More... | |
int | srv_session_detach (Srv_session *session) |
Detaches a session from current physical thread. More... | |
int | srv_session_close (Srv_session *session) |
Closes a session. More... | |
int | srv_session_server_is_available () |
Returns if the server is available (not booting or shutting down) More... | |
int | srv_session_attach (MYSQL_SESSION session, MYSQL_THD *ret_previous_thd) |
Attaches a session to current srv_session physical thread. More... | |
Server session service implementation.
For more information please check the function comments.
int srv_session_attach | ( | MYSQL_SESSION | session, |
MYSQL_THD * | ret_previous_thd | ||
) |
Attaches a session to current srv_session physical thread.
Attaches a session to current physical thread.
int srv_session_close | ( | Srv_session * | session | ) |
Closes a session.
session | Session handle to close |
void srv_session_deinit_thread | ( | ) |
Deinitializes physical thread to use with session service.
Deinitializes the current physical thread to use with session service.
int srv_session_detach | ( | Srv_session * | session | ) |
Detaches a session from current physical thread.
session | Session handle to detach |
int srv_session_init_thread | ( | const void * | plugin | ) |
Initializes physical thread to use with session service.
Initializes the current physical thread to use with session service.
Srv_session * srv_session_open | ( | srv_session_error_cb | error_cb, |
void * | plugin_ctx | ||
) |
Opens server session.
Opens a server session.
Srv_session * srv_session_open_internal | ( | srv_session_error_cb | error_cb, |
void * | plugin_ctx, | ||
bool | ignore_max_connection_limit | ||
) |
Opens server session.
error_cb | Default completion callback |
plugin_ctx | Plugin's context, opaque pointer that would be provided to callbacks. Might be NULL. |
ignore_max_connection_limit | true if the session is exempted |
int srv_session_server_is_available | ( | ) |
Returns if the server is available (not booting or shutting down)