Commit c83bff99 authored by unknown's avatar unknown

Bug#30821: setting --tc_heuristic_recover tries to set myisam_stats_method

Options to mysqld were not processed correctly because switch statement
was missing some "break"s. CS adds them.

No test case; would require .opt file and server restart. Manually tested.


sql/mysqld.cc:
  Add missing "break"s to switch() in mysqld to fix option processing.
parent 5a6b519a
...@@ -7165,6 +7165,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), ...@@ -7165,6 +7165,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
have_merge_db= SHOW_OPTION_YES; have_merge_db= SHOW_OPTION_YES;
else else
have_merge_db= SHOW_OPTION_DISABLED; have_merge_db= SHOW_OPTION_DISABLED;
break;
#ifdef HAVE_BERKELEY_DB #ifdef HAVE_BERKELEY_DB
case OPT_BDB_NOSYNC: case OPT_BDB_NOSYNC:
/* Deprecated option */ /* Deprecated option */
...@@ -7304,6 +7305,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)), ...@@ -7304,6 +7305,7 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
fprintf(stderr, "Unknown option to tc-heuristic-recover: %s\n",argument); fprintf(stderr, "Unknown option to tc-heuristic-recover: %s\n",argument);
exit(1); exit(1);
} }
break;
} }
case OPT_MYISAM_STATS_METHOD: case OPT_MYISAM_STATS_METHOD:
{ {
......
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