Some information about replication
This commit is contained in:
parent
ff2a47e461
commit
031f741296
1 changed files with 7 additions and 3 deletions
|
@ -1843,15 +1843,19 @@ sub get_replication_status {
|
||||||
. scalar( keys %myslaves )
|
. scalar( keys %myslaves )
|
||||||
. " server(s).";
|
. " server(s).";
|
||||||
}
|
}
|
||||||
|
infoprint "Binlog format: ". $myvar{'binlog_format'};
|
||||||
|
infoprint "XA support enabled: ". $myvar{'innodb_support_xa'};
|
||||||
|
infoprint "Semi synchronous replication Master: ". $myvar{'rpl_semi_sync_master_enabled'};
|
||||||
|
infoprint "Semi synchronous replication Slave: ". $myvar{'rpl_semi_sync_slave_enabled'};
|
||||||
if ( scalar( keys %myrepl ) == 0 and scalar( keys %myslaves ) == 0 ) {
|
if ( scalar( keys %myrepl ) == 0 and scalar( keys %myslaves ) == 0 ) {
|
||||||
infoprint "This is a standalone server.";
|
infoprint "This is a standalone server";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if ( scalar( keys %myrepl ) == 0 ) {
|
if ( scalar( keys %myrepl ) == 0 ) {
|
||||||
infoprint "No replication setup for this server.";
|
infoprint "No replication setup for this server or replication not started.";
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$result{'Replication'}{'status'} = \%myrepl;
|
$result{'Replication'}{'status'} = \%myrepl;
|
||||||
my ($io_running) = $myrepl{'Slave_IO_Running'};
|
my ($io_running) = $myrepl{'Slave_IO_Running'};
|
||||||
debugprint "IO RUNNING: $io_running ";
|
debugprint "IO RUNNING: $io_running ";
|
||||||
|
|
Loading…
Reference in a new issue