Commit 65074b23 authored by Bjorn Munch's avatar Bjorn Munch

Bug #42986 MTR2 should not allow 0 as a value for --parallel

Add sanity check that $opt_parallel > 0
parent 60dd4e8d
......@@ -1075,6 +1075,14 @@ sub command_line_setup {
$opt_shutdown_timeout= 0; # Kill processes instead of nice shutdown
}
# --------------------------------------------------------------------------
# Check parallel value
# --------------------------------------------------------------------------
if ($opt_parallel < 1)
{
mtr_error("0 or negative parallel value makes no sense, use positive number");
}
# --------------------------------------------------------------------------
# Record flag
# --------------------------------------------------------------------------
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment