summaryrefslogtreecommitdiff
path: root/sql/events.h
diff options
context:
space:
mode:
authorandrey@lmy004. <>2006-06-29 00:42:25 +0200
committerandrey@lmy004. <>2006-06-29 00:42:25 +0200
commit3c793e23ee2ad1f35d2c0dc90a109303e65de456 (patch)
tree068608d07a92fd7d98e1c7f13c7b9dc9a3167f37 /sql/events.h
parente5e8713c604fe70f431d0753e4b05dd7bd47a411 (diff)
downloadmariadb-git-3c793e23ee2ad1f35d2c0dc90a109303e65de456.tar.gz
WL#3337 (Events new architecture)
This cut No 7 should finish the part of fixing the parsing of the events : - Event_timed is no more used during parsing. Less problems because it has a mutex. Event_parse_data class is used during parsing. It is suited only for this purpose. It's pretty lightweight - Late checking of data from parsing is being performed. This should solve the problems of nested events in SP or other events (for the situation of no nested bodies). Before if an ALTER EVENT was in a SP, then when the SP was compiled, and not executed, the actual init_xxx methods of Event_timed were called, which is wrong. - It could be a side effect of using a specialized class, but test events_stress is now 25% quicker. Cut No8 will start splitting Event_scheduler into 2 parts, the QUEUE will be moved to Event_queue.
Diffstat (limited to 'sql/events.h')
-rw-r--r--sql/events.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/sql/events.h b/sql/events.h
index 45a0db13980..1239cf58c7d 100644
--- a/sql/events.h
+++ b/sql/events.h
@@ -17,7 +17,6 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
class sp_name;
-class Event_timed;
class Event_parse_data;
class Event_db_repository;
@@ -45,7 +44,6 @@ public:
Event_timed::drop() and Event_timed is fixed not do drop directly
or other scheme will be found.
*/
- friend class Event_timed;
static ulong opt_event_scheduler;
static TYPELIB opt_typelib;
@@ -66,12 +64,12 @@ public:
get_instance();
int
- create_event(THD *thd, Event_timed *et, Event_parse_data *parse_data,
- uint create_options, uint *rows_affected);
+ create_event(THD *thd, Event_parse_data *parse_data, uint create_options,
+ uint *rows_affected);
int
- update_event(THD *thd, Event_timed *et, Event_parse_data *parse_data,
- sp_name *new_name, uint *rows_affected);
+ update_event(THD *thd, Event_parse_data *parse_data, sp_name *new_name,
+ uint *rows_affected);
int
drop_event(THD *thd, sp_name *name, bool drop_if_exists, uint *rows_affected);