Commit c7eef029 authored by Vicențiu Ciorbaru's avatar Vicențiu Ciorbaru

Increase the number of default build thread ids possibilities

When running mysql-test-run without a parallel parameter, it might
be impossible to find a free port.
parent 7ab7abdb
......@@ -1803,7 +1803,7 @@ sub set_build_thread_ports($) {
$build_thread = 300; # Start attempts from here
my $build_thread_upper = $build_thread + ($opt_parallel > 1500
? 3000
: 2 * $opt_parallel);
: 2 * $opt_parallel) + 300;
while (! $found_free)
{
$build_thread= mtr_get_unique_id($build_thread, $build_thread_upper);
......
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