~percona-toolkit-dev/percona-toolkit/fix-sync-index-bug-1003014

« back to all changes in this revision

Viewing changes to bin/pt-slave-find

Merge recursion-method-none-bug-987694.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1454
1454
         dsn_table_dsn => $dsn_table_dsn,
1455
1455
      );
1456
1456
   }
 
1457
   elsif ( $method =~ m/none/i ) {
 
1458
      PTDEBUG && _d('Not getting to slaves');
 
1459
   }
1457
1460
   else {
1458
1461
      die "Invalid --recursion-method: $method.  Valid values are: "
1459
1462
        . "dsn=DSN, hosts, or processlist.\n";
1468
1471
   my $dp   = $args->{dsn_parser};
1469
1472
   my $dsn  = $args->{dsn};
1470
1473
 
 
1474
   if ( lc($args->{method} || '') eq 'none' ) {
 
1475
      PTDEBUG && _d('Not recursing to slaves');
 
1476
      return;
 
1477
   }
 
1478
 
1471
1479
   my $dbh;
1472
1480
   eval {
1473
1481
      $dbh = $args->{dbh} || $dp->get_dbh(
3048
3056
Possible methods are:
3049
3057
 
3050
3058
  METHOD       USES
3051
 
  ===========  ================
 
3059
  ===========  ==================
3052
3060
  processlist  SHOW PROCESSLIST
3053
3061
  hosts        SHOW SLAVE HOSTS
 
3062
  none         Do not find slaves
3054
3063
 
3055
3064
The processlist method is preferred because SHOW SLAVE HOSTS is not reliable.
3056
3065
However, the hosts method is required if the server uses a non-standard