mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
fix build
This commit is contained in:
parent
42a711015f
commit
b064021cec
@ -1159,13 +1159,13 @@ int Server::main(const std::vector<std::string> & /*args*/)
|
||||
ConcurrencyControl::SlotCount concurrent_threads_soft_limit = ConcurrencyControl::Unlimited;
|
||||
if (config->has("concurrent_threads_soft_limit_num"))
|
||||
{
|
||||
auto value = config->getInt("concurrent_threads_soft_limit_num", 0);
|
||||
auto value = config->getUInt64("concurrent_threads_soft_limit_num", 0);
|
||||
if (value > 0)
|
||||
concurrent_threads_soft_limit = std::min(concurrent_threads_soft_limit, value);
|
||||
}
|
||||
if (config->has("concurrent_threads_soft_limit_ratio_to_cores"))
|
||||
{
|
||||
auto value = config->getInt("concurrent_threads_soft_limit_ratio_to_cores", 0) * std::thread::hardware_concurrency();
|
||||
auto value = config->getUInt64("concurrent_threads_soft_limit_ratio_to_cores", 0) * std::thread::hardware_concurrency();
|
||||
if (value > 0)
|
||||
concurrent_threads_soft_limit = std::min(concurrent_threads_soft_limit, value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user