61#ifdef HAVE_PSI_INTERFACE
105 static bool start(
int *err_no);
Definition: event_db_repository.h:86
Definition: event_parse_data.h:43
Queue of active events awaiting execution.
Definition: event_queue.h:101
Definition: event_scheduler.h:67
A facade to the functionality of the Event Scheduler.
Definition: events.h:95
enum_opt_event_scheduler
Definition: events.h:102
@ EVENTS_ON
Definition: events.h:102
@ EVENTS_OFF
Definition: events.h:102
@ EVENTS_DISABLED
Definition: events.h:102
void operator=(Events &)=delete
Events(const Events &)=delete
Using this class is fraught with peril, and you need to be very careful when doing so.
Definition: sql_string.h:166
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:35
static bool update_event(THD *thd, Event_parse_data *parse_data, const LEX_CSTRING *new_dbname, const LEX_CSTRING *new_name)
Alter an event.
Definition: events.cc:479
static bool drop_schema_events(THD *thd, const dd::Schema &schema)
Drops all events from a schema.
Definition: events.cc:763
static Event_queue * event_queue
Definition: events.h:141
PSI_cond_key key_event_scheduler_COND_state
Definition: events.cc:1016
int sortcmp_lex_string(LEX_CSTRING s, LEX_CSTRING t, const CHARSET_INFO *cs)
Definition: events.cc:152
static bool start(int *err_no)
Definition: events.cc:1119
PSI_thread_key key_thread_event_worker
Definition: events.h:64
PSI_thread_key key_thread_event_scheduler
Definition: events.cc:1025
static void deinit()
Definition: events.cc:994
static bool drop_event(THD *thd, LEX_CSTRING dbname, LEX_CSTRING name, bool if_exists)
Drops an event.
Definition: events.cc:639
static bool lock_schema_events(THD *thd, const dd::Schema &schema)
Take exclusive metadata lock on all events in a schema.
Definition: events.cc:706
static void dump_internal_status()
Definition: events.cc:1098
static bool create_event(THD *thd, Event_parse_data *parse_data, bool if_exists)
Create a new event.
Definition: events.cc:334
static void init_mutexes()
Definition: events.cc:1082
PSI_stage_info stage_waiting_on_empty_queue
Definition: events.cc:1034
static ulong opt_event_scheduler
Definition: events.h:104
static bool init(bool opt_noacl)
Initializes the scheduler's structures.
Definition: events.cc:915
static bool show_create_event(THD *thd, LEX_CSTRING dbname, LEX_CSTRING name)
Implement SHOW CREATE EVENT statement.
Definition: events.cc:855
static bool stop()
Definition: events.cc:1125
static Event_scheduler * scheduler
Definition: events.h:142
PSI_mutex_key key_event_scheduler_LOCK_scheduler_state
Definition: events.cc:1006
PSI_stage_info stage_waiting_for_next_activation
Definition: events.cc:1036
PSI_stage_info stage_waiting_for_scheduler_to_stop
Definition: events.cc:1038
static int reconstruct_interval_expression(String *buf, interval_type interval, longlong expression)
Definition: events.cc:175
unsigned int PSI_cond_key
Instrumented cond key.
Definition: psi_cond_bits.h:43
unsigned int PSI_mutex_key
Instrumented mutex key.
Definition: psi_mutex_bits.h:51
unsigned int PSI_thread_key
Instrumented thread key.
Definition: psi_thread_bits.h:49
Some integer typedefs for easier portability.
long long int longlong
Definition: my_inttypes.h:54
Defines various enable/disable and HAVE_ macros related to the performance schema instrumentation sys...
Interface for low level time utilities.
interval_type
Available interval types used in any statement.
Definition: my_time.h:454
static int interval
Definition: mysqladmin.cc:69
bool opt_noacl
Definition: mysqld.cc:1307
Definition: buf0block_hint.cc:29
borrowable::session_track::Schema< true > Schema
Definition: classic_protocol_session_track.h:288
Definition: commit_order_queue.h:33
The version of the current data dictionary table definitions.
Definition: dictionary_client.h:42
Performance schema instrumentation interface.
Instrumentation helpers for mutexes.
Performance schema instrumentation interface.
Performance schema instrumentation interface.
case opt name
Definition: sslopt-case.h:32
Definition: m_ctype.h:422
Definition: mysql_lex_string.h:39
Stage instrument information.
Definition: psi_stage_bits.h:73