summaryrefslogtreecommitdiff
path: root/netware/mysqld_safe.c
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2010-03-03 22:22:02 +0300
committerAlexander Nozdrin <alik@sun.com>2010-03-03 22:22:02 +0300
commit0b1d317b232db27d04afc0f51eab4a019108fda4 (patch)
tree80f890fb98b57ee5ce2c2515d1d6d132809cddc7 /netware/mysqld_safe.c
parent50608a0b4b2ff67bf368ccb92797f43b4e231292 (diff)
downloadmariadb-git-0b1d317b232db27d04afc0f51eab4a019108fda4.tar.gz
A follow-up on WL#5154 and WL#5182: remove forgotten options.
Diffstat (limited to 'netware/mysqld_safe.c')
-rw-r--r--netware/mysqld_safe.c33
1 files changed, 4 insertions, 29 deletions
diff --git a/netware/mysqld_safe.c b/netware/mysqld_safe.c
index 6ed04c9ff0d..2a4268d63ef 100644
--- a/netware/mysqld_safe.c
+++ b/netware/mysqld_safe.c
@@ -68,7 +68,6 @@ void check_data_vol();
void check_setup();
void check_tables();
void mysql_start(int, char *[]);
-void parse_setvar(char *arg);
/******************************************************************************
@@ -330,8 +329,7 @@ void parse_args(int argc, char *argv[])
OPT_ERR_LOG,
OPT_SAFE_LOG,
OPT_MYSQLD,
- OPT_HELP,
- OPT_SETVAR
+ OPT_HELP
};
static struct option options[]=
@@ -347,7 +345,6 @@ void parse_args(int argc, char *argv[])
{"safe-log", required_argument, 0, OPT_SAFE_LOG},
{"mysqld", required_argument, 0, OPT_MYSQLD},
{"help", no_argument, 0, OPT_HELP},
- {"set-variable", required_argument, 0, OPT_SETVAR},
{0, 0, 0, 0}
};
@@ -395,10 +392,6 @@ void parse_args(int argc, char *argv[])
strcpy(mysqld, optarg);
break;
- case OPT_SETVAR:
- parse_setvar(optarg);
- break;
-
case OPT_HELP:
usage();
break;
@@ -410,21 +403,6 @@ void parse_args(int argc, char *argv[])
}
}
-/*
- parse_setvar(char *arg)
- Pasrsing for port just to display the port num on the mysqld_safe screen
-*/
-void parse_setvar(char *arg)
-{
- char *pos;
-
- if ((pos= strindex(arg, "port")))
- {
- for (; *pos && *pos != '='; pos++);
- if (*pos)
- strcpy(port, pos + 1);
- }
-}
/******************************************************************************
@@ -589,10 +567,8 @@ void check_tables()
add_arg(&al, "--force");
add_arg(&al, "--fast");
add_arg(&al, "--medium-check");
- add_arg(&al, "-O");
- add_arg(&al, "key_buffer=64M");
- add_arg(&al, "-O");
- add_arg(&al, "sort_buffer=64M");
+ add_arg(&al, "--key_buffer=64M");
+ add_arg(&al, "--sort_buffer=64M");
add_arg(&al, table);
spawn(mycheck, &al, TRUE, NULL, NULL, NULL);
@@ -611,8 +587,7 @@ void check_tables()
add_arg(&al, mycheck);
add_arg(&al, "--silent");
add_arg(&al, "--force");
- add_arg(&al, "-O");
- add_arg(&al, "sort_buffer=64M");
+ add_arg(&al, "--sort_buffer=64M");
add_arg(&al, table);
spawn(mycheck, &al, TRUE, NULL, NULL, NULL);