From e40ed0e881690ed072c28c0f4080a3cfb83e5d73 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sun, 12 Apr 2020 18:07:40 +0200 Subject: [PATCH] fix incorrect merge --- mysql-test/mysql-test-run.pl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl index 5cf41b65461..2df95f9ffe7 100755 --- a/mysql-test/mysql-test-run.pl +++ b/mysql-test/mysql-test-run.pl @@ -614,11 +614,7 @@ sub main { else { my $sys_info= My::SysInfo->new(); - $opt_parallel= $sys_info->num_cpus() + - int($sys_info->min_bogomips()/500) - 4; - for my $limit (2000, 1500, 1000, 500){ - $opt_parallel-- if ($sys_info->min_bogomips() < $limit); - } + $opt_parallel= $sys_info->num_cpus()+int($sys_info->min_bogomips()/500)-4; } my $max_par= $ENV{MTR_MAX_PARALLEL} || 8; $opt_parallel= $max_par if ($opt_parallel > $max_par);