mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
Merge deer.(none):/home/hf/work/mysql-4.1.9645
into deer.(none):/home/hf/work/mysql-4.1.clean
This commit is contained in:
commit
56b8fc52cf
63 changed files with 602 additions and 4607 deletions
|
|
@ -155,7 +155,7 @@ enum options_mc {
|
|||
OPT_READ_BUFFER_SIZE, OPT_WRITE_BUFFER_SIZE, OPT_SORT_BUFFER_SIZE,
|
||||
OPT_SORT_KEY_BLOCKS, OPT_DECODE_BITS, OPT_FT_MIN_WORD_LEN,
|
||||
OPT_FT_MAX_WORD_LEN, OPT_FT_STOPWORD_FILE,
|
||||
OPT_MAX_RECORD_LENGTH
|
||||
OPT_MAX_RECORD_LENGTH, OPT_AUTO_CLOSE
|
||||
};
|
||||
|
||||
static struct my_option my_long_options[] =
|
||||
|
|
@ -163,6 +163,10 @@ static struct my_option my_long_options[] =
|
|||
{"analyze", 'a',
|
||||
"Analyze distribution of keys. Will make some joins in MySQL faster. You can check the calculated distribution.",
|
||||
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#ifdef __NETWARE__
|
||||
{"auto-close", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#endif
|
||||
{"block-search", 'b',
|
||||
"No help available.",
|
||||
0, 0, 0, GET_ULONG, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
|
||||
|
|
@ -469,6 +473,11 @@ get_one_option(int optid,
|
|||
char *argument)
|
||||
{
|
||||
switch (optid) {
|
||||
#ifdef __NETWARE__
|
||||
case OPT_AUTO_CLOSE:
|
||||
setscreenmode(SCR_AUTOCLOSE_ON_EXIT);
|
||||
break;
|
||||
#endif
|
||||
case 'a':
|
||||
if (argument == disabled_my_option)
|
||||
check_param.testflag&= ~T_STATISTICS;
|
||||
|
|
|
|||
|
|
@ -234,10 +234,14 @@ int main(int argc, char **argv)
|
|||
#endif
|
||||
}
|
||||
|
||||
enum options_mp {OPT_CHARSETS_DIR_MP=256};
|
||||
enum options_mp {OPT_CHARSETS_DIR_MP=256, OPT_AUTO_CLOSE};
|
||||
|
||||
static struct my_option my_long_options[] =
|
||||
{
|
||||
#ifdef __NETWARE__
|
||||
{"auto-close", OPT_AUTO_CLOSE, "Auto close the screen on exit for Netware.",
|
||||
0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
#endif
|
||||
{"backup", 'b', "Make a backup of the table as table_name.OLD.",
|
||||
(gptr*) &backup, (gptr*) &backup, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
|
||||
{"character-sets-dir", OPT_CHARSETS_DIR_MP,
|
||||
|
|
@ -305,6 +309,11 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
|
|||
uint length;
|
||||
|
||||
switch(optid) {
|
||||
#ifdef __NETWARE__
|
||||
case OPT_AUTO_CLOSE:
|
||||
setscreenmode(SCR_AUTOCLOSE_ON_EXIT);
|
||||
break;
|
||||
#endif
|
||||
case 'f':
|
||||
force_pack= 1;
|
||||
tmpfile_createflag= O_RDWR | O_TRUNC;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue