MySQL 8.4.2
Source Code Documentation
|
#include "router_app.h"
#include <algorithm>
#include <cerrno>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <initializer_list>
#include <memory>
#include <sstream>
#include <stdexcept>
#include <string>
#include <system_error>
#include <vector>
#include "common.h"
#include "config_generator.h"
#include "dim.h"
#include "harness_assert.h"
#include "hostname_validator.h"
#include "keyring/keyring_manager.h"
#include "mysql/harness/arg_handler.h"
#include "mysql/harness/config_option.h"
#include "mysql/harness/config_parser.h"
#include "mysql/harness/dynamic_config.h"
#include "mysql/harness/dynamic_state.h"
#include "mysql/harness/filesystem.h"
#include "mysql/harness/log_reopen_component.h"
#include "mysql/harness/logging/logger_plugin.h"
#include "mysql/harness/logging/logging.h"
#include "mysql/harness/logging/registry.h"
#include "mysql/harness/process_state_component.h"
#include "mysql/harness/section_config_exposer.h"
#include "mysql/harness/signal_handler.h"
#include "mysql/harness/supported_config_options.h"
#include "mysql/harness/utility/string.h"
#include "mysql/harness/vt100.h"
#include "mysql_router_thread.h"
#include "mysqlrouter/config_files.h"
#include "mysqlrouter/connection_pool.h"
#include "mysqlrouter/default_paths.h"
#include "mysqlrouter/mysql_session.h"
#include "mysqlrouter/routing.h"
#include "mysqlrouter/supported_router_options.h"
#include "mysqlrouter/utils.h"
#include "print_version.h"
#include "router_config.h"
#include "scope_guard.h"
#include "welcome_copyright_notice.h"
#include <fcntl.h>
#include <unistd.h>
#include <csignal>
Classes | |
class | anonymous_namespace{router_app.cc}::RouterAppConfigExposer |
Namespaces | |
namespace | anonymous_namespace{router_app.cc} |
Macros | |
#define | MYSQL_ROUTER_LOG_DOMAIN ::mysql_harness::logging::kMainLogger |
Functions | |
void | anonymous_namespace{router_app.cc}::check_and_add_conf (std::vector< std::string > &configs, const std::string &value) |
void | anonymous_namespace{router_app.cc}::check_config_overwrites (const CmdArgHandler::ConfigOverwrites &overwrites, bool is_bootstrap) |
std::string | anonymous_namespace{router_app.cc}::get_plugin_folder_overwrite (const CmdArgHandler::ConfigOverwrites &overwrites) |
static std::string | make_upper (std::string s) |
upper-case a string. More... | |
static void | assert_one_of_ci (const std::string &key, const std::string &value, std::initializer_list< const char * > allowed_values) |
assert 'value' is one of the allowed values. More... | |
static void | markup_configfile (std::ostream &os, const std::string &filename) |
static std::pair< bool, CmdOption > | cmd_option_acceptor (const std::string §ion, const std::set< std::string > &accepted_opts, const CmdOption &opt) |
filter CmdOption by section. More... | |
void | expose_router_configuration (const bool initial, const mysql_harness::ConfigSection §ion) |
Expose the configured application-level options (the ones from [DEFAULT] section that are not specific to any particular plugin and are relevant from the Cluster metadata perspective) More... | |
Variables | |
const char | dir_sep = '/' |
static const char * | kDefaultKeyringFileName = "keyring" |
static const char | kProgramName [] = "mysqlrouter" |
#define MYSQL_ROUTER_LOG_DOMAIN ::mysql_harness::logging::kMainLogger |
|
static |
assert 'value' is one of the allowed values.
value is compared case-insensitive
key | key name to report in case of failure |
value | value to check |
allowed_values | allowed values. |
std::invalid_argument | if value is not part of allowed_values. |
|
static |
filter CmdOption by section.
makes options "required" if needed for the usage output
void expose_router_configuration | ( | const bool | initial, |
const mysql_harness::ConfigSection & | section | ||
) |
Expose the configured application-level options (the ones from [DEFAULT] section that are not specific to any particular plugin and are relevant from the Cluster metadata perspective)
|
static |
upper-case a string.
|
static |
const char dir_sep = '/' |
|
static |
|
static |