mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Use the deignated tmpdir if it exists
This commit is contained in:
parent
f480d64fdf
commit
ecc6795c45
1 changed files with 9 additions and 3 deletions
|
@ -773,7 +773,13 @@ sub set_mtr_build_thread_ports($) {
|
|||
|
||||
sub collect_mysqld_features {
|
||||
my $found_variable_list_start= 0;
|
||||
my $tmpdir= tempdir(CLEANUP => 0); # Directory removed by this function
|
||||
my $use_tmpdir;
|
||||
if ( defined $opt_tmpdir and -d $opt_tmpdir){
|
||||
# Create the tempdir in $opt_tmpdir
|
||||
$use_tmpdir= $opt_tmpdir;
|
||||
}
|
||||
my $tmpdir= tempdir(CLEANUP => 0, # Directory removed by this function
|
||||
DIR => $use_tmpdir);
|
||||
|
||||
#
|
||||
# Execute "mysqld --no-defaults --help --verbose" to get a
|
||||
|
@ -3566,7 +3572,7 @@ sub gdb_arguments {
|
|||
|
||||
# Write $args to gdb init file
|
||||
my $str= join(" ", @$$args);
|
||||
my $gdb_init_file= "$opt_tmpdir/gdbinit.$type";
|
||||
my $gdb_init_file= "$opt_vardir/tmp/gdbinit.$type";
|
||||
|
||||
# Remove the old gdbinit file
|
||||
unlink($gdb_init_file);
|
||||
|
@ -3630,7 +3636,7 @@ sub ddd_arguments {
|
|||
|
||||
# Write $args to ddd init file
|
||||
my $str= join(" ", @$$args);
|
||||
my $gdb_init_file= "$opt_tmpdir/gdbinit.$type";
|
||||
my $gdb_init_file= "$opt_vardir/tmp/gdbinit.$type";
|
||||
|
||||
# Remove the old gdbinit file
|
||||
unlink($gdb_init_file);
|
||||
|
|
Loading…
Reference in a new issue