diff --git a/sql/event_db_repository.cc b/sql/event_db_repository.cc index 69f44b44be0..464c26044c7 100644 --- a/sql/event_db_repository.cc +++ b/sql/event_db_repository.cc @@ -472,10 +472,6 @@ Event_db_repository::open_event_table(THD *thd, enum thr_lock_type lock_type, static int check_parse_params(THD *thd, Event_parse_data *parse_data) { - const char *pos= NULL; - Item *bad_item; - int res; - DBUG_ENTER("check_parse_params"); if (parse_data->check_parse_data(thd)) diff --git a/sql/event_queue.cc b/sql/event_queue.cc index 5316bae8f4a..f0b0777b6cf 100644 --- a/sql/event_queue.cc +++ b/sql/event_queue.cc @@ -137,7 +137,6 @@ Event_queue::deinit_mutexes() bool Event_queue::init_queue(THD *thd, Event_db_repository *db_repo) { - pthread_t th; bool res; struct event_queue_param *event_queue_param_value= NULL; @@ -320,9 +319,8 @@ end: void Event_queue::drop_event(THD *thd, LEX_STRING dbname, LEX_STRING name) { - int res; DBUG_ENTER("Event_queue::drop_event"); - DBUG_PRINT("enter", ("thd=0x%lx name=0x%lx", thd, name)); + DBUG_PRINT("enter", ("thd=0x%lx db=%s name=%s", thd, dbname, name)); LOCK_QUEUE_DATA(); find_n_remove_event(dbname, name); @@ -482,8 +480,6 @@ Event_queue::load_events_from_db(THD *thd) int ret= -1; uint count= 0; bool clean_the_queue= TRUE; - /* Compile the events on this root but only for syntax check, then discard */ - MEM_ROOT boot_root; DBUG_ENTER("Event_queue::load_events_from_db"); DBUG_PRINT("enter", ("thd=0x%lx", thd)); diff --git a/sql/event_scheduler.cc b/sql/event_scheduler.cc index cd90078a6d5..d8292c5393c 100644 --- a/sql/event_scheduler.cc +++ b/sql/event_scheduler.cc @@ -288,7 +288,6 @@ event_worker_thread(void *arg) else if (ret == EVEX_MICROSECOND_UNSUP) sql_print_information("SCHEDULER: MICROSECOND is not supported"); } -end: DBUG_PRINT("info", ("BURAN %s.%s is landing!", event->dbname.str, event->name.str)); delete event; diff --git a/sql/events.cc b/sql/events.cc index c3994dcd396..f847541d217 100644 --- a/sql/events.cc +++ b/sql/events.cc @@ -866,7 +866,6 @@ bool Events::check_system_tables(THD *thd) { TABLE_LIST tables; - bool not_used; Open_tables_state backup; bool ret= FALSE; @@ -913,7 +912,6 @@ Events::check_system_tables(THD *thd) close_thread_tables(thd); } -end: thd->restore_backup_open_tables_state(&backup); DBUG_RETURN(ret);