1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Make events_restart more stable by waiting for the server to be stopped before starting it again

This commit is contained in:
Magnus Svensson
2008-08-09 11:16:12 +02:00
parent 02e48e886f
commit 66b42a13f2
4 changed files with 47 additions and 8 deletions

View File

@ -1,13 +1,21 @@
# Write file to make mysql-test-run.pl expect crash and restart
# Write file to make mysql-test-run.pl expect the "crash", but don't start
# it until it's told to
--write_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
restart
wait
EOF
# Send shutdown to the connected server and give
# it 10 seconds to die before zapping it
shutdown_server 10;
# Check server is gone
--source include/wait_until_disconnected.inc
# Write file to make mysql-test-run.pl start up the server again
--append_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
restart
EOF
# Turn on reconnect
--enable_reconnect