summaryrefslogtreecommitdiff
path: root/sql/set_var.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/set_var.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/set_var.h')
-rw-r--r--sql/set_var.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/set_var.h b/sql/set_var.h
index 14059f7e9b7..7d2a7999ddc 100644
--- a/sql/set_var.h
+++ b/sql/set_var.h
@@ -782,6 +782,17 @@ public:
bool update(THD *thd, set_var *var);
};
+
+class sys_var_event_executor :public sys_var_bool_ptr
+{
+ /* We need a derived class only to have a warn_deprecated() */
+public:
+ sys_var_event_executor(const char *name_arg, my_bool *value_arg) :
+ sys_var_bool_ptr(name_arg, value_arg) {};
+ bool update(THD *thd, set_var *var);
+};
+
+
/****************************************************************************
Classes for parsing of the SET command
****************************************************************************/