MySQL 8.4.2
Source Code Documentation
anonymous_namespace{mysql_server_event_tracking_bridge_imp.cc} Namespace Reference

Functions

static bool check_audit_mask (const unsigned long lhs, const unsigned long rhs)
 Check, whether masks specified by lhs parameter and rhs parameters overlap. More...
 
static int plugins_dispatch (THD *thd, plugin_ref plugin, void *arg)
 Dispatches an event by invoking the plugin's event_notify method. More...
 
static bool plugins_dispatch_bool (THD *thd, plugin_ref plugin, void *arg)
 
int event_class_dispatch (THD *thd, mysql_event_class_t event_class, const void *event)
 Distributes an audit event to plug-ins. More...
 
static const CHARSET_INFOget_charset_from_thd (THD *thd)
 
const CHARSET_INFOthd_get_audit_query (THD *thd, LEX_CSTRING *query)
 Fill query info extracted from the thread object and return the thread object charset info. More...
 

Function Documentation

◆ check_audit_mask()

static bool anonymous_namespace{mysql_server_event_tracking_bridge_imp.cc}::check_audit_mask ( const unsigned long  lhs,
const unsigned long  rhs 
)
inlinestatic

Check, whether masks specified by lhs parameter and rhs parameters overlap.

Parameters
lhsFirst mask to check.
rhsSecond mask to check.
Returns
false, when masks overlap, otherwise true.

◆ event_class_dispatch()

int anonymous_namespace{mysql_server_event_tracking_bridge_imp.cc}::event_class_dispatch ( THD thd,
mysql_event_class_t  event_class,
const void *  event 
)

Distributes an audit event to plug-ins.

Parameters
[in]thdTHD that generated the event.
event_classAudit event class.
[in]eventOpaque pointer to the event data.

◆ get_charset_from_thd()

static const CHARSET_INFO * anonymous_namespace{mysql_server_event_tracking_bridge_imp.cc}::get_charset_from_thd ( THD thd)
static

◆ plugins_dispatch()

static int anonymous_namespace{mysql_server_event_tracking_bridge_imp.cc}::plugins_dispatch ( THD thd,
plugin_ref  plugin,
void *  arg 
)
static

Dispatches an event by invoking the plugin's event_notify method.

Parameters
[in]thdSession THD containing references to the audit plugins.
[in]pluginPlugin used for dispatching the event.
[in]argOpaque event data structure.
Return values
falsealways

◆ plugins_dispatch_bool()

static bool anonymous_namespace{mysql_server_event_tracking_bridge_imp.cc}::plugins_dispatch_bool ( THD thd,
plugin_ref  plugin,
void *  arg 
)
static

◆ thd_get_audit_query()

const CHARSET_INFO * anonymous_namespace{mysql_server_event_tracking_bridge_imp.cc}::thd_get_audit_query ( THD thd,
LEX_CSTRING query 
)
inline

Fill query info extracted from the thread object and return the thread object charset info.

Parameters
[in]thdThread data.
[out]querySQL query text.
Returns
SQL query charset.