File tree Expand file tree Collapse file tree 4 files changed +5
-19
lines changed Expand file tree Collapse file tree 4 files changed +5
-19
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,8 @@ __attribute__((constructor(0))) void init_je_malloc_message()
154154#endif
155155
156156// / OpenSSL early initialization.
157- // / Must be ran after EnvironmentChecks.cpp, as OpenSSL uses SSSE3.
157+ // / See also EnvironmentChecks.cpp for other static initializers.
158+ // / Must be ran after EnvironmentChecks.cpp, as OpenSSL uses SSE4.1 and POPCNT.
158159__attribute__ ((constructor(202 ))) void init_ssl()
159160{
160161 DB::OpenSSLInitializer::initialize ();
Original file line number Diff line number Diff line change @@ -231,7 +231,8 @@ __attribute__((constructor(0))) void init_je_malloc_message()
231231#endif
232232
233233// / OpenSSL early initialization.
234- // / Must be ran after EnvironmentChecks.cpp, as OpenSSL uses SSSE3.
234+ // / See also EnvironmentChecks.cpp for other static initializers.
235+ // / Must be ran after EnvironmentChecks.cpp, as OpenSSL uses SSE4.1 and POPCNT.
235236__attribute__ ((constructor(202 ))) void init_ssl()
236237{
237238 DB::OpenSSLInitializer::initialize ();
Original file line number Diff line number Diff line change 993993 }
994994#endif
995995
996- // / When building openssl into clickhouse, clickhouse owns the configuration
997- // / Therefore, the clickhouse openssl configuration should be kept separate from
998- // / the OS. Default to the one in the standard config directory, unless overridden
999- // / by a key in the config.
1000- // / Note: this has to be done once at server initialization, because 'setenv' is not thread-safe.
1001- if (config ().has (" opensslconf" ))
1002- {
1003- std::string opensslconf_path = config ().getString (" opensslconf" );
1004- setenv (" OPENSSL_CONF" , opensslconf_path.c_str (), true ); // / NOLINT
1005- }
1006- else
1007- {
1008- const String config_path = config ().getString (" config-file" , " config.xml" );
1009- const auto config_dir = std::filesystem::path{config_path}.replace_filename (" openssl.conf" );
1010- setenv (" OPENSSL_CONF" , config_dir.c_str (), true ); // / NOLINT
1011- }
1012-
1013996 if (auto total_numa_memory = getNumaNodesTotalMemory (); total_numa_memory.has_value ())
1014997 {
1015998 LOG_INFO (
Original file line number Diff line number Diff line change @@ -172,6 +172,7 @@ struct Checker
172172 }
173173} checker
174174#ifndef OS_DARWIN
175+ // / See also main.cpp and keeper_main.cpp for other static initializers.
175176 __attribute__ ((init_priority(101 ))) // / Run before other static initializers.
176177#endif
177178;
You can’t perform that action at this time.
0 commit comments