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
8c83b2be
Commit
8c83b2be
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
31f7f842
3283101f
Changes
3
Hide 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 @
8c83b2be
...
@@ -13,6 +13,10 @@
...
@@ -13,6 +13,10 @@
# timezone used in CONVERT_TZ is not binlogged. To debug (by Guilhem
# timezone used in CONVERT_TZ is not binlogged. To debug (by Guilhem
# and possibly Konstantin).
# 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
--
disable_ps_protocol
source
include
/
master
-
slave
.
inc
;
source
include
/
master
-
slave
.
inc
;
...
...
sql/repl_failsafe.cc
View file @
8c83b2be
...
@@ -183,11 +183,18 @@ int register_slave(THD* thd, uchar* packet, uint packet_length)
...
@@ -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
->
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
->
user
,
"Failed to register slave: too long 'report-user'"
);
get_object
(
p
,
si
->
password
,
"Failed to register slave; too long 'report-password'"
);
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
+
10
>
p_end
)
if
(
p
+
6
!=
p_end
)
goto
err
;
goto
err
;
si
->
port
=
uint2korr
(
p
);
si
->
port
=
uint2korr
(
p
);
p
+=
2
;
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
)))
if
(
!
(
si
->
master_id
=
uint4korr
(
p
)))
si
->
master_id
=
server_id
;
si
->
master_id
=
server_id
;
si
->
thd
=
thd
;
si
->
thd
=
thd
;
...
...
sql/slave.cc
View file @
8c83b2be
...
@@ -1612,6 +1612,12 @@ int register_slave_on_master(MYSQL* mysql, Master_info *mi,
...
@@ -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_user
,
report_user_len
);
pos
=
net_store_data
(
pos
,
(
uchar
*
)
report_password
,
report_password_len
);
pos
=
net_store_data
(
pos
,
(
uchar
*
)
report_password
,
report_password_len
);
int2store
(
pos
,
(
uint16
)
report_port
);
pos
+=
2
;
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 */
/* The master will fill in master_id */
int4store
(
pos
,
0
);
pos
+=
4
;
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