MySQL 9.2.0
Source Code Documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
srv_event_plugin_handles.h
Go to the documentation of this file.
1#ifndef SRV_EVENT_PLUGIN_HANDLES_H
2#define SRV_EVENT_PLUGIN_HANDLES_H
3
4/*
5 Copyright (c) 2024, Oracle and/or its affiliates.
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License, version 2.0,
9 as published by the Free Software Foundation.
10
11 This program is designed to work with certain software (including
12 but not limited to OpenSSL) that is licensed under separate terms,
13 as designated in a particular file or component or in included license
14 documentation. The authors of MySQL hereby grant you an additional
15 permission to link the program and your derivative works with the
16 separately licensed software that they have either included with
17 the program or referenced in the documentation.
18
19 This program is distributed in the hope that it will be useful,
20 but WITHOUT ANY WARRANTY; without even the implied warranty of
21 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 GNU General Public License, version 2.0, for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with this program; if not, write to the Free Software
26 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
27*/
28
29/**
30 @brief Acquire references to the services registered by the server component
31 prior to loading refcache
32
33 If the reference cache is not present and plugins register event tracking
34 services there's no one to call these. Since plugins are technically a part of
35 the server component (and some of them are statically linked too) it's safe to
36 acquire at startup and keep references to all of the notifications for the
37 lifetime of the server component. And use these references without any locking
38 etc to just call these notification handlers. This function does the
39 acquisition.
40
41 @sa @ref srv_event_release_plugin_handles, @ref srv_event_call_plugin_handles
42
43 @retval false success
44 @retval true failure
45*/
47
48/**
49 @brief Release the references to the services registered by the server
50 component prior to loading refcache
51
52 Releases the references acquired by @ref srv_event_acquire_plugin_handles.
53*/
55
57/**
58 @brief Call the references to the services registered by the server component
59 prior to loading refcache
60 @arg event the event to call the handlers with
61
62 @retval true failure
63 @return false success
64*/
66
67/**
68 @brief Returns true if @ref srv_event_call_plugin_handles must be called
69
70 @retval true @ref srv_event_call_plugin_handles must be called
71 @return false @ref srv_event_call_plugin_handles can be skipped
72*/
74
75#endif /* SRV_EVENT_PLUGIN_HANDLES_H */
required string event
Definition: replication_group_member_actions.proto:32
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.
Definition: srv_event_plugin_handles.cc:126
bool srv_event_have_plugin_handles()
Returns true if srv_event_call_plugin_handles must be called.
Definition: srv_event_plugin_handles.cc:272
void srv_event_release_plugin_handles()
Release the references to the services registered by the server component prior to loading refcache.
Definition: srv_event_plugin_handles.cc:119
bool srv_event_acquire_plugin_handles()
Acquire references to the services registered by the server component prior to loading refcache.
Definition: srv_event_plugin_handles.cc:114
Definition: sql_audit.h:56