summaryrefslogtreecommitdiff
path: root/sql/event_priv.h
diff options
context:
space:
mode:
authorunknown <andrey@lmy004.>2005-12-06 16:15:29 +0100
committerunknown <andrey@lmy004.>2005-12-06 16:15:29 +0100
commit70856a0d54cb770c216800cdd4db5f60ad327a11 (patch)
tree4c7978bef912f4135b658ed2c76cb0c3b1d65d63 /sql/event_priv.h
parent7ff79771057678b8c3474963773abe3a591fb812 (diff)
downloadmariadb-git-70856a0d54cb770c216800cdd4db5f60ad327a11.tar.gz
WL#1034
updated sources sql/event.cc: update put some error calls to the places they occur sql/event.h: - change the default (does not work in STRICT mode) sql/event_executor.cc: move mutex initialization to evex_init_mutexes so init_events() can be reused when the main thread does not work and set global event_scheduler=1; (this will start the thread) The main thread is now visible with show processlist and can be killed. sql/event_priv.h: don't use anymore SP for opening table sql/event_timed.cc: don't use anymore SP routines for opening mysql.event sql/mysqld.cc: shutdown_events() should be maximal at the end of the server because it destroys mutexes of EVEX. The call should not be in the main thread. sql/set_var.cc: make sys_var_event_executor subclass sys_var_bool_ptr to overload ::update() method - needed to start a killed (non-running) evex main thread sql/set_var.h: declare class sys_var_event_executor sql/share/errmsg.txt: 2 new messages
Diffstat (limited to 'sql/event_priv.h')
-rw-r--r--sql/event_priv.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/sql/event_priv.h b/sql/event_priv.h
index 61fd4517bd5..75d39c3c81e 100644
--- a/sql/event_priv.h
+++ b/sql/event_priv.h
@@ -17,9 +17,6 @@
#ifndef _EVENT_PRIV_H_
#define _EVENT_PRIV_H_
-#define EVEX_OPEN_TABLE_FOR_UPDATE() \
- open_proc_type_table_for_update(thd, "event", &mysql_event_table_exists)
-
enum
{
@@ -53,5 +50,7 @@ extern pthread_mutex_t LOCK_event_arrays,
int
my_time_compare(TIME *a, TIME *b);
-
+
+
+TABLE *evex_open_event_table(THD *thd, enum thr_lock_type lock_type);
#endif /* _EVENT_PRIV_H_ */