Skip to content

Commit

Permalink
s/--silent/--silent-startup/
Browse files Browse the repository at this point in the history
  • Loading branch information
vuvova committed Oct 11, 2015
1 parent b4fad1f commit b785857
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
4 changes: 2 additions & 2 deletions mysql-test/r/mysqld--help.result
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ The following options may be given as the first argument:
--show-slave-auth-info
Show user and password in SHOW SLAVE HOSTS on this
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
my.cnf files
--skip-grant-tables Start without grant tables. This gives all users FULL
Expand Down Expand Up @@ -1387,7 +1387,7 @@ secure-auth TRUE
secure-file-priv (No default value)
server-id 0
show-slave-auth-info FALSE
silent FALSE
silent-startup FALSE
skip-grant-tables TRUE
skip-name-resolve FALSE
skip-networking FALSE
Expand Down
13 changes: 6 additions & 7 deletions sql/mysqld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ static bool max_long_data_size_used= false;
static bool volatile select_thread_in_use, signal_thread_in_use;
static volatile bool ready_to_exit;
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;
static uint wake_thread;
ulong max_used_connections;
Expand All @@ -386,7 +386,7 @@ static DYNAMIC_ARRAY all_options;
/* Global variables */

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;
static my_bool opt_abort;
ulonglong log_output_options;
Expand Down Expand Up @@ -7495,8 +7495,8 @@ struct my_option my_long_options[]=
"Show user and password in SHOW SLAVE HOSTS on this master.",
&opt_show_slave_auth_info, &opt_show_slave_auth_info, 0,
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"silent", OPT_SILENT, "Don't print [Note] to log during startup.",
&opt_silent, &opt_silent, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"silent-startup", OPT_SILENT, "Don't print [Note] to the error log during startup.",
&opt_silent_startup, &opt_silent_startup, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
{"skip-bdb", OPT_DEPRECATED_OPTION,
"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},
Expand Down Expand Up @@ -9171,9 +9171,6 @@ mysqld_get_one_option(int optid, const struct my_option *opt, char *argument)
}
}
break;
case OPT_SILENT:
disable_log_notes= opt_silent;
break;
case OPT_PLUGIN_LOAD:
free_list(opt_plugin_load_list_ptr);
/* fall through */
Expand Down Expand Up @@ -9387,6 +9384,8 @@ static int get_options(int *argc_ptr, char ***argv_ptr)
(*argc_ptr)++;
(*argv_ptr)--;

disable_log_notes= opt_silent_startup;

/*
Options have been parsed. Now some of them need additional special
handling, like custom value checking, checking of incompatibilites
Expand Down

0 comments on commit b785857

Please sign in to comment.