mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge 10.10 into 10.11
This commit is contained in:
@ -11,6 +11,7 @@
|
||||
connection default;
|
||||
let $default_db=`select database()`;
|
||||
let $MYSQLD_DATADIR= `SELECT @@datadir`;
|
||||
let $pid_file=`select @@pid_file`;
|
||||
|
||||
#it will used at end of test for wait_for_status_var.inc primitive
|
||||
#let $status_var= Threads_connected;
|
||||
@ -23,6 +24,7 @@ wait-maria_empty_logs.inc
|
||||
EOF
|
||||
|
||||
--source include/mysqladmin_shutdown.inc
|
||||
--source include/wait_until_no_pidfile.inc
|
||||
|
||||
--disable_warnings
|
||||
if (!$mel_keep_control_file)
|
||||
|
30
mysql-test/include/wait_until_no_pidfile.inc
Normal file
30
mysql-test/include/wait_until_no_pidfile.inc
Normal file
@ -0,0 +1,30 @@
|
||||
# Include this script after a shutdown to wait until the pid file,
|
||||
# stored in $pid_file, has disappered.
|
||||
|
||||
#--echo $pid_file
|
||||
|
||||
--disable_result_log
|
||||
--disable_query_log
|
||||
# Wait one minute
|
||||
let $counter= 600;
|
||||
while ($counter)
|
||||
{
|
||||
--error 0,1
|
||||
--file_exists $pid_file
|
||||
if (!$errno)
|
||||
{
|
||||
dec $counter;
|
||||
--real_sleep 0.1
|
||||
}
|
||||
if ($errno)
|
||||
{
|
||||
let $counter= 0;
|
||||
}
|
||||
}
|
||||
if (!$errno)
|
||||
{
|
||||
--die Pid file "$pid_file" failed to disappear
|
||||
}
|
||||
|
||||
--enable_query_log
|
||||
--enable_result_log
|
Reference in New Issue
Block a user