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:
Daniel Nichter
2011-07-13 16:36:14 -06:00
parent b4b5f3d7b0
commit 1480606bb2
19 changed files with 316 additions and 489 deletions

View File

@@ -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};
}