|
void | init_scheduler_psi_keys () |
|
static LEX_STRING | make_lex_string (MEM_ROOT *mem_root, const dd::String_type &str) |
|
static LEX_CSTRING | make_lex_cstring (MEM_ROOT *mem_root, const dd::String_type &str) |
|
static my_time_t | add_interval (MYSQL_TIME *ltime, const Time_zone *time_zone, interval_type scale, Interval interval) |
|
static bool | get_next_time (const Time_zone *time_zone, my_time_t *next, my_time_t start, my_time_t time_now, int i_value, interval_type i_type) |
| Computes the sum of a timestamp plus interval. More...
|
|
static void | append_datetime (String *buf, Time_zone *time_zone, my_time_t secs, const char *name, uint len) |
|
bool | construct_drop_event_sql (THD *thd, String *sp_sql, LEX_CSTRING schema_name, LEX_CSTRING event_name) |
| Get DROP EVENT statement to binlog the drop of ON COMPLETION NOT PRESERVE event. More...
|
|
bool | event_basic_db_equal (LEX_CSTRING db, Event_basic *et) |
|
bool | event_basic_identifier_equal (LEX_CSTRING db, LEX_CSTRING name, Event_basic *b) |
|
bool | post_init_event_thread (THD *thd) |
|
void | deinit_event_thread (THD *thd) |
|
void | pre_init_event_thread (THD *thd) |
|
static void * | event_scheduler_thread (void *arg) |
|
static void * | event_worker_thread (void *arg) |
| Function that executes an event in a child thread. More...
|
|
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) |
|
static bool | Event_creation_ctx::create_event_creation_ctx (const dd::Event &event_obj, Stored_program_creation_ctx **ctx) |
|
bool | Event_queue_element_for_exec::init (LEX_CSTRING dbname, LEX_CSTRING name) |
|
void | Event_queue_element_for_exec::claim_memory_ownership (bool claim) |
|
| Event_queue_element_for_exec::~Event_queue_element_for_exec () |
|
| Event_basic::Event_basic () |
|
virtual | Event_basic::~Event_basic () |
|
| Event_queue_element::Event_queue_element () |
|
| Event_queue_element::~Event_queue_element () override |
|
| Event_timed::Event_timed () |
|
| Event_timed::~Event_timed () override |
|
| Event_job_data::Event_job_data () |
|
void | Event_timed::init () |
|
bool | Event_job_data::fill_event_info (THD *thd, const dd::Event &event, const char *schema_name) override |
|
bool | Event_queue_element::fill_event_info (THD *thd, const dd::Event &event, const char *dbname) override |
|
bool | Event_timed::fill_event_info (THD *thd, const dd::Event &event, const char *schema_name) override |
|
bool | Event_queue_element::compute_next_execution_time (THD *thd) |
|
void | Event_queue_element::mark_last_executed (THD *thd) |
| Set last execution time. More...
|
|
int | Event_timed::get_create_event (const THD *thd, String *buf) |
| Get SHOW CREATE EVENT as string. More...
|
|
bool | Event_job_data::construct_sp_sql (THD *thd, String *sp_sql) |
| Get an artificial stored procedure to parse as an event definition. More...
|
|
bool | Event_job_data::execute (THD *thd, bool drop) |
| Compiles and executes the event (the underlying sp_head object) More...
|
|
static bool | Event_db_repository::create_event (THD *thd, Event_parse_data *parse_data, bool create_if_not, bool *event_already_exists) |
| Creates an event object and persist to Data Dictionary. More...
|
|
static bool | Event_db_repository::update_event (THD *thd, Event_parse_data *parse_data, const LEX_CSTRING *new_dbname, const LEX_CSTRING *new_name) |
| Used to execute ALTER EVENT. More...
|
|
static bool | Event_db_repository::drop_event (THD *thd, LEX_CSTRING db, LEX_CSTRING name, bool drop_if_exists, bool *event_exists) |
| Delete event. More...
|
|
static bool | Event_db_repository::drop_schema_events (THD *thd, const dd::Schema &schema) |
| Drops all events in the selected database. More...
|
|
static bool | Event_db_repository::load_named_event (THD *thd, LEX_CSTRING dbname, LEX_CSTRING name, Event_basic *et) |
| Looks for a named event in the Data Dictionary and load it. More...
|
|
static bool | Event_db_repository::update_timing_fields_for_event (THD *thd, LEX_CSTRING event_db_name, LEX_CSTRING event_name, my_time_t last_executed, ulonglong status) |
| Update the event in Data Dictionary with changed status and/or last execution time. More...
|
|
| Event_queue::Event_queue () |
|
| Event_queue::~Event_queue () |
|
bool | Event_queue::init_queue () |
|
void | Event_queue::deinit_queue () |
|
bool | Event_queue::create_event (THD *thd, Event_queue_element *new_element, bool *created) |
| Adds an event to the queue. More...
|
|
void | Event_queue::update_event (THD *thd, LEX_CSTRING dbname, LEX_CSTRING name, Event_queue_element *new_element) |
|
void | Event_queue::drop_event (THD *thd, LEX_CSTRING dbname, LEX_CSTRING name) |
|
void | Event_queue::drop_matching_events (LEX_CSTRING pattern, bool(*)(LEX_CSTRING, Event_basic *)) |
|
void | Event_queue::drop_schema_events (LEX_CSTRING schema) |
|
void | Event_queue::find_n_remove_event (LEX_CSTRING db, LEX_CSTRING name) |
|
void | Event_queue::recalculate_activation_times (THD *thd) |
|
void | Event_queue::empty_queue () |
|
void | Event_queue::dbug_dump_queue (time_t now) |
|
bool | Event_queue::get_top_for_execution_if_time (THD *thd, Event_queue_element_for_exec **event_name) |
|
void | Event_queue::lock_data (const char *func, uint line) |
|
void | Event_queue::unlock_data (const char *func, uint line) |
|
void | Event_queue::cond_wait (THD *thd, struct timespec *abstime, const PSI_stage_info *stage, const char *src_func, const char *src_file, uint src_line) |
|
void | Event_queue::dump_internal_status () |
|
void | Event_worker_thread::print_warnings (THD *thd, Event_job_data *et) |
|
void | Event_worker_thread::run (THD *thd, Event_queue_element_for_exec *event) |
| Function that executes an event in a child thread. More...
|
|
| Event_scheduler::Event_scheduler (Event_queue *event_queue_arg) |
|
| Event_scheduler::~Event_scheduler () |
|
bool | Event_scheduler::start (int *err_no) |
| Starts the scheduler (again). More...
|
|
bool | Event_scheduler::run (THD *thd) |
|
bool | Event_scheduler::execute_top (Event_queue_element_for_exec *event_name) |
|
bool | Event_scheduler::is_running () |
|
bool | Event_scheduler::stop () |
| Stops the scheduler (again). More...
|
|
int | Event_scheduler::workers_count () |
|
void | Event_scheduler::lock_data (const char *func, uint line) |
|
void | Event_scheduler::unlock_data (const char *func, uint line) |
|
void | Event_scheduler::cond_wait (THD *thd, struct timespec *abstime, const PSI_stage_info *stage, const char *src_func, const char *src_file, uint src_line) |
|
void | Event_scheduler::dump_internal_status () |
|
static int | Events::reconstruct_interval_expression (String *buf, interval_type interval, longlong expression) |
|
static bool | Events::create_event (THD *thd, Event_parse_data *parse_data, bool if_exists) |
| Create a new event. More...
|
|
static bool | Events::update_event (THD *thd, Event_parse_data *parse_data, const LEX_CSTRING *new_dbname, const LEX_CSTRING *new_name) |
| Alter an event. More...
|
|
static bool | Events::drop_event (THD *thd, LEX_CSTRING dbname, LEX_CSTRING name, bool if_exists) |
| Drops an event. More...
|
|
static bool | Events::lock_schema_events (THD *thd, const dd::Schema &schema) |
| Take exclusive metadata lock on all events in a schema. More...
|
|
static bool | Events::drop_schema_events (THD *thd, const dd::Schema &schema) |
| Drops all events from a schema. More...
|
|
static bool | Events::show_create_event (THD *thd, LEX_CSTRING dbname, LEX_CSTRING name) |
| Implement SHOW CREATE EVENT statement. More...
|
|
static bool | Events::init (bool opt_noacl) |
| Initializes the scheduler's structures. More...
|
|
static void | Events::deinit () |
|
static void | Events::init_mutexes () |
|
static void | Events::dump_internal_status () |
|
static bool | Events::start (int *err_no) |
|
static bool | Events::stop () |
|