MySQL 8.0.39
Source Code Documentation
events.cc File Reference
#include "sql/events.h"
#include <stdio.h>
#include <string.h>
#include <atomic>
#include <memory>
#include <new>
#include <string>
#include <utility>
#include <vector>
#include "lex_string.h"
#include "m_ctype.h"
#include "m_string.h"
#include "my_dbug.h"
#include "my_loglevel.h"
#include "my_macros.h"
#include "my_sys.h"
#include "mysql/components/services/bits/psi_bits.h"
#include "mysql/components/services/bits/psi_memory_bits.h"
#include "mysql/components/services/log_builtins.h"
#include "mysql/components/services/log_shared.h"
#include "mysql/psi/mysql_cond.h"
#include "mysql/psi/mysql_memory.h"
#include "mysql/psi/mysql_mutex.h"
#include "mysql/psi/mysql_sp.h"
#include "mysql/psi/mysql_stage.h"
#include "mysql/psi/mysql_thread.h"
#include "mysql_com.h"
#include "mysqld_error.h"
#include "sql/auth/auth_acls.h"
#include "sql/auth/auth_common.h"
#include "sql/dd/cache/dictionary_client.h"
#include "sql/dd/dd_schema.h"
#include "sql/dd/string_type.h"
#include "sql/dd/types/event.h"
#include "sql/dd/types/schema.h"
#include "sql/debug_sync.h"
#include "sql/event_data_objects.h"
#include "sql/event_db_repository.h"
#include "sql/event_parse_data.h"
#include "sql/event_queue.h"
#include "sql/event_scheduler.h"
#include "sql/item.h"
#include "sql/lock.h"
#include "sql/log.h"
#include "sql/mdl.h"
#include "sql/mysqld.h"
#include "sql/protocol.h"
#include "sql/psi_memory_key.h"
#include "sql/set_var.h"
#include "sql/sp_head.h"
#include "sql/sql_class.h"
#include "sql/sql_const.h"
#include "sql/sql_lex.h"
#include "sql/sql_list.h"
#include "sql/sql_show.h"
#include "sql/sql_table.h"
#include "sql/system_variables.h"
#include "sql/table.h"
#include "sql/thd_raii.h"
#include "sql/transaction.h"
#include "sql/tztime.h"
#include "sql_string.h"

Functions

static bool load_events_from_db (THD *thd, Event_queue *event_queue)
 Loads all ENABLED events into a prioritized queue. More...
 
int sortcmp_lex_string (LEX_CSTRING s, LEX_CSTRING t, const CHARSET_INFO *cs)
 
static int create_query_string (THD *thd, String *buf)
 Create a new query string for removing executable comments for avoiding leak and keeping consistency of the execution on master and slave. More...
 
static bool send_show_create_event (THD *thd, Event_timed *et, Protocol *protocol)
 A helper function to generate SHOW CREATE EVENT output from a named event. More...
 
static void init_events_psi_keys (void)
 

Variables

PSI_mutex_key key_LOCK_event_queue
 
PSI_mutex_key key_event_scheduler_LOCK_scheduler_state
 
static PSI_mutex_info all_events_mutexes []
 
PSI_cond_key key_event_scheduler_COND_state
 
PSI_cond_key key_COND_queue_state
 
static PSI_cond_info all_events_conds []
 
PSI_thread_key key_thread_event_scheduler
 
PSI_thread_key key_thread_event_worker
 
static PSI_thread_info all_events_threads []
 
PSI_stage_info stage_waiting_on_empty_queue
 
PSI_stage_info stage_waiting_for_next_activation
 
PSI_stage_info stage_waiting_for_scheduler_to_stop
 
PSI_memory_key key_memory_event_basic_root
 
PSI_stage_infoall_events_stages []
 
static PSI_memory_info all_events_memory []