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.
This commit is contained in:
Vicențiu Ciorbaru 2016-06-16 22:00:16 +03:00
parent 7ab7abdb51
commit c7eef02953

View File

@ -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);