Debian Codegraph @

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

raw
1 connection node_2;
2 connection node_1;
3 connection node_1;
4 CREATE TABLE ten (f1 INTEGER NOT NULL PRIMARY KEY) ENGINE=InnoDB;
5 INSERT INTO ten VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
6 CREATE TABLE t1 (id int not null primary key auto_increment, f1 INTEGER) ENGINE=InnoDB;
7 connection node_2;
8 set session wsrep_sync_wait=0;
9 connect node_1b, 127.0.0.1, root, , test, $NODE_MYPORT_1;
10 connection node_1b;
11 SET GLOBAL debug_dbug = "d,sync.wsrep_apply_cb";
12 connection node_2;
13 INSERT INTO t1 (f1) SELECT 1 FROM ten AS a1;
14 connection node_1b;
15 SET SESSION DEBUG_SYNC = "now WAIT_FOR sync.wsrep_apply_cb_reached";
16 connection node_1;
17 TRUNCATE TABLE t1;;
18 connection node_1b;
19 SET DEBUG_SYNC = "now SIGNAL signal.wsrep_apply_cb";
20 SET GLOBAL debug_dbug = "";
21 SET DEBUG_SYNC = "RESET";
22 connection node_1;
23 connection node_2;
24 SELECT COUNT(*) AS EXPECT_0 FROM t1;
25 EXPECT_0
26 0
27 connection node_1;
28 SELECT COUNT(*) AS EXPECT_0 FROM t1;
29 EXPECT_0
30 0
31 disconnect node_1b;
32 DROP TABLE t1;
33 DROP TABLE ten;