Commit d616caa6 authored by Magnus Svensson's avatar Magnus Svensson

Bug#39008 perl warning in mtr: 'use of uninitialized value in concatenation' in mtr:3995

parent 8fb38c6b
...@@ -4015,31 +4015,16 @@ sub start_servers($) { ...@@ -4015,31 +4015,16 @@ sub start_servers($) {
} }
my $datadir= $mysqld->value('datadir'); my $datadir= $mysqld->value('datadir');
# Don't delete anything if starting dirty
if (!$opt_start_dirty) if (!$opt_start_dirty)
{ {
my @options= ('log-bin', 'relay-log'); # Don't delete anything if starting dirty
foreach my $option_name ( @options ) {
next unless $mysqld->option($option_name);
my $value= $mysqld->value($option_name);
foreach my $file ( glob("$datadir/$value*") ) if (-d $datadir ) {
{ mtr_verbose(" - removing '$datadir'");
#print "removing: $file\n"; rmtree($datadir);
mtr_debug("Removing '$file'");
unlink($file);
} }
} }
# Remove old master.info and relay-log.info files
# from the servers datadir
unlink("$datadir/master.info");
unlink("$datadir/relay-log.info");
}
# Copy datadir from installed system db # Copy datadir from installed system db
for my $path ( "$opt_vardir", "$opt_vardir/..") { for my $path ( "$opt_vardir", "$opt_vardir/..") {
my $install_db= "$path/install.db"; my $install_db= "$path/install.db";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment