378
378
char *default_tz_name;
379
379
char log_error_file[FN_REFLEN], glob_hostname[FN_REFLEN];
380
380
char drizzle_real_data_home[FN_REFLEN],
381
language[FN_REFLEN], reg_ext[FN_EXTLEN], mysql_charsets_dir[FN_REFLEN],
381
language[FN_REFLEN], reg_ext[FN_EXTLEN], drizzle_charsets_dir[FN_REFLEN],
382
382
*opt_init_file, *opt_tc_log_file;
383
383
char drizzle_unpacked_real_data_home[FN_REFLEN];
384
384
uint32_t reg_ext_length;
388
388
const char *opt_date_time_formats[3];
390
390
uint32_t drizzle_data_home_len;
391
char mysql_data_home_buff[2], *drizzle_data_home=drizzle_real_data_home;
391
char drizzle_data_home_buff[2], *drizzle_data_home=drizzle_real_data_home;
392
392
char server_version[SERVER_VERSION_LENGTH];
393
char *opt_mysql_tmpdir;
393
char *opt_drizzle_tmpdir;
394
394
const char *myisam_recover_options_str="OFF";
395
395
const char *myisam_stats_method_str="nulls_unequal";
420
420
struct system_variables max_system_variables;
421
421
struct system_status_var global_status_var;
423
MY_TMPDIR mysql_tmpdir_list;
423
MY_TMPDIR drizzle_tmpdir_list;
424
424
MY_BITMAP temp_pool;
426
426
const CHARSET_INFO *system_charset_info, *files_charset_info ;
846
846
free_defaults(defaults_argv);
847
847
free(sys_init_connect.value);
848
848
free(sys_init_slave.value);
849
free_tmpdir(&mysql_tmpdir_list);
849
free_tmpdir(&drizzle_tmpdir_list);
850
850
free(slave_load_tmpdir);
851
851
if (opt_bin_logname)
852
852
free(opt_bin_logname);
2493
2493
check_data_home(drizzle_real_data_home);
2494
2494
if (my_setwd(drizzle_real_data_home,MYF(MY_WME)) && !opt_help)
2495
2495
unireg_abort(1); /* purecov: inspected */
2496
drizzle_data_home= mysql_data_home_buff;
2496
drizzle_data_home= drizzle_data_home_buff;
2497
2497
drizzle_data_home[0]=FN_CURLIB; // all paths are relative from here
2498
2498
drizzle_data_home[1]=0;
2499
2499
drizzle_data_home_len= 2;
3342
3342
N_("Path for temporary files. Several paths may be specified, separated "
3343
3343
"by a colon (:)"
3344
3344
", in this case they are used in a round-robin fashion."),
3345
(char**) &opt_mysql_tmpdir,
3346
(char**) &opt_mysql_tmpdir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3345
(char**) &opt_drizzle_tmpdir,
3346
(char**) &opt_drizzle_tmpdir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
3347
3347
{"transaction-isolation", OPT_TX_ISOLATION,
3348
3348
N_("Default transaction isolation level."),
3349
3349
0, 0, 0, GET_STR, REQUIRED_ARG, 0,
4106
4106
binlog_cache_use= binlog_cache_disk_use= 0;
4107
4107
max_used_connections= slow_launch_threads = 0;
4108
4108
drizzled_user= drizzled_chroot= opt_init_file= opt_bin_logname = 0;
4109
opt_mysql_tmpdir= my_bind_addr_str= NULL;
4110
memset(&mysql_tmpdir_list, 0, sizeof(mysql_tmpdir_list));
4109
opt_drizzle_tmpdir= my_bind_addr_str= NULL;
4110
memset(&drizzle_tmpdir_list, 0, sizeof(drizzle_tmpdir_list));
4111
4111
memset(&global_status_var, 0, sizeof(global_status_var));
4112
4112
key_map_full.set_all();
4152
4152
strmake(language, LANGUAGE, sizeof(language)-1);
4153
4153
strmake(drizzle_real_data_home, get_relative_path(DATADIR),
4154
4154
sizeof(drizzle_real_data_home)-1);
4155
mysql_data_home_buff[0]=FN_CURLIB; // all paths are relative from here
4156
mysql_data_home_buff[1]=0;
4155
drizzle_data_home_buff[0]=FN_CURLIB; // all paths are relative from here
4156
drizzle_data_home_buff[1]=0;
4157
4157
drizzle_data_home_len= 2;
4159
4159
/* Replication parameters */
4430
4430
case OPT_CHARSETS_DIR:
4431
strmake(mysql_charsets_dir, argument, sizeof(mysql_charsets_dir)-1);
4432
charsets_dir = mysql_charsets_dir;
4431
strmake(drizzle_charsets_dir, argument, sizeof(drizzle_charsets_dir)-1);
4432
charsets_dir = drizzle_charsets_dir;
4434
4434
case OPT_TX_ISOLATION:
4684
4684
(void) my_load_path(language,language,buff);
4686
4686
/* If --character-sets-dir isn't given, use shared library dir */
4687
if (charsets_dir != mysql_charsets_dir)
4687
if (charsets_dir != drizzle_charsets_dir)
4689
strcpy(mysql_charsets_dir, buff);
4690
strncat(mysql_charsets_dir, CHARSET_DIR,
4691
sizeof(mysql_charsets_dir)-strlen(buff)-1);
4689
strcpy(drizzle_charsets_dir, buff);
4690
strncat(drizzle_charsets_dir, CHARSET_DIR,
4691
sizeof(drizzle_charsets_dir)-strlen(buff)-1);
4693
(void) my_load_path(mysql_charsets_dir, mysql_charsets_dir, buff);
4694
convert_dirname(mysql_charsets_dir, mysql_charsets_dir, NULL);
4695
charsets_dir=mysql_charsets_dir;
4693
(void) my_load_path(drizzle_charsets_dir, drizzle_charsets_dir, buff);
4694
convert_dirname(drizzle_charsets_dir, drizzle_charsets_dir, NULL);
4695
charsets_dir=drizzle_charsets_dir;
4697
if (init_tmpdir(&mysql_tmpdir_list, opt_mysql_tmpdir))
4697
if (init_tmpdir(&drizzle_tmpdir_list, opt_drizzle_tmpdir))
4699
4699
if (!slave_load_tmpdir)
4701
if (!(slave_load_tmpdir = (char*) my_strdup(mysql_tmpdir, MYF(MY_FAE))))
4701
if (!(slave_load_tmpdir = (char*) my_strdup(drizzle_tmpdir, MYF(MY_FAE))))