summaryrefslogtreecommitdiff
path: root/sql/events.h
diff options
context:
space:
mode:
authorunknown <andrey@lmy004.>2006-06-28 15:14:05 +0200
committerunknown <andrey@lmy004.>2006-06-28 15:14:05 +0200
commit400276c2f577f63ffd3871a91bce207f65d5e682 (patch)
tree500bd8f6271ea67c09b6cca7eb5ab8aad654e35b /sql/events.h
parent8ca78787a54f5d86f23147ca734e8e167a56b7b4 (diff)
downloadmariadb-git-400276c2f577f63ffd3871a91bce207f65d5e682.tar.gz
WL#3337 (Events new architecture)
Cut 7 (refactoring) db_repository is no more embedded in the Events singleton. Therefore a change to Events_db_repository won't mean recompile of all files in the server which include events.h sql/event_data_objects.cc: db_repository is no more embedded in the Events singleton. Therefore a change to Events_db_repository won't mean recompile of all files in the server which include events.h sql/event_db_repository.cc: db_repository is no more embedded in the Events singleton. Therefore a change to Events_db_repository won't mean recompile of all files in the server which include events.h sql/events.cc: db_repository is no more embedded in the Events singleton. Therefore a change to Events_db_repository won't mean recompile of all files in the server which include events.h sql/events.h: db_repository is no more embedded in the Events singleton. Therefore a change to Events_db_repository won't mean recompile of all files in the server which include events.h sql/mysqld.cc: db_repository is no more embedded in the Events singleton. Therefore a change to Events_db_repository won't mean recompile of all files in the server which include events.h
Diffstat (limited to 'sql/events.h')
-rw-r--r--sql/events.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/sql/events.h b/sql/events.h
index 3a7d1f8bc5e..45a0db13980 100644
--- a/sql/events.h
+++ b/sql/events.h
@@ -19,8 +19,7 @@
class sp_name;
class Event_timed;
class Event_parse_data;
-
-#include "event_db_repository.h"
+class Event_db_repository;
/* Return codes */
enum enum_events_error_code
@@ -51,16 +50,16 @@ public:
static ulong opt_event_scheduler;
static TYPELIB opt_typelib;
- static int
+ int
init();
- static void
+ void
deinit();
- static void
+ void
init_mutexes();
- static void
+ void
destroy_mutexes();
static Events*
@@ -78,6 +77,9 @@ public:
drop_event(THD *thd, sp_name *name, bool drop_if_exists, uint *rows_affected);
int
+ drop_schema_events(THD *thd, char *db);
+
+ int
open_event_table(THD *thd, enum thr_lock_type lock_type, TABLE **table);
int
@@ -88,16 +90,13 @@ public:
reconstruct_interval_expression(String *buf, interval_type interval,
longlong expression);
- int
- drop_schema_events(THD *thd, char *db);
-
static int
fill_schema_events(THD *thd, TABLE_LIST *tables, COND * /* cond */);
int
dump_internal_status(THD *thd);
- Event_db_repository db_repository;
+ Event_db_repository *db_repository;
private:
/* Singleton DP is used */
@@ -107,7 +106,6 @@ private:
/* Singleton instance */
static Events singleton;
-
/* Prevent use of these */
Events(const Events &);
void operator=(Events &);