~percona-toolkit-dev/percona-toolkit/cant-nibble-bug-918056

« back to all changes in this revision

Viewing changes to bin/pt-tcp-model

  • Committer: fraserb at gmail
  • Date: 2012-07-30 14:52:53 UTC
  • mto: This revision was merged to the branch mainline in revision 342.
  • Revision ID: fraserb@gmail.com-20120730145253-9wsdd2wxwwbqj4c2
Fix for 903510: pt-tcp-model throws an error in --type=requests mode on empty file

Show diffs side-by-side

added added

removed removed

Lines of Context:
1832
1832
         if ( $self->{in_prg} ) {
1833
1833
            die "Error: no more lines, but in_prg = $self->{in_prg}";
1834
1834
         }
1835
 
         if ( $self->{t_start} < $self->{current_ts} ) {
 
1835
         if ( defined $self->{t_start}
 
1836
                && defined $self->{current_ts}
 
1837
                && $self->{t_start} < $self->{current_ts} )
 
1838
         {
1836
1839
            PTDEBUG && _d("Returning event based on what's been seen");
1837
1840
            return $self->make_event($self->{t_start}, $self->{current_ts});
1838
1841
         }