mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
auto-merge
This commit is contained in:
@ -536,7 +536,8 @@ int Instance_map::load()
|
||||
*/
|
||||
if (my_search_option_files(Options::Main::config_file, &argc,
|
||||
(char ***) &argv, &args_used,
|
||||
process_option, (void*) this))
|
||||
process_option, (void*) this,
|
||||
Options::default_directories))
|
||||
log_info("Falling back to compiled-in defaults.");
|
||||
|
||||
return complete_initialization();
|
||||
|
@ -86,6 +86,7 @@ const char *Options::Main::bind_address= NULL; /* No default value */
|
||||
uint Options::Main::monitoring_interval= DEFAULT_MONITORING_INTERVAL;
|
||||
uint Options::Main::port_number= DEFAULT_PORT;
|
||||
my_bool Options::Main::mysqld_safe_compatible= FALSE;
|
||||
const char **Options::default_directories= NULL;
|
||||
|
||||
/* Options::User_management */
|
||||
|
||||
@ -439,7 +440,8 @@ int Options::load(int argc, char **argv)
|
||||
log_info("Loading config file '%s'...",
|
||||
(const char *) Main::config_file);
|
||||
|
||||
load_defaults(Main::config_file, default_groups, &argc, &saved_argv);
|
||||
my_load_defaults(Main::config_file, default_groups, &argc,
|
||||
&saved_argv, &default_directories);
|
||||
|
||||
if ((handle_options(&argc, &saved_argv, my_long_options, get_one_option)))
|
||||
return ERR_INVALID_USAGE;
|
||||
|
@ -91,6 +91,9 @@ struct Options
|
||||
#endif
|
||||
|
||||
public:
|
||||
/* Array of paths to be passed to my_search_option_files() later */
|
||||
static const char **default_directories;
|
||||
|
||||
static int load(int argc, char **argv);
|
||||
static void cleanup();
|
||||
|
||||
|
Reference in New Issue
Block a user