Update MasterSlave in all tools.

This commit is contained in:
Daniel Nichter
2011-07-13 16:52:32 -06:00
parent 1480606bb2
commit 1f52b66919
8 changed files with 16 additions and 175 deletions

View File

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