mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-09 18:30:16 +00:00
Make pqd die on invalid --resume file line.
This commit is contained in:
@@ -12980,6 +12980,9 @@ sub main {
|
||||
my $line = $_;
|
||||
chomp $line;
|
||||
my ($key, $value) = split('=', $line);
|
||||
if ( !$key || !defined $value || $value < 0 ) {
|
||||
die "Invalid line in --resume $resume_file: $line";
|
||||
}
|
||||
$resume->{$key} = $value;
|
||||
} split("\n", $resume_offset);
|
||||
if ( $resume->{end_offset} &&
|
||||
|
Reference in New Issue
Block a user