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
9b79e4d9
Commit
9b79e4d9
authored
Feb 07, 2008
by
mkindahl@dl145h.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.1
into dl145h.mysql.com:/data0/mkindahl/mysql-5.1-rpl
parents
5746d879
43f06a05
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
17 deletions
+25
-17
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+0
-8
sql/rpl_rli.cc
sql/rpl_rli.cc
+4
-1
sql/rpl_rli.h
sql/rpl_rli.h
+4
-0
sql/slave.cc
sql/slave.cc
+14
-8
sql/sql_binlog.cc
sql/sql_binlog.cc
+3
-0
No files found.
mysql-test/mysql-test-run.pl
View file @
9b79e4d9
...
@@ -3870,14 +3870,6 @@ sub mysqld_arguments ($$$$) {
...
@@ -3870,14 +3870,6 @@ sub mysqld_arguments ($$$$) {
mtr_add_arg
(
$args
,
"
%s--user=root
");
mtr_add_arg
(
$args
,
"
%s--user=root
");
}
}
# When mysqld is run by a root user(euid is 0), it will fail
# to start unless we specify what user to run as, see BUG#30630
my
$euid
=
$>
;
if
(
!
$glob_win32
and
$euid
==
0
and
(
grep
(
/^--user/
,
@$extra_opt
,
@opt_extra_mysqld_opt
))
==
0
)
{
mtr_add_arg
(
$args
,
"
%s--user=root
",
$prefix
);
}
if
(
$opt_valgrind_mysqld
)
if
(
$opt_valgrind_mysqld
)
{
{
mtr_add_arg
(
$args
,
"
%s--skip-safemalloc
",
$prefix
);
mtr_add_arg
(
$args
,
"
%s--skip-safemalloc
",
$prefix
);
...
...
sql/rpl_rli.cc
View file @
9b79e4d9
...
@@ -33,7 +33,10 @@ Relay_log_info::Relay_log_info()
...
@@ -33,7 +33,10 @@ Relay_log_info::Relay_log_info()
:
Slave_reporting_capability
(
"SQL"
),
:
Slave_reporting_capability
(
"SQL"
),
no_storage
(
FALSE
),
replicate_same_server_id
(
::
replicate_same_server_id
),
no_storage
(
FALSE
),
replicate_same_server_id
(
::
replicate_same_server_id
),
info_fd
(
-
1
),
cur_log_fd
(
-
1
),
save_temporary_tables
(
0
),
info_fd
(
-
1
),
cur_log_fd
(
-
1
),
save_temporary_tables
(
0
),
group_relay_log_pos
(
0
),
group_relay_log_pos
(
0
),
event_relay_log_pos
(
0
),
#if HAVE_purify
is_fake
(
FALSE
),
#endif
cur_log_old_open_count
(
0
),
group_master_log_pos
(
0
),
log_space_total
(
0
),
cur_log_old_open_count
(
0
),
group_master_log_pos
(
0
),
log_space_total
(
0
),
ignore_log_space_limit
(
0
),
last_master_timestamp
(
0
),
slave_skip_counter
(
0
),
ignore_log_space_limit
(
0
),
last_master_timestamp
(
0
),
slave_skip_counter
(
0
),
abort_pos_wait
(
0
),
slave_run_id
(
0
),
sql_thd
(
0
),
abort_pos_wait
(
0
),
slave_run_id
(
0
),
sql_thd
(
0
),
...
...
sql/rpl_rli.h
View file @
9b79e4d9
...
@@ -154,6 +154,10 @@ class Relay_log_info : public Slave_reporting_capability
...
@@ -154,6 +154,10 @@ class Relay_log_info : public Slave_reporting_capability
ulonglong
event_relay_log_pos
;
ulonglong
event_relay_log_pos
;
ulonglong
future_event_relay_log_pos
;
ulonglong
future_event_relay_log_pos
;
#ifdef HAVE_purify
bool
is_fake
;
/* Mark that this is a fake relay log info structure */
#endif
/*
/*
Original log name and position of the group we're currently executing
Original log name and position of the group we're currently executing
(whose coordinates are group_relay_log_name/pos in the relay log)
(whose coordinates are group_relay_log_name/pos in the relay log)
...
...
sql/slave.cc
View file @
9b79e4d9
...
@@ -1893,6 +1893,10 @@ int apply_event_and_update_pos(Log_event* ev, THD* thd, Relay_log_info* rli,
...
@@ -1893,6 +1893,10 @@ int apply_event_and_update_pos(Log_event* ev, THD* thd, Relay_log_info* rli,
if
(
exec_res
==
0
)
if
(
exec_res
==
0
)
{
{
int
error
=
ev
->
update_pos
(
rli
);
int
error
=
ev
->
update_pos
(
rli
);
#ifdef HAVE_purify
if
(
!
rli
->
is_fake
)
#endif
{
char
buf
[
22
];
char
buf
[
22
];
DBUG_PRINT
(
"info"
,
(
"update_pos error = %d"
,
error
));
DBUG_PRINT
(
"info"
,
(
"update_pos error = %d"
,
error
));
DBUG_PRINT
(
"info"
,
(
"group %s %s"
,
DBUG_PRINT
(
"info"
,
(
"group %s %s"
,
...
@@ -1901,6 +1905,7 @@ int apply_event_and_update_pos(Log_event* ev, THD* thd, Relay_log_info* rli,
...
@@ -1901,6 +1905,7 @@ int apply_event_and_update_pos(Log_event* ev, THD* thd, Relay_log_info* rli,
DBUG_PRINT
(
"info"
,
(
"event %s %s"
,
DBUG_PRINT
(
"info"
,
(
"event %s %s"
,
llstr
(
rli
->
event_relay_log_pos
,
buf
),
llstr
(
rli
->
event_relay_log_pos
,
buf
),
rli
->
event_relay_log_name
));
rli
->
event_relay_log_name
));
}
/*
/*
The update should not fail, so print an error message and
The update should not fail, so print an error message and
return an error code.
return an error code.
...
@@ -1910,6 +1915,7 @@ int apply_event_and_update_pos(Log_event* ev, THD* thd, Relay_log_info* rli,
...
@@ -1910,6 +1915,7 @@ int apply_event_and_update_pos(Log_event* ev, THD* thd, Relay_log_info* rli,
*/
*/
if
(
error
)
if
(
error
)
{
{
char
buf
[
22
];
rli
->
report
(
ERROR_LEVEL
,
ER_UNKNOWN_ERROR
,
rli
->
report
(
ERROR_LEVEL
,
ER_UNKNOWN_ERROR
,
"It was not possible to update the positions"
"It was not possible to update the positions"
" of the relay log information: the slave may"
" of the relay log information: the slave may"
...
...
sql/sql_binlog.cc
View file @
9b79e4d9
...
@@ -56,6 +56,9 @@ void mysql_client_binlog_statement(THD* thd)
...
@@ -56,6 +56,9 @@ void mysql_client_binlog_statement(THD* thd)
if
(
!
thd
->
rli_fake
)
if
(
!
thd
->
rli_fake
)
{
{
thd
->
rli_fake
=
new
Relay_log_info
;
thd
->
rli_fake
=
new
Relay_log_info
;
#ifdef HAVE_purify
thd
->
rli_fake
->
is_fake
=
TRUE
;
#endif
have_fd_event
=
FALSE
;
have_fd_event
=
FALSE
;
}
}
if
(
thd
->
rli_fake
&&
!
thd
->
rli_fake
->
relay_log
.
description_event_for_exec
)
if
(
thd
->
rli_fake
&&
!
thd
->
rli_fake
->
relay_log
.
description_event_for_exec
)
...
...
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