Fix problem where mysql-test-run.pl fails to start up the mysqld after a...

Fix problem where mysql-test-run.pl fails to start up the mysqld after a failed test. Shows up on win hosts where one failed test case make subsequent ones fails with error "Could not open connection 'default': 2003 Can't connect to MySQL server on 'localhost'" 
parent e40e5634
...@@ -409,6 +409,7 @@ sub mtr_kill_leftovers () { ...@@ -409,6 +409,7 @@ sub mtr_kill_leftovers () {
mtr_debug(" - Master mysqld " . mtr_debug(" - Master mysqld " .
"(idx: $idx; pid: '$pidfile'; socket: '$sockfile'; port: $port)"); "(idx: $idx; pid: '$pidfile'; socket: '$sockfile'; port: $port)");
$::master->[$idx]->{'pid'}= 0; # Assume we are done with it
} }
for ( my $idx= 0; $idx < 3; $idx++ ) for ( my $idx= 0; $idx < 3; $idx++ )
...@@ -426,6 +427,8 @@ sub mtr_kill_leftovers () { ...@@ -426,6 +427,8 @@ sub mtr_kill_leftovers () {
mtr_debug(" - Slave mysqld " . mtr_debug(" - Slave mysqld " .
"(idx: $idx; pid: '$pidfile'; socket: '$sockfile'; port: $port)"); "(idx: $idx; pid: '$pidfile'; socket: '$sockfile'; port: $port)");
$::slave->[$idx]->{'pid'}= 0; # Assume we are done with it
} }
mtr_mysqladmin_shutdown(\@args, 20); mtr_mysqladmin_shutdown(\@args, 20);
......
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