mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge pilot.mysql.com:/data/msvensson/mysql/my50-bt-36463
into pilot.mysql.com:/data/msvensson/mysql/mysql-5.1-bugteam
This commit is contained in:
@ -1431,7 +1431,15 @@ sub datadir_list_setup () {
|
||||
|
||||
sub collect_mysqld_features () {
|
||||
my $found_variable_list_start= 0;
|
||||
my $tmpdir= tempdir(CLEANUP => 0); # Directory removed by this function
|
||||
my $tmpdir;
|
||||
if ( $opt_tmpdir ) {
|
||||
# Use the requested tmpdir
|
||||
mkpath($opt_tmpdir) if (! -d $opt_tmpdir);
|
||||
$tmpdir= $opt_tmpdir;
|
||||
}
|
||||
else {
|
||||
$tmpdir= tempdir(CLEANUP => 0); # Directory removed by this function
|
||||
}
|
||||
|
||||
#
|
||||
# Execute "mysqld --help --verbose" to get a list
|
||||
@ -1497,7 +1505,7 @@ sub collect_mysqld_features () {
|
||||
}
|
||||
}
|
||||
}
|
||||
rmtree($tmpdir);
|
||||
rmtree($tmpdir) if (!$opt_tmpdir);
|
||||
mtr_error("Could not find version of MySQL") unless $mysql_version_id;
|
||||
mtr_error("Could not find variabes list") unless $found_variable_list_start;
|
||||
|
||||
@ -1810,6 +1818,7 @@ sub mysql_upgrade_arguments()
|
||||
mtr_add_arg($args, "--socket=$master->[0]->{'path_sock'}");
|
||||
mtr_add_arg($args, "--datadir=$master->[0]->{'path_myddir'}");
|
||||
mtr_add_arg($args, "--basedir=$glob_basedir");
|
||||
mtr_add_arg($args, "--tmpdir=$opt_tmpdir");
|
||||
|
||||
if ( $opt_debug )
|
||||
{
|
||||
|
Reference in New Issue
Block a user