提交 6cdf0345 编写于 作者: N nroskill 提交者: LINGuanRen

fix net_thread_count > 64 coredump

上级 4713d791
......@@ -55,7 +55,7 @@ easy_io_t* easy_eio_create(easy_io_t* eio, int io_thread_count)
}
if (io_thread_count <= 0 || io_thread_count > EASY_MAX_THREAD_CNT) {
io_thread_count = sysconf(_SC_NPROCESSORS_CONF);
io_thread_count = EASY_MAX_THREAD_CNT;
}
if ((pool = easy_pool_create(0)) == NULL) {
......
......@@ -59,8 +59,8 @@ DEF_TIME(internal_sql_execute_timeout, OB_CLUSTER_PARAMETER, "30s", "[1000us, 10
"the number of microseconds an internal DML request is permitted to "
"execute before it is terminated. Range: [1000us, 10m]",
ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::DYNAMIC_EFFECTIVE));
DEF_INT(net_thread_count, OB_CLUSTER_PARAMETER, "0", "[0,128]",
"the number of rpc/mysql I/O threads for Libeasy. Range: [0, 128] in integer, 0 stands for max(6, CPU_NUM/8)",
DEF_INT(net_thread_count, OB_CLUSTER_PARAMETER, "0", "[0,64]",
"the number of rpc/mysql I/O threads for Libeasy. Range: [0, 64] in integer, 0 stands for max(6, CPU_NUM/8)",
ObParameterAttr(Section::OBSERVER, Source::DEFAULT, EditLevel::STATIC_EFFECTIVE));
DEF_INT(high_priority_net_thread_count, OB_CLUSTER_PARAMETER, "0", "[0,100]",
"the number of rpc I/O threads for high priority messages, 0 means set off. Range: [0, 100] in integer",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册