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

Classes

class  Event_tracking_error_handler
 Error handler that controls error reporting by plugin. More...
 
class  Ignore_command_start_error_handler
 Ignore error for specified commands. More...
 
class  Ignore_event_tracking_error_handler
 Ignore all errors notified from within plugin. More...
 

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 bool check_audit_mask (const unsigned long *lhs, const unsigned long *rhs)
 Check, whether mask arrays specified by the lhs parameter and rhs parameter overlap. More...
 
int event_tracking_dispatch (THD *thd, st_mysql_event_generic *generic_event)
 Distributes an audit event to components. More...
 
int event_tracking_dispatch_error (THD *thd, const char *event_name, st_mysql_event_generic *generic_event)
 

Function Documentation

◆ check_audit_mask() [1/2]

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

Check, whether mask arrays specified by the lhs parameter and rhs parameter overlap.

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

◆ check_audit_mask() [2/2]

static bool anonymous_namespace{sql_audit.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_tracking_dispatch()

int anonymous_namespace{sql_audit.cc}::event_tracking_dispatch ( THD thd,
st_mysql_event_generic generic_event 
)

Distributes an audit event to components.

Parameters
[in]thdTHD that generated the event.
[in,out]generic_eventEvent to be audited

◆ event_tracking_dispatch_error()

int anonymous_namespace{sql_audit.cc}::event_tracking_dispatch_error ( THD thd,
const char *  event_name,
st_mysql_event_generic generic_event 
)