Commit 6d88799e authored by nick@mysql.com's avatar nick@mysql.com

Reordered functions--grouped by class now.

Added comment blocks.
parent cb1d72e4
...@@ -513,3 +513,5 @@ innobase/stamp-h1 ...@@ -513,3 +513,5 @@ innobase/stamp-h1
myisam/rt_test.MYD myisam/rt_test.MYD
myisam/rt_test.MYI myisam/rt_test.MYI
stamp-h1 stamp-h1
scripts/fill_func_tables
scripts/fill_func_tables.sql
This diff is collapsed.
...@@ -54,6 +54,11 @@ ...@@ -54,6 +54,11 @@
#define LINE_START_EMPTY 0x8 #define LINE_START_EMPTY 0x8
#define ESCAPED_EMPTY 0x10 #define ESCAPED_EMPTY 0x10
/*****************************************************************************
old_sql_ex struct
****************************************************************************/
struct old_sql_ex struct old_sql_ex
{ {
char field_term; char field_term;
...@@ -67,6 +72,11 @@ struct old_sql_ex ...@@ -67,6 +72,11 @@ struct old_sql_ex
#define NUM_LOAD_DELIM_STRS 5 #define NUM_LOAD_DELIM_STRS 5
/*****************************************************************************
sql_ex_info struct
****************************************************************************/
struct sql_ex_info struct sql_ex_info
{ {
char* field_term; char* field_term;
...@@ -99,13 +109,19 @@ struct sql_ex_info ...@@ -99,13 +109,19 @@ struct sql_ex_info
} }
}; };
/* /*****************************************************************************
Binary log consists of events. Each event has a fixed length header,
followed by possibly variable ( depending on the type of event) length MySQL Binary Log
data body. The data body consists of an optional fixed length segment
(post-header), and an optional variable length segment. See #defines and This log consists of events. Each event has a fixed-length header,
comments below for the format specifics possibly followed by a variable length data body.
*/
The data body consists of an optional fixed length segment (post-header)
and an optional variable length segment.
See the #defines below for the format specifics.
****************************************************************************/
/* event-specific post-header sizes */ /* event-specific post-header sizes */
#define LOG_EVENT_HEADER_LEN 19 #define LOG_EVENT_HEADER_LEN 19
...@@ -221,6 +237,13 @@ class THD; ...@@ -221,6 +237,13 @@ class THD;
struct st_relay_log_info; struct st_relay_log_info;
/*****************************************************************************
Log_event class
This is the abstract base class for binary log events.
****************************************************************************/
class Log_event class Log_event
{ {
public: public:
...@@ -303,6 +326,13 @@ class Log_event ...@@ -303,6 +326,13 @@ class Log_event
}; };
/*****************************************************************************
Query Log Event class
Logs SQL queries
****************************************************************************/
class Query_log_event: public Log_event class Query_log_event: public Log_event
{ {
protected: protected:
...@@ -355,6 +385,11 @@ class Query_log_event: public Log_event ...@@ -355,6 +385,11 @@ class Query_log_event: public Log_event
}; };
/*****************************************************************************
Slave Log Event class
****************************************************************************/
class Slave_log_event: public Log_event class Slave_log_event: public Log_event
{ {
protected: protected:
...@@ -384,6 +419,12 @@ class Slave_log_event: public Log_event ...@@ -384,6 +419,12 @@ class Slave_log_event: public Log_event
int write_data(IO_CACHE* file ); int write_data(IO_CACHE* file );
}; };
/*****************************************************************************
Load Log Event class
****************************************************************************/
class Load_log_event: public Log_event class Load_log_event: public Log_event
{ {
protected: protected:
...@@ -446,6 +487,11 @@ class Load_log_event: public Log_event ...@@ -446,6 +487,11 @@ class Load_log_event: public Log_event
extern char server_version[SERVER_VERSION_LENGTH]; extern char server_version[SERVER_VERSION_LENGTH];
/*****************************************************************************
Start Log Event class
****************************************************************************/
class Start_log_event: public Log_event class Start_log_event: public Log_event
{ {
public: public:
...@@ -477,6 +523,13 @@ class Start_log_event: public Log_event ...@@ -477,6 +523,13 @@ class Start_log_event: public Log_event
}; };
/*****************************************************************************
Intvar Log Event class
Logs special variables such as auto_increment values
****************************************************************************/
class Intvar_log_event: public Log_event class Intvar_log_event: public Log_event
{ {
public: public:
...@@ -503,9 +556,11 @@ class Intvar_log_event: public Log_event ...@@ -503,9 +556,11 @@ class Intvar_log_event: public Log_event
}; };
/***************************************************************************** /*****************************************************************************
*
* Rand log event class Rand Log Event class
*
Logs random seed used by the next RAND()
****************************************************************************/ ****************************************************************************/
class Rand_log_event: public Log_event class Rand_log_event: public Log_event
{ {
...@@ -531,6 +586,12 @@ class Rand_log_event: public Log_event ...@@ -531,6 +586,12 @@ class Rand_log_event: public Log_event
bool is_valid() { return 1; } bool is_valid() { return 1; }
}; };
/*****************************************************************************
Stop Log Event class
****************************************************************************/
class Stop_log_event: public Log_event class Stop_log_event: public Log_event
{ {
public: public:
...@@ -551,6 +612,13 @@ class Stop_log_event: public Log_event ...@@ -551,6 +612,13 @@ class Stop_log_event: public Log_event
}; };
/*****************************************************************************
Rotate Log Event class
This will be depricated when we move to using sequence ids.
****************************************************************************/
class Rotate_log_event: public Log_event class Rotate_log_event: public Log_event
{ {
public: public:
...@@ -585,6 +653,11 @@ class Rotate_log_event: public Log_event ...@@ -585,6 +653,11 @@ class Rotate_log_event: public Log_event
/* the classes below are for the new LOAD DATA INFILE logging */ /* the classes below are for the new LOAD DATA INFILE logging */
/*****************************************************************************
Create File Log Event class
****************************************************************************/
class Create_file_log_event: public Load_log_event class Create_file_log_event: public Load_log_event
{ {
protected: protected:
...@@ -641,6 +714,11 @@ class Create_file_log_event: public Load_log_event ...@@ -641,6 +714,11 @@ class Create_file_log_event: public Load_log_event
}; };
/*****************************************************************************
Append Block Log Event class
****************************************************************************/
class Append_block_log_event: public Log_event class Append_block_log_event: public Log_event
{ {
public: public:
...@@ -665,7 +743,11 @@ class Append_block_log_event: public Log_event ...@@ -665,7 +743,11 @@ class Append_block_log_event: public Log_event
int write_data(IO_CACHE* file); int write_data(IO_CACHE* file);
}; };
/*****************************************************************************
Delete File Log Event class
****************************************************************************/
class Delete_file_log_event: public Log_event class Delete_file_log_event: public Log_event
{ {
public: public:
...@@ -687,6 +769,11 @@ class Delete_file_log_event: public Log_event ...@@ -687,6 +769,11 @@ class Delete_file_log_event: public Log_event
int write_data(IO_CACHE* file); int write_data(IO_CACHE* file);
}; };
/*****************************************************************************
Execute Load Log Event class
****************************************************************************/
class Execute_load_log_event: public Log_event class Execute_load_log_event: public Log_event
{ {
public: public:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment