Debian Codegraph @

mysql-test/suite/galera/r/galera_savepoint_replay.result

raw
1 connection node_2;
2 connection node_1;
3 CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(1));
4 INSERT INTO t1 VALUES (1, 'a');
5 INSERT INTO t1 VALUES (2, 'a');
6 connection node_1;
7 SET AUTOCOMMIT=ON;
8 START TRANSACTION;
9 UPDATE t1 SET f2 = 'b' WHERE f1 = 1;
10 SELECT * FROM t1 WHERE f1 = 2 FOR UPDATE;
11 f1 f2
12 2 a
13 SAVEPOINT my_sp;
14 connect node_1a, 127.0.0.1, root, , test, $NODE_MYPORT_1;
15 SET SESSION wsrep_sync_wait=0;
16 SET GLOBAL wsrep_provider_options = 'dbug=d,apply_monitor_slave_enter_sync';
17 connection node_2;
18 UPDATE t1 SET f2 = 'c' WHERE f1 = 2;
19 connection node_1a;
20 SET SESSION wsrep_on = 0;
21 SET SESSION wsrep_on = 1;
22 SET GLOBAL wsrep_provider_options = 'dbug=';
23 SET GLOBAL wsrep_provider_options = 'dbug=d,commit_monitor_master_enter_sync';
24 connection node_1;
25 COMMIT;
26 connection node_1a;
27 SET SESSION wsrep_on = 0;
28 SET SESSION wsrep_on = 1;
29 SET GLOBAL wsrep_provider_options = 'dbug=';
30 SET GLOBAL wsrep_provider_options = 'dbug=d,abort_trx_end';
31 SET GLOBAL wsrep_provider_options = 'signal=apply_monitor_slave_enter_sync';
32 SET SESSION wsrep_on = 0;
33 SET SESSION wsrep_on = 1;
34 SET GLOBAL wsrep_provider_options = 'dbug=';
35 SET GLOBAL wsrep_provider_options = 'signal=abort_trx_end';
36 SET GLOBAL wsrep_provider_options = 'signal=commit_monitor_master_enter_sync';
37 connection node_1;
38 SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'b';
39 COUNT(*) = 1
40 1
41 SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'c';
42 COUNT(*) = 1
43 1
44 wsrep_local_replays
45 1
46 connection node_2;
47 SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'b';
48 COUNT(*) = 1
49 1
50 SELECT COUNT(*) = 1 FROM t1 WHERE f2 = 'c';
51 COUNT(*) = 1
52 1
53 DROP TABLE t1;