1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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

Add sanity check that $opt_parallel > 0
This commit is contained in:
Bjorn Munch
2009-03-04 12:12:57 +01:00
parent 60dd4e8da4
commit 65074b23c2

View File

@ -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
# --------------------------------------------------------------------------