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

« back to all changes in this revision

Viewing changes to lib/TCPRequestAggregator.pm

  • 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:
122
122
         if ( $self->{in_prg} ) {
123
123
            die "Error: no more lines, but in_prg = $self->{in_prg}";
124
124
         }
125
 
         if ( $self->{t_start} < $self->{current_ts} ) {
 
125
         if ( defined $self->{t_start}
 
126
                && defined $self->{current_ts}
 
127
                && $self->{t_start} < $self->{current_ts} )
 
128
         {
126
129
            PTDEBUG && _d("Returning event based on what's been seen");
127
130
            return $self->make_event($self->{t_start}, $self->{current_ts});
128
131
         }