Skip to content

Commit 6145e16

Browse files
author
Sergei Golubchik
committed
remove unused OPT_xxx values from mysqld.cc and the related dead code
1 parent 0661c73 commit 6145e16

File tree

2 files changed

+1
-21
lines changed

2 files changed

+1
-21
lines changed

sql/mysqld.cc

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6727,7 +6727,7 @@ struct my_option my_long_options[]=
67276727
{"autocommit", 0, "Set default value for autocommit (0 or 1)",
67286728
&opt_autocommit, &opt_autocommit, 0,
67296729
GET_BOOL, OPT_ARG, 1, 0, 0, 0, 0, NULL},
6730-
{"bind-address", OPT_BIND_ADDRESS, "IP address to bind to.",
6730+
{"bind-address", 0, "IP address to bind to.",
67316731
&my_bind_addr_str, &my_bind_addr_str, 0, GET_STR,
67326732
REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
67336733
{"binlog-do-db", OPT_BINLOG_DO_DB,
@@ -8561,18 +8561,6 @@ mysqld_get_one_option(int optid,
85618561
}
85628562
break;
85638563
#endif /* defined(ENABLED_DEBUG_SYNC) */
8564-
case OPT_ENGINE_CONDITION_PUSHDOWN:
8565-
/*
8566-
The last of --engine-condition-pushdown and --optimizer_switch on
8567-
command line wins (see get_options().
8568-
*/
8569-
if (global_system_variables.engine_condition_pushdown)
8570-
global_system_variables.optimizer_switch|=
8571-
OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN;
8572-
else
8573-
global_system_variables.optimizer_switch&=
8574-
~OPTIMIZER_SWITCH_ENGINE_CONDITION_PUSHDOWN;
8575-
break;
85768564
case OPT_LOG_ERROR:
85778565
/*
85788566
"No --log-error" == "write errors to stderr",

sql/mysqld.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -550,17 +550,14 @@ extern MYSQL_PLUGIN_IMPORT pthread_key(THD*, THR_THD);
550550
enum options_mysqld
551551
{
552552
OPT_to_set_the_start_number=256,
553-
OPT_BIND_ADDRESS,
554553
OPT_BINLOG_DO_DB,
555554
OPT_BINLOG_FORMAT,
556555
OPT_BINLOG_IGNORE_DB,
557556
OPT_BIN_LOG,
558557
OPT_BOOTSTRAP,
559558
OPT_CONSOLE,
560559
OPT_DEBUG_SYNC_TIMEOUT,
561-
OPT_DELAY_KEY_WRITE_ALL,
562560
OPT_DEPRECATED_OPTION,
563-
OPT_ENGINE_CONDITION_PUSHDOWN,
564561
OPT_IGNORE_DB_DIRECTORY,
565562
OPT_ISAM_LOG,
566563
OPT_KEY_BUFFER_SIZE,
@@ -576,7 +573,6 @@ enum options_mysqld
576573
OPT_PLUGIN_LOAD,
577574
OPT_PLUGIN_LOAD_ADD,
578575
OPT_PFS_INSTRUMENT,
579-
OPT_POOL_OF_THREADS,
580576
OPT_REPLICATE_DO_DB,
581577
OPT_REPLICATE_DO_TABLE,
582578
OPT_REPLICATE_IGNORE_DB,
@@ -587,18 +583,14 @@ enum options_mysqld
587583
OPT_SAFE,
588584
OPT_SERVER_ID,
589585
OPT_SKIP_HOST_CACHE,
590-
OPT_SKIP_LOCK,
591586
OPT_SKIP_RESOLVE,
592-
OPT_SKIP_STACK_TRACE,
593-
OPT_SKIP_SYMLINKS,
594587
OPT_SSL_CA,
595588
OPT_SSL_CAPATH,
596589
OPT_SSL_CERT,
597590
OPT_SSL_CIPHER,
598591
OPT_SSL_CRL,
599592
OPT_SSL_CRLPATH,
600593
OPT_SSL_KEY,
601-
OPT_UPDATE_LOG,
602594
OPT_WANT_CORE,
603595
OPT_MYSQL_COMPATIBILITY,
604596
OPT_MYSQL_TO_BE_IMPLEMENTED,

0 commit comments

Comments
 (0)