Debian Codegraph @

mysql-test/suite/parts/inc/partition_crash.inc

raw
1 # Include file to decrease test code duplication
2
3 --eval $create_statement
4 --eval $insert_statement
5 --echo # State before crash
6
7 --list_files_write_file $DATADIR.files.txt $DATADIR/test
8 --replace_result #p# #P# #sp# #SP#
9 --cat_file $DATADIR.files.txt
10 --remove_file $DATADIR.files.txt
11 SHOW CREATE TABLE t1;
12 --sorted_result
13 SELECT * FROM t1;
14 --write_line wait $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
15 --disable_reconnect
16 # CR_SERVER_LOST
17 --error 2013
18 --eval $crash_statement
19 --echo # State after crash (before recovery)
20 --list_files_write_file $DATADIR.files.txt $DATADIR/test
21 --replace_result #p# #P# #sp# #SP# #tmp# #TMP#
22 --replace_regex /sql-exchange.*\./sql-exchange./ /sql-shadow-[0-9a-f]*-/sql-shadow-/
23 --cat_file $DATADIR.files.txt
24 --remove_file $DATADIR.files.txt
25 --write_line restart $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
26 --enable_reconnect
27 --source include/wait_until_connected_again.inc
28 --echo # State after crash recovery
29 --list_files_write_file $DATADIR.files.txt $DATADIR/test
30 --replace_result #p# #P# #sp# #SP#
31 --cat_file $DATADIR.files.txt
32 --remove_file $DATADIR.files.txt
33 SHOW CREATE TABLE t1;
34 --sorted_result
35 SELECT * FROM t1;
36 DROP TABLE t1;