Skip to content

Commit

Permalink
remove implicit up bound of active query soft limit (#8878) (#8884)
Browse files Browse the repository at this point in the history
close #8876
  • Loading branch information
ti-chi-bot committed Apr 3, 2024
1 parent b32dea6 commit e73e61e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dbms/src/Flash/Mpp/MinTSOScheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ MinTSOScheduler::MinTSOScheduler(UInt64 soft_limit, UInt64 hard_limit, UInt64 ac
, log(Logger::get())
{
auto cores = static_cast<size_t>(getNumberOfLogicalCPUCores() / 2);
if (active_set_soft_limit == 0 || active_set_soft_limit > 10 * cores)
if (active_set_soft_limit == 0)
{
/// set active_set_soft_limit to a reasonable value
active_set_soft_limit = (cores + 2) / 2; /// at least 1
Expand Down

0 comments on commit e73e61e

Please sign in to comment.