MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
restart_readonly_mysqld.inc
1 # Write file to make mysql-test-run.pl expect the "crash", but don't start
2 # it until it's told to
3 --let $_server_id= `SELECT @@server_id`
4 --let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.$_server_id.expect
5 --exec echo "wait" > $_expect_file_name
6 
7 # Send shutdown to the connected server and give
8 # it 10 seconds to die before zapping it
9 shutdown_server 10;
10 
11 # Write file to make mysql-test-run.pl start up the server again
12 --exec echo "restart: --innodb-read-only " > $_expect_file_name
13 
14 # Turn on reconnect
15 --enable_reconnect
16 
17 # Call script that will poll the server waiting for it to be back online again
18 --source include/wait_until_connected_again.inc
19 
20 # Turn off reconnect again
21 --disable_reconnect