Debian Codegraph @

mysql-test/suite/ndb/t/ndb_alter_table_copy_check.inc

raw
1 # Include file for testing that concurrent alter changes are/are not
2 # detected.
3 # Inputs :
4 # $alter_statement
5 # $expected_alter_error
6 # $other_statement
7 # $expected_other_error
8 #
9 --echo Checking copying alter $alter_statement
10 --echo concurrent with $other_statement
11 --echo has alter error $expected_alter_error
12 --echo and statement error $expected_other_error
13
14 --connection server1
15
16 # See ha_ndbcluster.cc for definition of this sync point
17 # Get sync point to signal 'alter_waiting' and wait for signal 'alter_go'
18 set DEBUG_SYNC= 'ndb.before_commit_count_check SIGNAL alter_waiting WAIT_FOR alter_go';
19
20 --send_eval $alter_statement
21
22 --connection server1con2
23
24 #--echo Waiting for ALTER to stall
25 # wait for alter_waiting
26 set DEBUG_SYNC= 'now WAIT_FOR alter_waiting';
27 #--echo Alter stalled
28
29 --connection server2
30 #--echo Executing concurrent query
31 --error $expected_other_error
32 --eval $other_statement
33
34 --connection server1con2
35 #--echo Resuming alter
36 # signal 'alter_go' to resume the alter
37 set DEBUG_SYNC= 'now SIGNAL alter_go';
38
39 --connection server1
40 #--echo Checking result
41
42 --error $expected_alter_error
43 --reap
44
45 set DEBUG_SYNC='RESET';
46