Commit b785857d authored by Sergei Golubchik's avatar Sergei Golubchik

s/--silent/--silent-startup/

parent b4fad1f1
...@@ -909,7 +909,7 @@ The following options may be given as the first argument: ...@@ -909,7 +909,7 @@ The following options may be given as the first argument:
--show-slave-auth-info --show-slave-auth-info
Show user and password in SHOW SLAVE HOSTS on this Show user and password in SHOW SLAVE HOSTS on this
master. master.
--silent Don't print [Note] to log during startup. --silent-startup Don't print [Note] to the error log during startup.
--skip-bdb Deprecated option; Exist only for compatibility with old --skip-bdb Deprecated option; Exist only for compatibility with old
my.cnf files my.cnf files
--skip-grant-tables Start without grant tables. This gives all users FULL --skip-grant-tables Start without grant tables. This gives all users FULL
...@@ -1387,7 +1387,7 @@ secure-auth TRUE ...@@ -1387,7 +1387,7 @@ secure-auth TRUE
secure-file-priv (No default value) secure-file-priv (No default value)
server-id 0 server-id 0
show-slave-auth-info FALSE show-slave-auth-info FALSE
silent FALSE silent-startup FALSE
skip-grant-tables TRUE skip-grant-tables TRUE
skip-name-resolve FALSE skip-name-resolve FALSE
skip-networking FALSE skip-networking FALSE
......
...@@ -360,7 +360,7 @@ static bool max_long_data_size_used= false; ...@@ -360,7 +360,7 @@ static bool max_long_data_size_used= false;
static bool volatile select_thread_in_use, signal_thread_in_use; static bool volatile select_thread_in_use, signal_thread_in_use;
static volatile bool ready_to_exit; static volatile bool ready_to_exit;
static my_bool opt_debugging= 0, opt_external_locking= 0, opt_console= 0; static my_bool opt_debugging= 0, opt_external_locking= 0, opt_console= 0;
static my_bool opt_short_log_format= 0; static my_bool opt_short_log_format= 0, opt_silent_startup= 0;
uint kill_cached_threads; uint kill_cached_threads;
static uint wake_thread; static uint wake_thread;
ulong max_used_connections; ulong max_used_connections;
...@@ -386,7 +386,7 @@ static DYNAMIC_ARRAY all_options; ...@@ -386,7 +386,7 @@ static DYNAMIC_ARRAY all_options;
/* Global variables */ /* Global variables */
bool opt_bin_log, opt_bin_log_used=0, opt_ignore_builtin_innodb= 0; bool opt_bin_log, opt_bin_log_used=0, opt_ignore_builtin_innodb= 0;
my_bool opt_log, debug_assert_if_crashed_table= 0, opt_help= 0, opt_silent= 0; my_bool opt_log, debug_assert_if_crashed_table= 0, opt_help= 0;
my_bool disable_log_notes; my_bool disable_log_notes;
static my_bool opt_abort; static my_bool opt_abort;
ulonglong log_output_options; ulonglong log_output_options;
...@@ -7495,8 +7495,8 @@ struct my_option my_long_options[]= ...@@ -7495,8 +7495,8 @@ struct my_option my_long_options[]=
"Show user and password in SHOW SLAVE HOSTS on this master.", "Show user and password in SHOW SLAVE HOSTS on this master.",
&opt_show_slave_auth_info, &opt_show_slave_auth_info, 0, &opt_show_slave_auth_info, &opt_show_slave_auth_info, 0,
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"silent", OPT_SILENT, "Don't print [Note] to log during startup.", {"silent-startup", OPT_SILENT, "Don't print [Note] to the error log during startup.",
&opt_silent, &opt_silent, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0}, &opt_silent_startup, &opt_silent_startup, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"skip-bdb", OPT_DEPRECATED_OPTION, {"skip-bdb", OPT_DEPRECATED_OPTION,
"Deprecated option; Exist only for compatibility with old my.cnf files", "Deprecated option; Exist only for compatibility with old my.cnf files",
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0}, 0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
...@@ -9171,9 +9171,6 @@ mysqld_get_one_option(int optid, const struct my_option *opt, char *argument) ...@@ -9171,9 +9171,6 @@ mysqld_get_one_option(int optid, const struct my_option *opt, char *argument)
} }
} }
break; break;
case OPT_SILENT:
disable_log_notes= opt_silent;
break;
case OPT_PLUGIN_LOAD: case OPT_PLUGIN_LOAD:
free_list(opt_plugin_load_list_ptr); free_list(opt_plugin_load_list_ptr);
/* fall through */ /* fall through */
...@@ -9387,6 +9384,8 @@ static int get_options(int *argc_ptr, char ***argv_ptr) ...@@ -9387,6 +9384,8 @@ static int get_options(int *argc_ptr, char ***argv_ptr)
(*argc_ptr)++; (*argc_ptr)++;
(*argv_ptr)--; (*argv_ptr)--;
disable_log_notes= opt_silent_startup;
/* /*
Options have been parsed. Now some of them need additional special Options have been parsed. Now some of them need additional special
handling, like custom value checking, checking of incompatibilites handling, like custom value checking, checking of incompatibilites
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment