Test and fix typo in MasterSlave.pm and update that module in all tools.

This commit is contained in:
Daniel Nichter
2012-01-31 09:53:06 -07:00
parent f78866c2f6
commit 1a619cc47c
10 changed files with 639 additions and 11 deletions

View File

@@ -47,7 +47,7 @@ sub get_slaves {
my $slaves = [];
my $method = $o->get('recursion-method');
PTDEBUG && _d('Slave recursion method:', $method);
if ( !$method || $method =~ m/proocesslist|hosts/i ) {
if ( !$method || $method =~ m/processlist|hosts/i ) {
my @required_args = qw(dbh dsn);
foreach my $arg ( @required_args ) {
die "I need a $arg argument" unless $args{$arg};
@@ -77,7 +77,7 @@ sub get_slaves {
);
}
else {
die "Invalid --recusion-method: $method. Valid values are: "
die "Invalid --recursion-method: $method. Valid values are: "
. "dsn=DSN, hosts, or processlist.\n";
}