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,29 +4015,14 @@ sub start_servers($) {
}
my $datadir= $mysqld->value('datadir');
# Don't delete anything if starting dirty
if (!$opt_start_dirty)
{
my @options= ('log-bin', 'relay-log');
foreach my $option_name ( @options ) {
next unless $mysqld->option($option_name);
my $value= $mysqld->value($option_name);
# Don't delete anything if starting dirty
foreach my $file ( glob("$datadir/$value*") )
{
#print "removing: $file\n";
mtr_debug("Removing '$file'");
unlink($file);
}
if (-d $datadir ) {
mtr_verbose(" - removing '$datadir'");
rmtree($datadir);
}
# 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
......
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