Commit a3983787 authored by Alexey Botchkov's avatar Alexey Botchkov

Bug#30025 Mysqld prints out warnings/errors being run with --no-defaults --help

        now do no initializations for the --help.
        Do it for --verbose --help though.

per-file comments:
  sql/mysqld.cc
Bug#30025 Mysqld prints out warnings/errors being run with --no-defaults --help
        quit with the help message at once as --help was given
parent 6adb077e
...@@ -3202,6 +3202,11 @@ static int init_common_variables() ...@@ -3202,6 +3202,11 @@ static int init_common_variables()
return 1; return 1;
set_server_version(); set_server_version();
#ifndef EMBEDDED_LIBRARY
if (opt_help && !opt_verbose)
unireg_abort(0);
#endif /*!EMBEDDED_LIBRARY*/
DBUG_PRINT("info",("%s Ver %s for %s on %s\n",my_progname, DBUG_PRINT("info",("%s Ver %s for %s on %s\n",my_progname,
server_version, SYSTEM_TYPE,MACHINE_TYPE)); server_version, SYSTEM_TYPE,MACHINE_TYPE));
......
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