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
0e45e8e5
Commit
0e45e8e5
authored
Jun 16, 2003
by
guilhem@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-3.23
into mysql.com:/home/mysql_src/mysql-3.23
parents
2401227c
85b11035
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
sql/log_event.cc
sql/log_event.cc
+3
-5
sql/log_event.h
sql/log_event.h
+11
-0
No files found.
sql/log_event.cc
View file @
0e45e8e5
...
@@ -302,13 +302,11 @@ void Start_log_event::print(FILE* file, bool short_form, char* last_db)
...
@@ -302,13 +302,11 @@ void Start_log_event::print(FILE* file, bool short_form, char* last_db)
return
;
return
;
print_header
(
file
);
print_header
(
file
);
fprintf
(
file
,
"
\t
Start: binlog v %d, server v %s"
,
binlog_version
,
fprintf
(
file
,
"
\t
Start: binlog v %d, server v %s
created
"
,
binlog_version
,
server_version
);
server_version
);
print_timestamp
(
file
);
if
(
created
)
if
(
created
)
{
fprintf
(
file
,
" at startup"
);
fprintf
(
file
,
" created "
);
print_timestamp
(
file
,
&
created
);
}
fputc
(
'\n'
,
file
);
fputc
(
'\n'
,
file
);
fflush
(
file
);
fflush
(
file
);
}
}
...
...
sql/log_event.h
View file @
0e45e8e5
...
@@ -335,6 +335,17 @@ public:
...
@@ -335,6 +335,17 @@ public:
by FLUSH LOGS or automatic rotation), 'created' should be 0.
by FLUSH LOGS or automatic rotation), 'created' should be 0.
This "trick" is used by MySQL >=4.0.14 slaves to know if they must drop the
This "trick" is used by MySQL >=4.0.14 slaves to know if they must drop the
stale temporary tables or not.
stale temporary tables or not.
Note that when 'created'!=0, it is always equal to the event's timestamp;
indeed Start_log_event is written only in log.cc where the first
constructor below is called, in which 'created' is set to 'when'.
So in fact 'created' is a useless variable. When it is 0
we can read the actual value from timestamp ('when') and when it is
non-zero we can read the same value from timestamp ('when'). Conclusion:
- we use timestamp to print when the binlog was created.
- we use 'created' only to know if this is a first binlog or not.
In 3.23.57 we did not pay attention to this identity, so mysqlbinlog in
3.23.57 does not print 'created the_date' if created was zero. This is now
fixed.
*/
*/
time_t
created
;
time_t
created
;
uint16
binlog_version
;
uint16
binlog_version
;
...
...
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