Debian Codegraph @

mysql-test/suite/binlog/include/binlog_server_crash_recovery.inc

raw
1 # ==== Purpose ====
2 #
3 # To verify that an expected crash happened at the $debug_point when executing
4 # the $statement.
5 #
6 # ==== Implementation ====
7 #
8 # 1. Add the $debug_point.
9 # 2. Verify that an expected crash happened at the $debug_point when executing
10 # the $statement.
11 # 3. Start the server.
12 #
13 # ==== Usage ====
14 #
15 # --let $debug_point=
16 # --let $statement=
17 # --source suite/binlog/include/binlog_server_crash_recovery.inc
18 #
19 # Parameters:
20 #
21 # $debug_point
22 # Set a debug point to cause an expected crash when executing the $statement.
23 #
24 # $statement
25 # The statement to be executed to cause an expected crash.
26 #
27 # ==== References ====
28 #
29 # Wl#12080 Add support to binary log encryption key rotation and cleanup
30
31 --exec echo "wait" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
32 --let $debug_point=$debug_point
33 --source include/add_debug_point.inc
34 --error CR_SERVER_LOST
35 --eval $statement
36
37 --source include/wait_until_disconnected.inc
38 --enable_reconnect
39 --echo # Restart the master server
40 --exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
41 --source include/wait_until_connected_again.inc
42 --disable_reconnect