Fix build

This commit is contained in:
alesapin 2022-03-29 14:20:46 +02:00
parent ed2c461fe1
commit 4db85e2809

View File

@ -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));