mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-27 16:12:04 +00:00
Update MasterSlave in all tools.
This commit is contained in:
@@ -2001,6 +2001,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