@@ -360,7 +360,7 @@ static bool max_long_data_size_used= false;
360360static bool volatile select_thread_in_use, signal_thread_in_use;
361361static volatile bool ready_to_exit;
362362static 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 ;
364364uint kill_cached_threads;
365365static uint wake_thread;
366366ulong max_used_connections;
@@ -386,7 +386,7 @@ static DYNAMIC_ARRAY all_options;
386386/* Global variables */
387387
388388bool 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 ;
390390my_bool disable_log_notes;
391391static my_bool opt_abort;
392392ulonglong 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