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

MDEV-33078 SysInfo.pm reports incorrect CPU count on macOS

When running on macOS, MTR will ask the operating system for the core count when --parallel=auto
This commit is contained in:
Dave Gosselin
2024-05-02 11:44:02 -04:00
committed by Daniel Black
parent 7ed9d2ac00
commit 89084c2ea4
2 changed files with 13 additions and 1 deletions

View File

@ -427,6 +427,10 @@ sub main {
{
$opt_parallel= $ENV{NUMBER_OF_PROCESSORS} || 1;
}
elsif (IS_MAC)
{
$opt_parallel= `sysctl -n hw.ncpu`;
}
else
{
my $sys_info= My::SysInfo->new();