mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-11 21:51:21 +00:00
Fix for 903510: pt-tcp-model throws an error in --type=requests mode on empty file
This commit is contained in:
@@ -1832,7 +1832,10 @@ sub parse_event {
|
||||
if ( $self->{in_prg} ) {
|
||||
die "Error: no more lines, but in_prg = $self->{in_prg}";
|
||||
}
|
||||
if ( $self->{t_start} < $self->{current_ts} ) {
|
||||
if ( defined $self->{t_start}
|
||||
&& defined $self->{current_ts}
|
||||
&& $self->{t_start} < $self->{current_ts} )
|
||||
{
|
||||
PTDEBUG && _d("Returning event based on what's been seen");
|
||||
return $self->make_event($self->{t_start}, $self->{current_ts});
|
||||
}
|
||||
|
Reference in New Issue
Block a user