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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6d88799e
Commit
6d88799e
authored
Oct 29, 2002
by
nick@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reordered functions--grouped by class now.
Added comment blocks.
parent
cb1d72e4
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1746 additions
and
1040 deletions
+1746
-1040
.bzrignore
.bzrignore
+2
-0
sql/log_event.cc
sql/log_event.cc
+1647
-1030
sql/log_event.h
sql/log_event.h
+97
-10
No files found.
.bzrignore
View file @
6d88799e
...
...
@@ -513,3 +513,5 @@ innobase/stamp-h1
myisam/rt_test.MYD
myisam/rt_test.MYI
stamp-h1
scripts/fill_func_tables
scripts/fill_func_tables.sql
sql/log_event.cc
View file @
6d88799e
This diff is collapsed.
Click to expand it.
sql/log_event.h
View file @
6d88799e
...
...
@@ -54,6 +54,11 @@
#define LINE_START_EMPTY 0x8
#define ESCAPED_EMPTY 0x10
/*****************************************************************************
old_sql_ex struct
****************************************************************************/
struct
old_sql_ex
{
char
field_term
;
...
...
@@ -67,6 +72,11 @@ struct old_sql_ex
#define NUM_LOAD_DELIM_STRS 5
/*****************************************************************************
sql_ex_info struct
****************************************************************************/
struct
sql_ex_info
{
char
*
field_term
;
...
...
@@ -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
data body. The data body consists of an optional fixed length segment
(post-header), and an optional variable length segment. See #defines and
comments below for the format specifics
*/
/*****************************************************************************
MySQL Binary Log
This log consists of events. Each event has a fixed-length header,
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 */
#define LOG_EVENT_HEADER_LEN 19
...
...
@@ -221,6 +237,13 @@ class THD;
struct
st_relay_log_info
;
/*****************************************************************************
Log_event class
This is the abstract base class for binary log events.
****************************************************************************/
class
Log_event
{
public:
...
...
@@ -303,6 +326,13 @@ class Log_event
};
/*****************************************************************************
Query Log Event class
Logs SQL queries
****************************************************************************/
class
Query_log_event
:
public
Log_event
{
protected:
...
...
@@ -355,6 +385,11 @@ class Query_log_event: public Log_event
};
/*****************************************************************************
Slave Log Event class
****************************************************************************/
class
Slave_log_event
:
public
Log_event
{
protected:
...
...
@@ -384,6 +419,12 @@ class Slave_log_event: public Log_event
int
write_data
(
IO_CACHE
*
file
);
};
/*****************************************************************************
Load Log Event class
****************************************************************************/
class
Load_log_event
:
public
Log_event
{
protected:
...
...
@@ -446,6 +487,11 @@ class Load_log_event: public Log_event
extern
char
server_version
[
SERVER_VERSION_LENGTH
];
/*****************************************************************************
Start Log Event class
****************************************************************************/
class
Start_log_event
:
public
Log_event
{
public:
...
...
@@ -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
{
public:
...
...
@@ -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
{
...
...
@@ -531,6 +586,12 @@ class Rand_log_event: public Log_event
bool
is_valid
()
{
return
1
;
}
};
/*****************************************************************************
Stop Log Event class
****************************************************************************/
class
Stop_log_event
:
public
Log_event
{
public:
...
...
@@ -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
{
public:
...
...
@@ -585,6 +653,11 @@ class Rotate_log_event: public Log_event
/* 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
{
protected:
...
...
@@ -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
{
public:
...
...
@@ -665,7 +743,11 @@ class Append_block_log_event: public Log_event
int
write_data
(
IO_CACHE
*
file
);
};
/*****************************************************************************
Delete File Log Event class
****************************************************************************/
class
Delete_file_log_event
:
public
Log_event
{
public:
...
...
@@ -687,6 +769,11 @@ class Delete_file_log_event: public Log_event
int
write_data
(
IO_CACHE
*
file
);
};
/*****************************************************************************
Execute Load Log Event class
****************************************************************************/
class
Execute_load_log_event
:
public
Log_event
{
public:
...
...
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