~percona-toolkit-dev/percona-toolkit/pt-fingerprint-broken-fingerprinting-of-specific-INSERT-REPLACE-queries-1289516

« back to all changes in this revision

Viewing changes to bin/pt-diskstats

Merge fix-pt-archiver-dry-run-bug-1199589 and make 2.2.4 release dates in Changelog and release_notes.pod match.

Show diffs side-by-side

added added

removed removed

Lines of Context:
504
504
   my $long = exists $self->{opts}->{$opt}       ? $opt
505
505
            : exists $self->{short_opts}->{$opt} ? $self->{short_opts}->{$opt}
506
506
            : die "Getopt::Long gave a nonexistent option: $opt";
507
 
 
508
507
   $opt = $self->{opts}->{$long};
509
508
   if ( $opt->{is_cumulative} ) {
510
509
      $opt->{value}++;
511
510
   }
 
511
   elsif ( ($opt->{type} || '') eq 's' && $val =~ m/^--?(.+)/ ) {
 
512
      my $next_opt = $1;
 
513
      if (    exists $self->{opts}->{$next_opt}
 
514
           || exists $self->{short_opts}->{$next_opt} ) {
 
515
         $self->save_error("--$long requires a string value");
 
516
         return;
 
517
      }
 
518
      else {
 
519
         $opt->{value} = $val;
 
520
      }
 
521
   }
512
522
   else {
513
523
      $opt->{value} = $val;
514
524
   }
5586
5596
 
5587
5597
=head1 VERSION
5588
5598
 
5589
 
pt-diskstats 2.2.3
 
5599
pt-diskstats 2.2.4
5590
5600
 
5591
5601
=cut