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
eddd5403
Commit
eddd5403
authored
Oct 23, 2009
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG #13963
Postfix
parent
d17245e7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
mysql-test/suite/rpl/r/rpl_show_slave_hosts.result
mysql-test/suite/rpl/r/rpl_show_slave_hosts.result
+4
-4
mysql-test/suite/rpl/t/rpl_show_slave_hosts.test
mysql-test/suite/rpl/t/rpl_show_slave_hosts.test
+3
-0
No files found.
mysql-test/suite/rpl/r/rpl_show_slave_hosts.result
View file @
eddd5403
...
...
@@ -5,13 +5,13 @@ reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
RESET SLAVE;
CHANGE MASTER TO master_host='127.0.0.1',master_port=
13000
,master_user='root';
CHANGE MASTER TO master_host='127.0.0.1',master_port=
MASTER_PORT
,master_user='root';
START SLAVE IO_THREAD;
SHOW SLAVE HOSTS;
Server_id Host Port Master_id
3 slave2
3306
1
2
13001
1
3 slave2
DEFAULT_PORT
1
2
SLAVE_PORT
1
STOP SLAVE IO_THREAD;
SHOW SLAVE HOSTS;
Server_id Host Port Master_id
2
13001
1
2
SLAVE_PORT
1
mysql-test/suite/rpl/t/rpl_show_slave_hosts.test
View file @
eddd5403
...
...
@@ -14,6 +14,7 @@ connect (slave2,127.0.0.1,root,,test,$SLAVE_MYPORT2,);
connection
slave2
;
RESET
SLAVE
;
--
replace_result
$MASTER_MYPORT
MASTER_PORT
--
eval
CHANGE
MASTER
TO
master_host
=
'127.0.0.1'
,
master_port
=
$MASTER_MYPORT
,
master_user
=
'root'
START
SLAVE
IO_THREAD
;
source
include
/
wait_for_slave_io_to_start
.
inc
;
...
...
@@ -24,6 +25,7 @@ let $field= Server_id;
# 3 is server_id of slave2.
let
$connection
=
=
'3'
;
source
include
/
wait_show_condition
.
inc
;
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
$DEFAULT_MASTER_PORT
DEFAULT_PORT
SHOW
SLAVE
HOSTS
;
connection
slave2
;
...
...
@@ -39,6 +41,7 @@ let $condition= <> '3';
# knew the leave of slave2 and has unregistered it.
let
$wait_for_all
=
1
;
source
include
/
wait_show_condition
.
inc
;
--
replace_result
$SLAVE_MYPORT
SLAVE_PORT
SHOW
SLAVE
HOSTS
;
source
include
/
master
-
slave
-
end
.
inc
;
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