![]() |
MySQL 9.2.0
Source Code Documentation
|
#include "srv_event_plugin_handles.h"
#include <list>
#include <string>
#include "mysql/components/my_registry_query.h"
#include "mysql/components/my_service.h"
#include "mysql/components/services/defs/event_tracking_authentication_defs.h"
#include "mysql/components/services/event_tracking_authentication_service.h"
#include "mysql/components/services/event_tracking_command_service.h"
#include "mysql/components/services/event_tracking_connection_service.h"
#include "mysql/components/services/event_tracking_general_service.h"
#include "mysql/components/services/event_tracking_global_variable_service.h"
#include "mysql/components/services/event_tracking_lifecycle_service.h"
#include "mysql/components/services/event_tracking_message_service.h"
#include "mysql/components/services/event_tracking_parse_service.h"
#include "mysql/components/services/event_tracking_query_service.h"
#include "mysql/components/services/event_tracking_stored_program_service.h"
#include "mysql/components/services/event_tracking_table_access_service.h"
#include "mysql/components/services/registry.h"
#include "sql/mysqld.h"
#include "sql/sql_audit.h"
Classes | |
struct | s_state |
Functions | |
bool | srv_event_acquire_plugin_handles () |
Acquire references to the services registered by the server component prior to loading refcache. More... | |
void | srv_event_release_plugin_handles () |
Release the references to the services registered by the server component prior to loading refcache. More... | |
bool | srv_event_call_plugin_handles (struct st_mysql_event_generic *event_data) |
Call the references to the services registered by the server component prior to loading refcache. More... | |
bool | srv_event_have_plugin_handles () |
Returns true if srv_event_call_plugin_handles must be called. More... | |
Variables | |
static struct s_state | nullptr |
bool srv_event_acquire_plugin_handles | ( | ) |
Acquire references to the services registered by the server component prior to loading refcache.
If the reference cache is not present and plugins register event tracking services there's no one to call these. Since plugins are technically a part of the server component (and some of them are statically linked too) it's safe to acquire at startup and keep references to all of the notifications for the lifetime of the server component. And use these references without any locking etc to just call these notification handlers. This function does the acquisition.
false | success |
true | failure |
bool srv_event_call_plugin_handles | ( | struct st_mysql_event_generic * | event | ) |
Call the references to the services registered by the server component prior to loading refcache.
true | failure |
bool srv_event_have_plugin_handles | ( | ) |
Returns true if srv_event_call_plugin_handles must be called.
true | srv_event_call_plugin_handles must be called |
void srv_event_release_plugin_handles | ( | ) |
Release the references to the services registered by the server component prior to loading refcache.
Releases the references acquired by srv_event_acquire_plugin_handles.
|
static |