Debian Codegraph @

mysql-test/suite/galera/t/galera_sp_bf_abort.inc

raw
1
2 #
3 # Issue an INSERT for gap between 1 and 3 to node_2 and wait until it hits
4 # apply monitor sync point on node_1
5 #
6
7 --connection node_1a
8 --let $galera_sync_point = apply_monitor_slave_enter_sync
9 --source include/galera_set_sync_point.inc
10
11 --connection node_2
12 --eval $galera_sp_bf_abort_conflict
13
14 --connection node_1a
15 --source include/galera_wait_sync_point.inc
16 --source include/galera_clear_sync_point.inc
17
18 # Send a procedure to node_1 which should take a gap lock between
19 # rows 1 and 3. It does not conflict with INSERT from node_2 in
20 # certification. Park the UPDATE after replicate and let INSERT to
21 # continue applying, generating a BF abort.
22
23 --let $galera_sync_point = after_replicate_sync
24 --source include/galera_set_sync_point.inc
25
26 --connection node_1
27 --send_eval CALL $galera_sp_bf_abort_proc
28
29 --connection node_1a
30 --let $galera_sync_point = after_replicate_sync apply_monitor_slave_enter_sync
31 --source include/galera_wait_sync_point.inc
32 --source include/galera_clear_sync_point.inc
33
34 --let $galera_sync_point = apply_monitor_slave_enter_sync
35 --source include/galera_signal_sync_point.inc
36 --let $galera_sync_point = after_replicate_sync
37 --source include/galera_signal_sync_point.inc