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:
@ -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'},
|
||||
});
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user