mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 08:40:50 +00:00
Fix build
This commit is contained in:
parent
ed2c461fe1
commit
4db85e2809
@ -507,18 +507,10 @@ void checkForUsersNotInMainConfig(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[[noreturn]] void forceShutdown()
|
|
||||||
{
|
|
||||||
#if defined(THREAD_SANITIZER) && defined(OS_LINUX)
|
|
||||||
/// Thread sanitizer tries to do something on exit that we don't need if we want to exit immediately,
|
|
||||||
/// while connection handling threads are still run.
|
|
||||||
(void)syscall(SYS_exit_group, 0);
|
|
||||||
__builtin_unreachable();
|
|
||||||
#else
|
|
||||||
_exit(0);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Unused in other builds
|
||||||
|
#if defined(OS_LINUX)
|
||||||
static String readString(const String & path)
|
static String readString(const String & path)
|
||||||
{
|
{
|
||||||
ReadBufferFromFile in(path);
|
ReadBufferFromFile in(path);
|
||||||
@ -535,6 +527,8 @@ static int readNumber(const String & path)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
static void sanityChecks(Server * server)
|
static void sanityChecks(Server * server)
|
||||||
{
|
{
|
||||||
std::string data_path = getCanonicalPath(server->config().getString("path", DBMS_DEFAULT_PATH));
|
std::string data_path = getCanonicalPath(server->config().getString("path", DBMS_DEFAULT_PATH));
|
||||||
|
Loading…
Reference in New Issue
Block a user