This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new 5659ea921e1 branch-4.0: [enhancement](config) remove oom validator in
config.cpp #59874 (#59957)
5659ea921e1 is described below
commit 5659ea921e17faccdd8a2ec70057de8729c467e6
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Fri Jan 16 14:32:09 2026 +0800
branch-4.0: [enhancement](config) remove oom validator in config.cpp #59874
(#59957)
Cherry-picked from #59874
Co-authored-by: yiguolei <[email protected]>
---
be/src/common/config.cpp | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/be/src/common/config.cpp b/be/src/common/config.cpp
index 3394e1a9067..00f103bd4fb 100644
--- a/be/src/common/config.cpp
+++ b/be/src/common/config.cpp
@@ -1595,18 +1595,7 @@ DEFINE_mInt64(max_csv_line_reader_output_buffer_size,
"4294967296");
// Maximum number of OpenMP threads allowed for concurrent vector index builds.
// -1 means auto: use 80% of the available CPU cores.
DEFINE_Int32(omp_threads_limit, "-1");
-DEFINE_Validator(omp_threads_limit, [](const int config) -> bool {
- if (config > 0) {
- omp_threads_limit = config;
- return true;
- }
- CpuInfo::init();
- int core_cap = config::num_cores > 0 ? config::num_cores :
CpuInfo::num_cores();
- core_cap = std::max(1, core_cap);
- // Use at most 80% of the available CPU cores.
- omp_threads_limit = std::max(1, core_cap * 4 / 5);
- return true;
-});
+
// The capacity of segment partial column cache, used to cache column readers
for each segment.
DEFINE_mInt32(max_segment_partial_column_cache_size, "100");
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]