MySQL 9.2.0
Source Code Documentation
srv_event_plugin_handles.cc File Reference

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
 

Function Documentation

◆ srv_event_acquire_plugin_handles()

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.

See also
srv_event_release_plugin_handles, srv_event_call_plugin_handles
Return values
falsesuccess
truefailure

◆ srv_event_call_plugin_handles()

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.

  • event the event to call the handlers with
Return values
truefailure
Returns
false success

◆ srv_event_have_plugin_handles()

bool srv_event_have_plugin_handles ( )

Returns true if srv_event_call_plugin_handles must be called.

Return values
truesrv_event_call_plugin_handles must be called
Returns
false srv_event_call_plugin_handles can be skipped

◆ srv_event_release_plugin_handles()

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.

Variable Documentation

◆ nullptr

struct s_state nullptr
static