Commit 6145e167 authored by Sergei Golubchik's avatar Sergei Golubchik

remove unused OPT_xxx values from mysqld.cc and the related dead code

parent 0661c732
...@@ -6727,7 +6727,7 @@ struct my_option my_long_options[]= ...@@ -6727,7 +6727,7 @@ struct my_option my_long_options[]=
{"autocommit", 0, "Set default value for autocommit (0 or 1)", {"autocommit", 0, "Set default value for autocommit (0 or 1)",
&opt_autocommit, &opt_autocommit, 0, &opt_autocommit, &opt_autocommit, 0,
GET_BOOL, OPT_ARG, 1, 0, 0, 0, 0, NULL}, GET_BOOL, OPT_ARG, 1, 0, 0, 0, 0, NULL},
{"bind-address", OPT_BIND_ADDRESS, "IP address to bind to.", {"bind-address", 0, "IP address to bind to.",
&my_bind_addr_str, &my_bind_addr_str, 0, GET_STR, &my_bind_addr_str, &my_bind_addr_str, 0, GET_STR,
REQUIRED_ARG, 0, 0, 0, 0, 0, 0}, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"binlog-do-db", OPT_BINLOG_DO_DB, {"binlog-do-db", OPT_BINLOG_DO_DB,
...@@ -8561,18 +8561,6 @@ mysqld_get_one_option(int optid, ...@@ -8561,18 +8561,6 @@ mysqld_get_one_option(int optid,
} }
break; break;
#endif /* defined(ENABLED_DEBUG_SYNC) */ #endif /* defined(ENABLED_DEBUG_SYNC) */
case OPT_ENGINE_CONDITION_PUSHDOWN:
/*
The last of --engine-condition-pushdown and --optimizer_switch on
command line wins (see get_options().
*/
if (global_system_variables.engine_condition_pushdown)
global_system_variables.optimizer_switch|=
OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN;
else
global_system_variables.optimizer_switch&=
~OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN;
break;
case OPT_LOG_ERROR: case OPT_LOG_ERROR:
/* /*
"No --log-error" == "write errors to stderr", "No --log-error" == "write errors to stderr",
......
...@@ -550,7 +550,6 @@ extern MYSQL_PLUGIN_IMPORT pthread_key(THD*, THR_THD); ...@@ -550,7 +550,6 @@ extern MYSQL_PLUGIN_IMPORT pthread_key(THD*, THR_THD);
enum options_mysqld enum options_mysqld
{ {
OPT_to_set_the_start_number=256, OPT_to_set_the_start_number=256,
OPT_BIND_ADDRESS,
OPT_BINLOG_DO_DB, OPT_BINLOG_DO_DB,
OPT_BINLOG_FORMAT, OPT_BINLOG_FORMAT,
OPT_BINLOG_IGNORE_DB, OPT_BINLOG_IGNORE_DB,
...@@ -558,9 +557,7 @@ enum options_mysqld ...@@ -558,9 +557,7 @@ enum options_mysqld
OPT_BOOTSTRAP, OPT_BOOTSTRAP,
OPT_CONSOLE, OPT_CONSOLE,
OPT_DEBUG_SYNC_TIMEOUT, OPT_DEBUG_SYNC_TIMEOUT,
OPT_DELAY_KEY_WRITE_ALL,
OPT_DEPRECATED_OPTION, OPT_DEPRECATED_OPTION,
OPT_ENGINE_CONDITION_PUSHDOWN,
OPT_IGNORE_DB_DIRECTORY, OPT_IGNORE_DB_DIRECTORY,
OPT_ISAM_LOG, OPT_ISAM_LOG,
OPT_KEY_BUFFER_SIZE, OPT_KEY_BUFFER_SIZE,
...@@ -576,7 +573,6 @@ enum options_mysqld ...@@ -576,7 +573,6 @@ enum options_mysqld
OPT_PLUGIN_LOAD, OPT_PLUGIN_LOAD,
OPT_PLUGIN_LOAD_ADD, OPT_PLUGIN_LOAD_ADD,
OPT_PFS_INSTRUMENT, OPT_PFS_INSTRUMENT,
OPT_POOL_OF_THREADS,
OPT_REPLICATE_DO_DB, OPT_REPLICATE_DO_DB,
OPT_REPLICATE_DO_TABLE, OPT_REPLICATE_DO_TABLE,
OPT_REPLICATE_IGNORE_DB, OPT_REPLICATE_IGNORE_DB,
...@@ -587,10 +583,7 @@ enum options_mysqld ...@@ -587,10 +583,7 @@ enum options_mysqld
OPT_SAFE, OPT_SAFE,
OPT_SERVER_ID, OPT_SERVER_ID,
OPT_SKIP_HOST_CACHE, OPT_SKIP_HOST_CACHE,
OPT_SKIP_LOCK,
OPT_SKIP_RESOLVE, OPT_SKIP_RESOLVE,
OPT_SKIP_STACK_TRACE,
OPT_SKIP_SYMLINKS,
OPT_SSL_CA, OPT_SSL_CA,
OPT_SSL_CAPATH, OPT_SSL_CAPATH,
OPT_SSL_CERT, OPT_SSL_CERT,
...@@ -598,7 +591,6 @@ enum options_mysqld ...@@ -598,7 +591,6 @@ enum options_mysqld
OPT_SSL_CRL, OPT_SSL_CRL,
OPT_SSL_CRLPATH, OPT_SSL_CRLPATH,
OPT_SSL_KEY, OPT_SSL_KEY,
OPT_UPDATE_LOG,
OPT_WANT_CORE, OPT_WANT_CORE,
OPT_MYSQL_COMPATIBILITY, OPT_MYSQL_COMPATIBILITY,
OPT_MYSQL_TO_BE_IMPLEMENTED, OPT_MYSQL_TO_BE_IMPLEMENTED,
......
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