MySQL 8.0.32
Source Code Documentation
s_mysql_mysql_admin_session Struct Reference

A service to create an "admin" session that's not a subject to max connection count limits. More...

#include <mysql_admin_session.h>

Public Attributes

MYSQL_SESSION(* open )(srv_session_error_cb error_cb, void *ctx)
 Creates a new session without checking the max_connection limits. More...
 

Detailed Description

A service to create an "admin" session that's not a subject to max connection count limits.

This service is an extension to the sessions plugin service suite. The MYSQL_SESSION references are compatible with the plugin service.

See also
mysql_component_mysql_admin_session_imp

Member Data Documentation

◆ open

MYSQL_SESSION(* s_mysql_mysql_admin_session::open) (srv_session_error_cb error_cb, void *ctx)

Creates a new session without checking the max_connection limits.

The function is the same as srv_session_open plugin service API, but in addition to it it also marks the newly created MYSQL_SESSION as "immune" to max_connections count check. The MYSQL_SESSION created through this function can be operated as any other MYSQL_SESSION via the srv_session_* functions from the srv_session_service_st set.

Note
The MYSQL_SESSION created by this function need to be freed by calling srv_session_close.
See also
mysql_component_mysql_admin_session_imp, srv_session_close, srv_session_open
Parameters
error_cbthe function to call on error
ctxthe context to pass to error_cb
Returns
a newly created MYSQL_SESSION

The documentation for this struct was generated from the following file: