Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2537a87f
Commit
2537a87f
authored
Aug 15, 2007
by
kostja@bodhi.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Provide initial module structure to Doxygen.
parent
46b8a07d
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
157 additions
and
9 deletions
+157
-9
sql/event_data_objects.cc
sql/event_data_objects.cc
+8
-0
sql/event_data_objects.h
sql/event_data_objects.h
+9
-0
sql/event_db_repository.cc
sql/event_db_repository.cc
+9
-0
sql/event_db_repository.h
sql/event_db_repository.h
+11
-2
sql/event_queue.cc
sql/event_queue.cc
+8
-0
sql/event_queue.h
sql/event_queue.h
+17
-0
sql/event_scheduler.cc
sql/event_scheduler.cc
+9
-0
sql/event_scheduler.h
sql/event_scheduler.h
+15
-3
sql/events.cc
sql/events.cc
+9
-0
sql/events.h
sql/events.h
+6
-3
sql/lock.cc
sql/lock.cc
+8
-1
sql/sp_head.h
sql/sp_head.h
+9
-0
sql/sql_base.cc
sql/sql_base.cc
+7
-0
sql/sql_lex.h
sql/sql_lex.h
+7
-0
sql/sql_parse.cc
sql/sql_parse.cc
+9
-0
sql/sql_select.cc
sql/sql_select.cc
+8
-0
sql/sql_yacc.yy
sql/sql_yacc.yy
+8
-0
No files found.
sql/event_data_objects.cc
View file @
2537a87f
...
@@ -20,6 +20,10 @@
...
@@ -20,6 +20,10 @@
#include "event_db_repository.h"
#include "event_db_repository.h"
#include "sp_head.h"
#include "sp_head.h"
/**
@addtogroup Event_Scheduler
@{
*/
#define EVEX_MAX_INTERVAL_VALUE 1000000000L
#define EVEX_MAX_INTERVAL_VALUE 1000000000L
...
@@ -2082,3 +2086,7 @@ event_basic_identifier_equal(LEX_STRING db, LEX_STRING name, Event_basic *b)
...
@@ -2082,3 +2086,7 @@ event_basic_identifier_equal(LEX_STRING db, LEX_STRING name, Event_basic *b)
return
!
sortcmp_lex_string
(
name
,
b
->
name
,
system_charset_info
)
&&
return
!
sortcmp_lex_string
(
name
,
b
->
name
,
system_charset_info
)
&&
!
sortcmp_lex_string
(
db
,
b
->
dbname
,
system_charset_info
);
!
sortcmp_lex_string
(
db
,
b
->
dbname
,
system_charset_info
);
}
}
/**
@} (End of group Event_Scheduler)
*/
sql/event_data_objects.h
View file @
2537a87f
...
@@ -15,6 +15,12 @@
...
@@ -15,6 +15,12 @@
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/**
@addtogroup Event_Scheduler
@{
@file event_data_objects.h
*/
#define EVEX_GET_FIELD_FAILED -2
#define EVEX_GET_FIELD_FAILED -2
#define EVEX_BAD_PARAMS -5
#define EVEX_BAD_PARAMS -5
...
@@ -280,5 +286,8 @@ event_basic_db_equal(LEX_STRING db, Event_basic *et);
...
@@ -280,5 +286,8 @@ event_basic_db_equal(LEX_STRING db, Event_basic *et);
bool
bool
event_basic_identifier_equal
(
LEX_STRING
db
,
LEX_STRING
name
,
Event_basic
*
b
);
event_basic_identifier_equal
(
LEX_STRING
db
,
LEX_STRING
name
,
Event_basic
*
b
);
/**
@} (End of group Event_Scheduler)
*/
#endif
/* _EVENT_DATA_OBJECTS_H_ */
#endif
/* _EVENT_DATA_OBJECTS_H_ */
sql/event_db_repository.cc
View file @
2537a87f
...
@@ -20,6 +20,11 @@
...
@@ -20,6 +20,11 @@
#include "events.h"
#include "events.h"
#include "sql_show.h"
#include "sql_show.h"
/**
@addtogroup Event_Scheduler
@{
*/
static
static
const
TABLE_FIELD_W_TYPE
event_table_fields
[
ET_FIELD_COUNT
]
=
const
TABLE_FIELD_W_TYPE
event_table_fields
[
ET_FIELD_COUNT
]
=
{
{
...
@@ -1112,3 +1117,7 @@ Event_db_repository::check_system_tables(THD *thd)
...
@@ -1112,3 +1117,7 @@ Event_db_repository::check_system_tables(THD *thd)
DBUG_RETURN
(
test
(
ret
));
DBUG_RETURN
(
test
(
ret
));
}
}
/**
@} (End of group Event_Scheduler)
*/
sql/event_db_repository.h
View file @
2537a87f
...
@@ -15,8 +15,14 @@
...
@@ -15,8 +15,14 @@
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/*
/**
@file
@addtogroup Event_Scheduler
@{
@file event_db_repository.h
Data Dictionary related operations of Event Scheduler.
This is a private header file of Events module. Please do not include it
This is a private header file of Events module. Please do not include it
directly. All public declarations of Events module should be stored in
directly. All public declarations of Events module should be stored in
events.h and event_data_objects.h.
events.h and event_data_objects.h.
...
@@ -119,4 +125,7 @@ private:
...
@@ -119,4 +125,7 @@ private:
void
operator
=
(
Event_db_repository
&
);
void
operator
=
(
Event_db_repository
&
);
};
};
/**
@} (End of group Event_Scheduler)
*/
#endif
/* _EVENT_DB_REPOSITORY_H_ */
#endif
/* _EVENT_DB_REPOSITORY_H_ */
sql/event_queue.cc
View file @
2537a87f
...
@@ -17,6 +17,10 @@
...
@@ -17,6 +17,10 @@
#include "event_queue.h"
#include "event_queue.h"
#include "event_data_objects.h"
#include "event_data_objects.h"
/**
@addtogroup Event_Scheduler
@{
*/
#define EVENT_QUEUE_INITIAL_SIZE 30
#define EVENT_QUEUE_INITIAL_SIZE 30
#define EVENT_QUEUE_EXTENT 30
#define EVENT_QUEUE_EXTENT 30
...
@@ -749,3 +753,7 @@ Event_queue::dump_internal_status()
...
@@ -749,3 +753,7 @@ Event_queue::dump_internal_status()
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
/**
@} (End of group Event_Scheduler)
*/
sql/event_queue.h
View file @
2537a87f
...
@@ -15,12 +15,26 @@
...
@@ -15,12 +15,26 @@
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/**
@addtogroup Event_Scheduler
@{
@file event_queue.h
Queue of events awaiting execution.
*/
class
Event_basic
;
class
Event_basic
;
class
Event_queue_element
;
class
Event_queue_element
;
class
Event_queue_element_for_exec
;
class
Event_queue_element_for_exec
;
class
THD
;
class
THD
;
/**
Queue of active events awaiting execution.
*/
class
Event_queue
class
Event_queue
{
{
public:
public:
...
@@ -105,5 +119,8 @@ private:
...
@@ -105,5 +119,8 @@ private:
bool
mutex_queue_data_attempting_lock
;
bool
mutex_queue_data_attempting_lock
;
bool
waiting_on_cond
;
bool
waiting_on_cond
;
};
};
/**
@} (End of group Event_Scheduler)
*/
#endif
/* _EVENT_QUEUE_H_ */
#endif
/* _EVENT_QUEUE_H_ */
sql/event_scheduler.cc
View file @
2537a87f
...
@@ -20,6 +20,11 @@
...
@@ -20,6 +20,11 @@
#include "event_queue.h"
#include "event_queue.h"
#include "event_db_repository.h"
#include "event_db_repository.h"
/**
@addtogroup Event_Scheduler
@{
*/
#ifdef __GNUC__
#ifdef __GNUC__
#if __GNUC__ >= 2
#if __GNUC__ >= 2
#define SCHED_FUNC __FUNCTION__
#define SCHED_FUNC __FUNCTION__
...
@@ -790,3 +795,7 @@ Event_scheduler::dump_internal_status()
...
@@ -790,3 +795,7 @@ Event_scheduler::dump_internal_status()
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
/**
@} (End of group Event_Scheduler)
*/
sql/event_scheduler.h
View file @
2537a87f
...
@@ -15,11 +15,19 @@
...
@@ -15,11 +15,19 @@
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/**
@addtogroup Event_Scheduler
@{
*/
/**
/**
@file
@file
This file is internal to Events module. Please do not include it directly.
All public declarations of Events module are in events.h and
Declarations of the scheduler thread class
event_data_objects.h.
and related functionality.
This file is internal to Event_Scheduler module. Please do not
include it directly. All public declarations of Event_Scheduler
module are in events.h and event_data_objects.h.
*/
*/
...
@@ -140,4 +148,8 @@ private:
...
@@ -140,4 +148,8 @@ private:
void
operator
=
(
Event_scheduler
&
);
void
operator
=
(
Event_scheduler
&
);
};
};
/**
@} (End of group Event_Scheduler)
*/
#endif
/* _EVENT_SCHEDULER_H_ */
#endif
/* _EVENT_SCHEDULER_H_ */
sql/events.cc
View file @
2537a87f
...
@@ -21,6 +21,11 @@
...
@@ -21,6 +21,11 @@
#include "event_scheduler.h"
#include "event_scheduler.h"
#include "sp_head.h" // for Stored_program_creation_ctx
#include "sp_head.h" // for Stored_program_creation_ctx
/**
@addtogroup Event_Scheduler
@{
*/
/*
/*
TODO list :
TODO list :
- CREATE EVENT should not go into binary log! Does it now? The SQL statements
- CREATE EVENT should not go into binary log! Does it now? The SQL statements
...
@@ -1186,3 +1191,7 @@ end:
...
@@ -1186,3 +1191,7 @@ end:
DBUG_RETURN
(
ret
);
DBUG_RETURN
(
ret
);
}
}
/**
@} (End of group Event_Scheduler)
*/
sql/events.h
View file @
2537a87f
...
@@ -16,10 +16,13 @@
...
@@ -16,10 +16,13 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/**
/**
@file
@defgroup Event_Scheduler Event Scheduler
A public interface of Events Scheduler module.
@ingroup Runtime_Environment
@defgroup Event Scheduler
@{
@{
@file events.h
A public interface of Events_Scheduler module.
*/
*/
class
Event_parse_data
;
class
Event_parse_data
;
...
...
sql/lock.cc
View file @
2537a87f
...
@@ -74,6 +74,11 @@ TODO:
...
@@ -74,6 +74,11 @@ TODO:
#include <hash.h>
#include <hash.h>
#include <assert.h>
#include <assert.h>
/**
@defgroup Locking Locking
@{
*/
extern
HASH
open_cache
;
extern
HASH
open_cache
;
/* flags for get_lock_data */
/* flags for get_lock_data */
...
@@ -1590,4 +1595,6 @@ void broadcast_refresh(void)
...
@@ -1590,4 +1595,6 @@ void broadcast_refresh(void)
VOID
(
pthread_cond_broadcast
(
&
COND_global_read_lock
));
VOID
(
pthread_cond_broadcast
(
&
COND_global_read_lock
));
}
}
/**
@} (end of group Locking)
*/
sql/sp_head.h
View file @
2537a87f
...
@@ -23,6 +23,11 @@
...
@@ -23,6 +23,11 @@
#include <stddef.h>
#include <stddef.h>
/**
@defgroup Stored_Routines Stored Routines
@ingroup Runtime_Environment
@{
*/
// Values for the type enum. This reflects the order of the enum declaration
// Values for the type enum. This reflects the order of the enum declaration
// in the CREATE TABLE command.
// in the CREATE TABLE command.
#define TYPE_ENUM_FUNCTION 1
#define TYPE_ENUM_FUNCTION 1
...
@@ -1322,4 +1327,8 @@ sp_prepare_func_item(THD* thd, Item **it_addr);
...
@@ -1322,4 +1327,8 @@ sp_prepare_func_item(THD* thd, Item **it_addr);
bool
bool
sp_eval_expr
(
THD
*
thd
,
Field
*
result_field
,
Item
**
expr_item_ptr
);
sp_eval_expr
(
THD
*
thd
,
Field
*
result_field
,
Item
**
expr_item_ptr
);
/**
@} (end of group Stored_Routines)
*/
#endif
/* _SP_HEAD_H_ */
#endif
/* _SP_HEAD_H_ */
sql/sql_base.cc
View file @
2537a87f
...
@@ -82,6 +82,10 @@ bool Prelock_error_handler::safely_trapped_errors()
...
@@ -82,6 +82,10 @@ bool Prelock_error_handler::safely_trapped_errors()
return
((
m_handled_errors
>
0
)
&&
(
m_unhandled_errors
==
0
));
return
((
m_handled_errors
>
0
)
&&
(
m_unhandled_errors
==
0
));
}
}
/**
@defgroup Data_Dictionary Data Dictionary
@{
*/
TABLE
*
unused_tables
;
/* Used by mysql_test */
TABLE
*
unused_tables
;
/* Used by mysql_test */
HASH
open_cache
;
/* Used by mysql_test */
HASH
open_cache
;
/* Used by mysql_test */
...
@@ -7802,3 +7806,6 @@ void close_performance_schema_table(THD *thd, Open_tables_state *backup)
...
@@ -7802,3 +7806,6 @@ void close_performance_schema_table(THD *thd, Open_tables_state *backup)
thd
->
restore_backup_open_tables_state
(
backup
);
thd
->
restore_backup_open_tables_state
(
backup
);
}
}
/**
@} (end of group Data_Dictionary)
*/
sql/sql_lex.h
View file @
2537a87f
...
@@ -13,6 +13,9 @@
...
@@ -13,6 +13,9 @@
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/**
@defgroup Semantic_Analysis Semantic Analysis
*/
/* YACC and LEX Definitions */
/* YACC and LEX Definitions */
...
@@ -1823,4 +1826,8 @@ extern void trim_whitespace(CHARSET_INFO *cs, LEX_STRING *str);
...
@@ -1823,4 +1826,8 @@ extern void trim_whitespace(CHARSET_INFO *cs, LEX_STRING *str);
extern
bool
is_lex_native_function
(
const
LEX_STRING
*
name
);
extern
bool
is_lex_native_function
(
const
LEX_STRING
*
name
);
/**
@} (End of group Semantic_Analysis)
*/
#endif
/* MYSQL_SERVER */
#endif
/* MYSQL_SERVER */
sql/sql_parse.cc
View file @
2537a87f
...
@@ -28,6 +28,11 @@
...
@@ -28,6 +28,11 @@
#include "events.h"
#include "events.h"
#include "sql_trigger.h"
#include "sql_trigger.h"
/**
@defgroup Runtime_Environment Runtime Environment
@{
*/
/* Used in error handling only */
/* Used in error handling only */
#define SP_TYPE_STRING(LP) \
#define SP_TYPE_STRING(LP) \
((LP)->sphead->m_type == TYPE_ENUM_FUNCTION ? "FUNCTION" : "PROCEDURE")
((LP)->sphead->m_type == TYPE_ENUM_FUNCTION ? "FUNCTION" : "PROCEDURE")
...
@@ -7242,3 +7247,7 @@ bool parse_sql(THD *thd,
...
@@ -7242,3 +7247,7 @@ bool parse_sql(THD *thd,
return
err_status
;
return
err_status
;
}
}
/**
@} (end of group Runtime_Environment)
*/
sql/sql_select.cc
View file @
2537a87f
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
/**
@defgroup Query_Optimizer Query Optimizer
@{
*/
/* mysql_select and join optimization */
/* mysql_select and join optimization */
...
@@ -16037,3 +16041,7 @@ bool JOIN::change_result(select_result *res)
...
@@ -16037,3 +16041,7 @@ bool JOIN::change_result(select_result *res)
}
}
DBUG_RETURN
(
FALSE
);
DBUG_RETURN
(
FALSE
);
}
}
/**
@} (end of group Query_Optimizer)
*/
sql/sql_yacc.yy
View file @
2537a87f
...
@@ -15,6 +15,11 @@
...
@@ -15,6 +15,11 @@
/* sql_yacc.yy */
/* sql_yacc.yy */
/**
@defgroup Parser Parser
@{
*/
%{
%{
/* thd is passed as an argument to yyparse(), and subsequently to yylex().
/* thd is passed as an argument to yyparse(), and subsequently to yylex().
** The type will be void*, so it must be cast to (THD*) when used.
** The type will be void*, so it must be cast to (THD*) when used.
...
@@ -12255,3 +12260,6 @@ uninstall:
...
@@ -12255,3 +12260,6 @@ uninstall:
}
}
;
;
/**
@} (end of group Parser)
*/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment