From fa9f2a773b6e20219c711e06cd09817359d19a03 Mon Sep 17 00:00:00 2001 From: "andrey@lmy004." <> Date: Tue, 20 Dec 2005 14:21:02 +0200 Subject: WL #1034 update - fix one bug found by PeterG, namely bug #51 #there is a major problem currently after removing the specialised DYNAMIC_ARRAY as storage for the events. I have to reintroduce similar storage, this time probably some linked list or maybe some API on top of DYNAMIC_ARRAY. --- sql/event.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sql/event.cc') diff --git a/sql/event.cc b/sql/event.cc index 365ebcb063f..162c187d091 100644 --- a/sql/event.cc +++ b/sql/event.cc @@ -877,7 +877,6 @@ evex_drop_event(THD *thd, event_timed *et, bool drop_if_exists) { TABLE *table; int ret= EVEX_OPEN_TABLE_FAILED; - bool opened; DBUG_ENTER("evex_drop_event"); if (evex_open_event_table(thd, TL_WRITE, &table)) @@ -912,11 +911,12 @@ evex_drop_event(THD *thd, event_timed *et, bool drop_if_exists) ret= evex_remove_from_cache(&et->dbname, &et->name, true); VOID(pthread_mutex_unlock(&LOCK_evex_running)); -done: +done: /* - No need to close the table, it will be closed in sql_parse::do_command() - and evex_remove_from_cache does not try to open a table + evex_drop_event() is used by event_timed::drop therefore + we have to close our thread tables. */ + close_thread_tables(thd); DBUG_RETURN(ret); } -- cgit v1.2.1