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
93726f51
Commit
93726f51
authored
Dec 21, 2009
by
Alfranio Correia
Browse files
Options
Browse Files
Download
Plain Diff
merge mysql-5.1-rep+3 --> mysql-5.1-rep+2-delivery1
parents
8342a400
261a1e20
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
2 deletions
+19
-2
mysql-test/suite/rpl/t/rpl_timezone.test
mysql-test/suite/rpl/t/rpl_timezone.test
+4
-0
sql/repl_failsafe.cc
sql/repl_failsafe.cc
+9
-2
sql/slave.cc
sql/slave.cc
+6
-0
No files found.
mysql-test/suite/rpl/t/rpl_timezone.test
View file @
93726f51
...
...
@@ -13,6 +13,10 @@
# timezone used in CONVERT_TZ is not binlogged. To debug (by Guilhem
# and possibly Konstantin).
--
disable_query_log
CALL
mtr
.
add_suppression
(
"Unsafe statement binlogged in statement format since BINLOG_FORMAT = STATEMENT"
);
--
enable_query_log
--
disable_ps_protocol
source
include
/
master
-
slave
.
inc
;
...
...
sql/repl_failsafe.cc
View file @
93726f51
...
...
@@ -183,11 +183,18 @@ int register_slave(THD* thd, uchar* packet, uint packet_length)
get_object
(
p
,
si
->
host
,
"Failed to register slave: too long 'report-host'"
);
get_object
(
p
,
si
->
user
,
"Failed to register slave: too long 'report-user'"
);
get_object
(
p
,
si
->
password
,
"Failed to register slave; too long 'report-password'"
);
/*6 is the total length of port and master_id*/
if
(
p
+
6
!=
p_end
)
if
(
p
+
10
>
p_end
)
goto
err
;
si
->
port
=
uint2korr
(
p
);
p
+=
2
;
/*
We need to by pass the bytes used in the fake rpl_recovery_rank
variable. It was removed in patch for BUG#13963. But this would
make a server with that patch unable to connect to an old master.
See: BUG#49259
*/
// si->rpl_recovery_rank= uint4korr(p);
p
+=
4
;
if
(
!
(
si
->
master_id
=
uint4korr
(
p
)))
si
->
master_id
=
server_id
;
si
->
thd
=
thd
;
...
...
sql/slave.cc
View file @
93726f51
...
...
@@ -1612,6 +1612,12 @@ int register_slave_on_master(MYSQL* mysql, Master_info *mi,
pos
=
net_store_data
(
pos
,
(
uchar
*
)
report_user
,
report_user_len
);
pos
=
net_store_data
(
pos
,
(
uchar
*
)
report_password
,
report_password_len
);
int2store
(
pos
,
(
uint16
)
report_port
);
pos
+=
2
;
/*
Fake rpl_recovery_rank, which was removed in BUG#13963,
so that this server can register itself on old servers,
see BUG#49259.
*/
int4store
(
pos
,
/* rpl_recovery_rank */
0
);
pos
+=
4
;
/* The master will fill in master_id */
int4store
(
pos
,
0
);
pos
+=
4
;
...
...
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