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
b19cf78c
Commit
b19cf78c
authored
Dec 08, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/mysql_src/mysql-4.0
parents
203c4674
f1446eac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
4 deletions
+9
-4
sql/log.cc
sql/log.cc
+2
-2
sql/log_event.cc
sql/log_event.cc
+6
-1
sql/log_event.h
sql/log_event.h
+1
-1
No files found.
sql/log.cc
View file @
b19cf78c
...
@@ -843,7 +843,7 @@ void MYSQL_LOG::new_file(bool need_lock)
...
@@ -843,7 +843,7 @@ void MYSQL_LOG::new_file(bool need_lock)
We log the whole file name for log file as the user may decide
We log the whole file name for log file as the user may decide
to change base names at some point.
to change base names at some point.
*/
*/
THD
*
thd
=
current_thd
;
THD
*
thd
=
current_thd
;
/* may be 0 if we are reacting to SIGHUP */
Rotate_log_event
r
(
thd
,
new_name
+
dirname_length
(
new_name
));
Rotate_log_event
r
(
thd
,
new_name
+
dirname_length
(
new_name
));
r
.
set_log_pos
(
this
);
r
.
set_log_pos
(
this
);
...
@@ -852,7 +852,7 @@ void MYSQL_LOG::new_file(bool need_lock)
...
@@ -852,7 +852,7 @@ void MYSQL_LOG::new_file(bool need_lock)
the slave running with log-bin, we set the flag on rotate
the slave running with log-bin, we set the flag on rotate
event to prevent infinite log rotation loop
event to prevent infinite log rotation loop
*/
*/
if
(
thd
->
slave_thread
)
if
(
thd
&&
thd
->
slave_thread
)
r
.
flags
|=
LOG_EVENT_FORCED_ROTATE_F
;
r
.
flags
|=
LOG_EVENT_FORCED_ROTATE_F
;
r
.
write
(
&
log_file
);
r
.
write
(
&
log_file
);
bytes_written
+=
r
.
get_event_len
();
bytes_written
+=
r
.
get_event_len
();
...
...
sql/log_event.cc
View file @
b19cf78c
...
@@ -128,7 +128,12 @@ Log_event::Log_event(THD* thd_arg, uint16 flags_arg, bool using_trans)
...
@@ -128,7 +128,12 @@ Log_event::Log_event(THD* thd_arg, uint16 flags_arg, bool using_trans)
(
thd
->
options
&
(
OPTION_NOT_AUTOCOMMIT
|
OPTION_BEGIN
)));
(
thd
->
options
&
(
OPTION_NOT_AUTOCOMMIT
|
OPTION_BEGIN
)));
}
}
/*
This minimal constructor is for when you are not even sure that there is a
valid THD. For example in the server when we are shutting down or flushing
logs after receiving a SIGHUP (then we must write a Rotate to the binlog but
we have no THD, so we need this minimal constructor).
*/
Log_event
::
Log_event
()
Log_event
::
Log_event
()
:
temp_buf
(
0
),
exec_time
(
0
),
cached_event_len
(
0
),
flags
(
0
),
cache_stmt
(
0
),
:
temp_buf
(
0
),
exec_time
(
0
),
cached_event_len
(
0
),
flags
(
0
),
cache_stmt
(
0
),
thd
(
0
)
thd
(
0
)
...
...
sql/log_event.h
View file @
b19cf78c
...
@@ -607,7 +607,7 @@ class Rotate_log_event: public Log_event
...
@@ -607,7 +607,7 @@ class Rotate_log_event: public Log_event
Rotate_log_event
(
THD
*
thd_arg
,
const
char
*
new_log_ident_arg
,
Rotate_log_event
(
THD
*
thd_arg
,
const
char
*
new_log_ident_arg
,
uint
ident_len_arg
=
0
,
uint
ident_len_arg
=
0
,
ulonglong
pos_arg
=
LOG_EVENT_OFFSET
)
ulonglong
pos_arg
=
LOG_EVENT_OFFSET
)
:
Log_event
(
thd_arg
,
0
,
0
),
new_log_ident
(
new_log_ident_arg
),
:
Log_event
(),
new_log_ident
(
new_log_ident_arg
),
pos
(
pos_arg
),
ident_len
(
ident_len_arg
?
ident_len_arg
:
pos
(
pos_arg
),
ident_len
(
ident_len_arg
?
ident_len_arg
:
(
uint
)
strlen
(
new_log_ident_arg
)),
alloced
(
0
)
(
uint
)
strlen
(
new_log_ident_arg
)),
alloced
(
0
)
{}
{}
...
...
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