1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug#28742 mysql-test-run is very slow on "Stopping All Servers" step

- Improve shutdown algorithm 
 - Wait up to 5 seconds for processes to exit after their port is free
This commit is contained in:
msvensson@pilot.(none)
2007-06-20 11:47:55 +02:00
parent 36ae2387a9
commit 4d3f3f676f
3 changed files with 85 additions and 89 deletions

View File

@ -4097,6 +4097,7 @@ sub stop_all_servers () {
pidfile => $mysqld->{'path_pid'},
sockfile => $mysqld->{'path_sock'},
port => $mysqld->{'port'},
errfile => $mysqld->{'path_myerr'},
});
$mysqld->{'pid'}= 0; # Assume we are done with it
@ -4303,6 +4304,7 @@ sub run_testcase_stop_servers($$$) {
pidfile => $mysqld->{'path_pid'},
sockfile => $mysqld->{'path_sock'},
port => $mysqld->{'port'},
errfile => $mysqld->{'path_myerr'},
});
$mysqld->{'pid'}= 0; # Assume we are done with it
@ -4353,6 +4355,7 @@ sub run_testcase_stop_servers($$$) {
pidfile => $mysqld->{'path_pid'},
sockfile => $mysqld->{'path_sock'},
port => $mysqld->{'port'},
errfile => $mysqld->{'path_myerr'},
});