mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Always print slave host in SHOW SLAVE HOSTS
Since the client host can be extracted from the network connection, it can always be printed. This makes it easier to find out where a slave is replicating from. It could also be used to automatically discover slaves that are replicating from a master.
This commit is contained in:
committed by
Robert Bindar
parent
1e9aa46dc3
commit
0d5d8d2e7a
@@ -10,11 +10,11 @@ connection master;
|
||||
SHOW SLAVE HOSTS;
|
||||
Server_id Host Port Master_id
|
||||
3 slave2 SLAVE_PORT 1
|
||||
2 SLAVE_PORT 1
|
||||
2 localhost SLAVE_PORT 1
|
||||
connection slave2;
|
||||
include/stop_slave_io.inc
|
||||
connection master;
|
||||
SHOW SLAVE HOSTS;
|
||||
Server_id Host Port Master_id
|
||||
2 SLAVE_PORT 1
|
||||
2 localhost SLAVE_PORT 1
|
||||
include/rpl_end.inc
|
||||
|
Reference in New Issue
Block a user