Skip to content

Commit 2a1853c

Browse files
committed
Address review comments
1 parent 4e84e08 commit 2a1853c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pgml-extension/src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub static PGML_HF_TRUST_WHITELIST: Lazy<(&'static str, GucSetting<Option<&'stat
2222
)
2323
});
2424
pub static PGML_OMP_NUM_THREADS: Lazy<(&'static str, GucSetting<i32>)> =
25-
Lazy::new(|| ("pgml.omp_num_threads", GucSetting::<i32>::new(-1)));
25+
Lazy::new(|| ("pgml.omp_num_threads", GucSetting::<i32>::new(0)));
2626

2727
pub fn initialize_server_params() {
2828
GucRegistry::define_string_guc(
@@ -62,7 +62,7 @@ pub fn initialize_server_params() {
6262
"Specifies the number of threads used by default of underlying OpenMP library. Only positive integers are valid",
6363
"",
6464
&PGML_OMP_NUM_THREADS.1,
65-
-1,
65+
0,
6666
i32::max_value(),
6767
GucContext::Backend,
6868
GucFlags::default(),

0 commit comments

Comments
 (0)