I don't understand why.
#endif
    try
    {
        if (getAvailableMemoryAmount() < (2l << 30))
            server->context()->addWarningMessage("Available memory at server startup is too low (2GiB).");
        if (!enoughSpaceInDirectory(data_path, 1ull << 30))
            server->context()->addWarningMessage("Available disk space at server startup is too low (1GiB).");
        if (!logs_path.empty())
        {
            if (!enoughSpaceInDirectory(fs::path(logs_path).parent_path(), 1ull << 30))
                server->context()->addWarningMessage("Available disk space at server startup is too low (1GiB).");
        }
    }
    catch (...)
    {
    }
}
int Server::main(const std::vector<std::string> & )
{
    Poco::Logger * log = &logger();
    UseSSL use_ssl;
    MainThreadStatus::getInstance();
    registerFunctions();
    registerAggregateFunctions();
    registerTableFunctions();
    registerStorages();
    registerDictionaries();
    registerDisks();
    registerFormats();
    registerRemoteFileMetadatas();