mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +00:00
Update MasterSlave in all tools.
This commit is contained in:
@@ -3152,6 +3152,7 @@ sub repl_posn {
|
||||
sub get_slave_lag {
|
||||
my ( $self, $dbh ) = @_;
|
||||
my $stat = $self->get_slave_status($dbh);
|
||||
return unless $stat; # server is not a slave
|
||||
return $stat->{seconds_behind_master};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user