Debian Codegraph @

mysql-test/suite/galera/r/MW-292.result

raw
1 connection node_2;
2 connection node_1;
3 CREATE TABLE rand_table (f1 FLOAT);
4 CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 CHAR(1));
5 INSERT INTO t1 VALUES (1, 'a');
6 INSERT INTO t1 VALUES (2, 'a');
7 connection node_1;
8 SET AUTOCOMMIT=ON;
9 START TRANSACTION;
10 UPDATE t1 SET f2 = 'b' WHERE f1 = 1;
11 SELECT * FROM t1 WHERE f1 = 2 FOR UPDATE;
12 f1 f2
13 2 a
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 TIMEDIFF(SYSDATE(), NOW()) < 2;
39 TIMEDIFF(SYSDATE(), NOW()) < 2
40 1
41 INSERT INTO rand_table VALUES (RAND()),(RAND()),(RAND()),(RAND()),(RAND());
42 INSERT INTO rand_table VALUES (RAND()),(RAND()),(RAND()),(RAND()),(RAND());
43 SELECT COUNT(DISTINCT f1) = 10 FROM rand_table;
44 COUNT(DISTINCT f1) = 10
45 1
46 wsrep_local_replays
47 1
48 connection node_2;
49 DROP TABLE t1;
50 DROP TABLE rand_table;