Skip to content

Commit c4abcb9

Browse files
committed
Lint
1 parent bd60e45 commit c4abcb9

File tree

4 files changed

+5
-19
lines changed

4 files changed

+5
-19
lines changed

programs/keeper/keeper_main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

programs/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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();

programs/server/Server.cpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -993,23 +993,6 @@ try
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(

src/Common/EnvironmentChecks.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
;

0 commit comments

Comments
 (0)