mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +00:00
Fix MasterSlave::get_slave_lag(). Revert pt-table-checksum to use old SchemaIterator. Remove pt-table-usage tests. Fix use of var from another package in pt-query-digest. Remove reference to $VERSION from pt-show-grants. Change mk- to pt- in pt-variable-advisor sample.
This commit is contained in:
@@ -585,6 +585,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