diff options
author | unknown <andrey@lmy004.> | 2006-07-03 11:20:08 +0200 |
---|---|---|
committer | unknown <andrey@lmy004.> | 2006-07-03 11:20:08 +0200 |
commit | 377446fa3497ffbc0f2a17614d848bfb79f52662 (patch) | |
tree | 99e7b4fe6e41946b7b36c74b0c7e898e13945244 /sql/event_data_objects.cc | |
parent | 8d961c45e2e83f04da92cbfc31d2975a6949743f (diff) | |
download | mariadb-git-377446fa3497ffbc0f2a17614d848bfb79f52662.tar.gz |
WL#3337 (Event scheduler new architecture)
This is the first cut of separating Event_scheduler in two
classes which are more specialized.
Inheritance was used to separate methods and member variables.
Still Event_scheduler is a child of Event_queue. This dependency
will be removed soon.
sql/event_data_objects.cc:
add comments
sql/event_db_repository.cc:
coding style
sql/event_db_repository.h:
add a call, will be implemented later
sql/event_queue.cc:
Event_queue, still as super-class of Event_scheduler
sql/event_queue.h:
Event_queue as super-class of Event_scheduler. Trying to
separate the two classes
sql/event_scheduler.cc:
Event_scheduler as child class of Event_queue.
Trying to separate both classes.
sql/event_scheduler.h:
Event_scheduler as child class of Event_queue.
Trying to separate both classes.
sql/events.cc:
Don't allocate on the stack the scheduler but on the heap.
The exact way it is done will be changed, that's ok for now.
Diffstat (limited to 'sql/event_data_objects.cc')
-rw-r--r-- | sql/event_data_objects.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/sql/event_data_objects.cc b/sql/event_data_objects.cc index a47a3e9e936..f4147d72c3d 100644 --- a/sql/event_data_objects.cc +++ b/sql/event_data_objects.cc @@ -25,6 +25,19 @@ #define EVEX_MAX_INTERVAL_VALUE 2147483647L +/* + Returns a new instance + + SYNOPSIS + Event_parse_data::new_instance() + + RETURN VALUE + Address or NULL in case of error + + NOTE + Created on THD's mem_root +*/ + Event_parse_data * Event_parse_data::new_instance(THD *thd) { @@ -32,6 +45,13 @@ Event_parse_data::new_instance(THD *thd) } +/* + Constructor + + SYNOPSIS + Event_parse_data::Event_parse_data() +*/ + Event_parse_data::Event_parse_data() { item_execute_at= item_expression= item_starts= item_ends= NULL; |