Skip to content

Commit b785857

Browse files
committed
s/--silent/--silent-startup/
1 parent b4fad1f commit b785857

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

mysql-test/r/mysqld--help.result

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,7 +909,7 @@ The following options may be given as the first argument:
909909
--show-slave-auth-info
910910
Show user and password in SHOW SLAVE HOSTS on this
911911
master.
912-
--silent Don't print [Note] to log during startup.
912+
--silent-startup Don't print [Note] to the error log during startup.
913913
--skip-bdb Deprecated option; Exist only for compatibility with old
914914
my.cnf files
915915
--skip-grant-tables Start without grant tables. This gives all users FULL
@@ -1387,7 +1387,7 @@ secure-auth TRUE
13871387
secure-file-priv (No default value)
13881388
server-id 0
13891389
show-slave-auth-info FALSE
1390-
silent FALSE
1390+
silent-startup FALSE
13911391
skip-grant-tables TRUE
13921392
skip-name-resolve FALSE
13931393
skip-networking FALSE

sql/mysqld.cc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ static bool max_long_data_size_used= false;
360360
static bool volatile select_thread_in_use, signal_thread_in_use;
361361
static volatile bool ready_to_exit;
362362
static my_bool opt_debugging= 0, opt_external_locking= 0, opt_console= 0;
363-
static my_bool opt_short_log_format= 0;
363+
static my_bool opt_short_log_format= 0, opt_silent_startup= 0;
364364
uint kill_cached_threads;
365365
static uint wake_thread;
366366
ulong max_used_connections;
@@ -386,7 +386,7 @@ static DYNAMIC_ARRAY all_options;
386386
/* Global variables */
387387

388388
bool opt_bin_log, opt_bin_log_used=0, opt_ignore_builtin_innodb= 0;
389-
my_bool opt_log, debug_assert_if_crashed_table= 0, opt_help= 0, opt_silent= 0;
389+
my_bool opt_log, debug_assert_if_crashed_table= 0, opt_help= 0;
390390
my_bool disable_log_notes;
391391
static my_bool opt_abort;
392392
ulonglong log_output_options;
@@ -7495,8 +7495,8 @@ struct my_option my_long_options[]=
74957495
"Show user and password in SHOW SLAVE HOSTS on this master.",
74967496
&opt_show_slave_auth_info, &opt_show_slave_auth_info, 0,
74977497
GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
7498-
{"silent", OPT_SILENT, "Don't print [Note] to log during startup.",
7499-
&opt_silent, &opt_silent, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
7498+
{"silent-startup", OPT_SILENT, "Don't print [Note] to the error log during startup.",
7499+
&opt_silent_startup, &opt_silent_startup, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
75007500
{"skip-bdb", OPT_DEPRECATED_OPTION,
75017501
"Deprecated option; Exist only for compatibility with old my.cnf files",
75027502
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)
91719171
}
91729172
}
91739173
break;
9174-
case OPT_SILENT:
9175-
disable_log_notes= opt_silent;
9176-
break;
91779174
case OPT_PLUGIN_LOAD:
91789175
free_list(opt_plugin_load_list_ptr);
91799176
/* fall through */
@@ -9387,6 +9384,8 @@ static int get_options(int *argc_ptr, char ***argv_ptr)
93879384
(*argc_ptr)++;
93889385
(*argv_ptr)--;
93899386

9387+
disable_log_notes= opt_silent_startup;
9388+
93909389
/*
93919390
Options have been parsed. Now some of them need additional special
93929391
handling, like custom value checking, checking of incompatibilites

0 commit comments

Comments
 (0)