Debian Codegraph @

mysql-test/suite/innodb/t/innodb_uninstall.test

raw
1 --source include/not_embedded.inc
2 --source include/not_windows.inc
3
4 if (!$HA_INNODB_SO) {
5 --skip Need InnoDB plugin
6 }
7
8 #
9 # MDEV-8474: InnoDB sets per-connection data unsafely
10 # Below test caused hang
11 #
12 # When mysqld is built with wsrep patch (WITH_WSREP=ON),
13 # the following install command emits a warning about
14 # server unable to enable tc-log at runtime.
15 disable_warnings;
16 install plugin innodb soname 'ha_innodb';
17 enable_warnings;
18
19 create table t1(a int not null primary key) engine=innodb;
20
21 connect (con1, localhost, root);
22 connection con1;
23 begin;
24 insert into t1 values(1);
25
26 connection default;
27 flush tables;
28 send uninstall plugin innodb;
29
30 connection con1;
31 select sleep(1);
32 disconnect con1;
33
34 connection default;
35 reap;
36
37 --source include/restart_mysqld.inc
38
39 #
40 # Another test that caused hang.
41 #
42
43 connect (con1, localhost, root);
44 connection con1;
45 disable_warnings;
46 install plugin innodb soname 'ha_innodb';
47 enable_warnings;
48
49 drop table t1;
50 create table t2(a int not null primary key) engine=innodb;
51 insert into t2 values(1);
52 drop table t2;
53
54 connection default;
55 send uninstall plugin innodb;
56
57 connection con1;
58 select sleep(1);
59 disconnect con1;
60
61 connection default;
62 reap;
63
64 --source include/restart_mysqld.inc
65
66