Skip to content

Commit 9827f13

Browse files
author
Neha Kumari
committed
Bug#28606948: BACKPORT OF BUG#24670909 TO 5.7.22
Backported the changes from mysql-8.0 to mysql-5.7 BUG#24670909: Problem: Previously, a session disconnect causes DROP TEMPORARY TABLE IF EXISTS to be binlogged for all the opened temp tables in that session. Even though temporary table operation are not otherwise binlogged in row or mixed mode, this was done regardless of binary log format in use, as it was not tracked, whether a particular temp table was not created in STATEMENT mode - in which case it does need the DROP. For ROW/MIXED users, this behavior causes spurious binlog writes and GTIDs generated on otherwise read only servers. Fix: Track the binlog format at temporary table create time (open_table_uncached and after final decide_logging_format call for CREATE ... SELECT), and that can be used to decide whether a DROP should be logged or not in method close_temporary_tables.
1 parent 2348605 commit 9827f13

18 files changed

+423
-75
lines changed

mysql-test/extra/binlog_tests/drop_temp_table.test

Lines changed: 58 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ connection con2;
6767
SELECT GET_LOCK("a",10);
6868
let $VERSION=`SELECT VERSION()`;
6969

70-
let $wait_binlog_event=DROP /*!40005 TEMPORARY */ TABLE IF EXISTS;
71-
source include/wait_for_binlog_event.inc;
70+
if (`SELECT @@GLOBAL.binlog_format != 'ROW'`)
71+
{
72+
let $wait_binlog_event=DROP /*!40005 TEMPORARY */ TABLE IF EXISTS;
73+
source include/wait_for_binlog_event.inc;
74+
}
7275

7376
source include/show_binlog_events.inc;
7477
DROP DATABASE `drop-temp+table-test`;
@@ -86,27 +89,58 @@ DROP DATABASE `drop-temp+table-test`;
8689

8790
RESET MASTER;
8891

89-
CREATE TABLE t1 ( i text );
92+
if (`SELECT @@GLOBAL.binlog_format != 'ROW'`)
93+
{
94+
CREATE TABLE t1 ( i text );
95+
96+
--connect(con1,localhost,root,,)
97+
CREATE TEMPORARY TABLE ttmp1 ( i text );
98+
SET @@session.binlog_format=ROW;
99+
INSERT INTO t1 VALUES ('1');
100+
SELECT @@session.binlog_format;
101+
--disconnect con1
102+
103+
-- connection default
104+
--let $wait_binlog_event= DROP
105+
--source include/wait_for_binlog_event.inc
106+
--let $mask_binlog_commit_events= 1
107+
-- source include/show_binlog_events.inc
108+
--let $mask_binlog_commit_events= 0
109+
DROP TABLE t1;
110+
RESET MASTER;
111+
}
90112

91-
--connect(con1,localhost,root,,)
92-
CREATE TEMPORARY TABLE ttmp1 ( i text );
93-
SET @@session.binlog_format=ROW;
94-
INSERT INTO t1 VALUES ('1');
95-
SELECT @@session.binlog_format;
96-
--disconnect con1
113+
# End of 4.1 tests
97114

98-
-- connection default
99-
--let $wait_binlog_event= DROP
100-
--source include/wait_for_binlog_event.inc
101-
--let $mask_binlog_commit_events= 1
102-
-- source include/show_binlog_events.inc
103-
--let $mask_binlog_commit_events= 0
104-
RESET MASTER;
115+
--echo #
116+
--echo # Bug 83003: Using temporary tables on slaves increases GTID sequence number
117+
--echo #
105118

106-
DROP TABLE t1;
119+
--source include/count_sessions.inc
120+
--connect (con1,localhost,root,,)
107121

108-
# End of 4.1 tests
122+
SET @saved_binlog_format= @@SESSION.binlog_format;
123+
SET SESSION binlog_format= STATEMENT;
124+
CREATE TEMPORARY TABLE temp_needs_logging(a INT) ENGINE=InnoDB;
125+
SET SESSION binlog_format= @saved_binlog_format;
126+
127+
# Check with both transactional and non-transactional tables as those are logged
128+
# separately in close_temporary_tables.
129+
CREATE TEMPORARY TABLE temp_trx(a INT) ENGINE=InnoDB;
130+
CREATE TEMPORARY TABLE temp_non_trx(a INT) ENGINE=MyISAM;
109131

132+
CREATE TEMPORARY TABLE temp_needs_logging_in_stmt(a INT) ENGINE=InnoDB;
133+
SET SESSION sql_log_bin= 0;
134+
CREATE TEMPORARY TABLE temp_binlog_disabled(a INT) ENGINE=InnoDB;
135+
SET SESSION sql_log_bin= 1;
136+
137+
--disconnect con1
138+
--connection default
139+
--source include/wait_until_count_sessions.inc
140+
141+
--source include/show_binlog_events.inc
142+
143+
# End of 5.6 tests
110144
--echo #
111145
--echo # BUG#21638823: ASSERTION FAILED:
112146
--echo # THD->GET_TRANSACTION()->IS_EMPTY(TRANSACTION_CTX::STMT) || THD
@@ -133,8 +167,11 @@ XA END 'idle_at_disconnect';
133167
--disconnect con3
134168
--source include/wait_until_disconnected.inc
135169
--connection default
136-
--let $wait_binlog_event= DROP
137-
--source include/wait_for_binlog_event.inc
170+
if (`SELECT @@GLOBAL.binlog_format != 'ROW'`)
171+
{
172+
--let $wait_binlog_event= DROP
173+
--source include/wait_for_binlog_event.inc
174+
}
138175
--echo # Dump binlog to show that, either the generated DROP comes after tx
139176
--echo # commit (stmt or mixed), or there is no trace of the XA txn and
140177
--echo # the temp table (row)
@@ -151,4 +188,4 @@ XA ROLLBACK 'idle_when_drop_temp';
151188

152189
# clean up the binary log at in the end of the test
153190
# case as well.
154-
RESET MASTER;
191+
RESET MASTER;

mysql-test/extra/binlog_tests/mix_innodb_myisam_binlog.test

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -241,13 +241,16 @@ disconnect con2;
241241
# Wait until con2 disconnects
242242
--source include/wait_until_disconnected.inc
243243
connection con3;
244-
# Bug #22084462 - MYSQL TEST BINLOG.BINLOG_ROW_MIX_INNODB_MYISAM FAILS
245-
# Wait to ensure that drop temporary tables events
246-
# are present in binary log.
247-
--let $event_sequence= (Anonymous_)?Gtid # !Q(DROP.*TEMPORARY.*) # (Anonymous_)?Gtid # !Q(DROP.*TEMPORARY.*)
248-
--let $limit= 0,4
249-
--let $wait_for_binlog_events= 1
250-
--source include/assert_binlog_events.inc
244+
if (`SELECT @@GLOBAL.binlog_format = 'STATEMENT'`)
245+
{
246+
# Bug #22084462 - MYSQL TEST BINLOG.BINLOG_ROW_MIX_INNODB_MYISAM FAILS
247+
# Wait to ensure that drop temporary tables events
248+
# are present in binary log.
249+
--let $event_sequence= (Anonymous_)?Gtid # !Q(DROP.*TEMPORARY.*) # (Anonymous_)?Gtid # !Q(DROP.*TEMPORARY.*)
250+
--let $limit= 0,4
251+
--let $wait_for_binlog_events= 1
252+
--source include/assert_binlog_events.inc
253+
}
251254
select get_lock("lock1",60);
252255
source include/show_binlog_events.inc;
253256
do release_lock("lock1");

mysql-test/suite/rpl/t/rpl_gtid_disconnect_drop_temporary_table.test renamed to mysql-test/extra/rpl_tests/gtid_disconnect_drop_temporary_table.test

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,13 @@ while ($i <= 4)
9292
--echo # Disconnecting.
9393
--disconnect con1
9494

95-
# Verify that the binlog contains the expected events.
96-
--let $event_sequence= (Anonymous_)?Gtid # !Q(DROP.*TEMPORARY.*)
97-
--let $wait_for_binlog_events= 1
98-
--source include/assert_binlog_events.inc
95+
if (`SELECT @@GLOBAL.binlog_format != 'ROW'`)
96+
{
97+
# Verify that the binlog contains the expected events.
98+
--let $event_sequence= (Anonymous_)?Gtid # !Q(DROP.*TEMPORARY.*)
99+
--let $wait_for_binlog_events= 1
100+
--source include/assert_binlog_events.inc
101+
}
99102

100103
# Sync with slave and assert slave has dropped the temp table.
101104
--source include/sync_slave_sql_with_master.inc
@@ -106,6 +109,11 @@ while ($i <= 4)
106109
# Verify that one gtid was added if gtid_mode=on
107110
--connection master
108111
--let $gtid_step_gtid_mode_agnostic= 1
112+
--let $gtid_step_count= 0
113+
if (`SELECT @@GLOBAL.binlog_format != 'ROW'`)
114+
{
115+
--let $gtid_step_count= 1
116+
}
109117
--source include/gtid_step_assert.inc
110118

111119
--inc $i
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
RESET MASTER;
2+
CREATE TABLE t1(a INT) ENGINE=InnoDB;
3+
CREATE TABLE t2(a INT) ENGINE=MyISAM;
4+
SET @saved_binlog_format= @@SESSION.binlog_format;
5+
SET SESSION binlog_format= 'STATEMENT';
6+
CREATE TEMPORARY TABLE tmp10 (a INT);
7+
SET SESSION binlog_format= @saved_binlog_format;
8+
CREATE TEMPORARY TABLE tmp1 ENGINE=InnoDB SELECT * FROM t1;
9+
CREATE TEMPORARY TABLE tmp2 ENGINE=MyISAM SELECT * FROM t2;
10+
CREATE TEMPORARY TABLE tmp3 ENGINE=MyISAM SELECT * FROM t1;
11+
CREATE TEMPORARY TABLE tmp4 ENGINE=InnoDB SELECT * FROM t2;
12+
CREATE TEMPORARY TABLE tmp5 (a INT) ENGINE=InnoDB;
13+
CREATE TEMPORARY TABLE tmp6 (a INT) ENGINE=MyISAM;
14+
CREATE TEMPORARY TABLE tmp7 LIKE t1;
15+
CREATE TEMPORARY TABLE tmp8 LIKE t2;
16+
include/show_binlog_events.inc
17+
Log_name Pos Event_type Server_id End_log_pos Info
18+
master-bin.000001 # Query # # use `test`; CREATE TABLE t1(a INT) ENGINE=InnoDB
19+
master-bin.000001 # Query # # use `test`; CREATE TABLE t2(a INT) ENGINE=MyISAM
20+
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE tmp10 (a INT)
21+
master-bin.000001 # Query # # use `test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `tmp10`
22+
DROP TABLE t1, t2;
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
RESET MASTER;
2+
CREATE TABLE t1(a INT) ENGINE=InnoDB;
3+
CREATE TABLE t2(a INT) ENGINE=MyISAM;
4+
CREATE TEMPORARY TABLE tmp1 ENGINE=InnoDB SELECT * FROM t1;
5+
CREATE TEMPORARY TABLE tmp2 ENGINE=MyISAM SELECT * FROM t2;
6+
CREATE TEMPORARY TABLE tmp3 ENGINE=MyISAM SELECT * FROM t1;
7+
CREATE TEMPORARY TABLE tmp4 ENGINE=InnoDB SELECT * FROM t2;
8+
CREATE TEMPORARY TABLE tmp5 (a INT) ENGINE=InnoDB;
9+
CREATE TEMPORARY TABLE tmp6 (a INT) ENGINE=MyISAM;
10+
CREATE TEMPORARY TABLE tmp7 LIKE t1;
11+
CREATE TEMPORARY TABLE tmp8 LIKE t2;
12+
SET SESSION binlog_format= 'ROW';
13+
CREATE TEMPORARY TABLE tmp10 (a INT);
14+
include/show_binlog_events.inc
15+
Log_name Pos Event_type Server_id End_log_pos Info
16+
master-bin.000001 # Query # # use `test`; CREATE TABLE t1(a INT) ENGINE=InnoDB
17+
master-bin.000001 # Query # # use `test`; CREATE TABLE t2(a INT) ENGINE=MyISAM
18+
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE tmp1 ENGINE=InnoDB SELECT * FROM t1
19+
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE tmp2 ENGINE=MyISAM SELECT * FROM t2
20+
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE tmp3 ENGINE=MyISAM SELECT * FROM t1
21+
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE tmp4 ENGINE=InnoDB SELECT * FROM t2
22+
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE tmp5 (a INT) ENGINE=InnoDB
23+
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE tmp6 (a INT) ENGINE=MyISAM
24+
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE tmp7 LIKE t1
25+
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE tmp8 LIKE t2
26+
master-bin.000001 # Query # # use `test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `tmp7`,`tmp5`,`tmp4`,`tmp1`
27+
master-bin.000001 # Query # # use `test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `tmp8`,`tmp6`,`tmp3`,`tmp2`
28+
DROP TABLE t1, t2;

mysql-test/suite/binlog/r/binlog_row_drop_tmp_tbl.result

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,25 @@ master-bin.000001 # Query # # use `drop-temp+table-test`; DROP TEMPORARY TABLE I
3434
master-bin.000001 # Query # # use `drop-temp+table-test`; DROP TEMPORARY TABLE IF EXISTS `tmp2` /* generated by server */
3535
master-bin.000001 # Query # # use `drop-temp+table-test`; DROP TABLE IF EXISTS `t` /* generated by server */
3636
master-bin.000001 # Query # # use `drop-temp+table-test`; DROP TABLE IF EXISTS `tmp2`,`t` /* generated by server */
37-
master-bin.000001 # Query # # use `drop-temp+table-test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `shortn2`,`table:name`,`shortn1`
3837
DROP DATABASE `drop-temp+table-test`;
3938
RESET MASTER;
40-
CREATE TABLE t1 ( i text );
41-
CREATE TEMPORARY TABLE ttmp1 ( i text );
42-
SET @@session.binlog_format=ROW;
43-
INSERT INTO t1 VALUES ('1');
44-
SELECT @@session.binlog_format;
45-
@@session.binlog_format
46-
ROW
39+
#
40+
# Bug 83003: Using temporary tables on slaves increases GTID sequence number
41+
#
42+
SET @saved_binlog_format= @@SESSION.binlog_format;
43+
SET SESSION binlog_format= STATEMENT;
44+
CREATE TEMPORARY TABLE temp_needs_logging(a INT) ENGINE=InnoDB;
45+
SET SESSION binlog_format= @saved_binlog_format;
46+
CREATE TEMPORARY TABLE temp_trx(a INT) ENGINE=InnoDB;
47+
CREATE TEMPORARY TABLE temp_non_trx(a INT) ENGINE=MyISAM;
48+
CREATE TEMPORARY TABLE temp_needs_logging_in_stmt(a INT) ENGINE=InnoDB;
49+
SET SESSION sql_log_bin= 0;
50+
CREATE TEMPORARY TABLE temp_binlog_disabled(a INT) ENGINE=InnoDB;
51+
SET SESSION sql_log_bin= 1;
4752
include/show_binlog_events.inc
4853
Log_name Pos Event_type Server_id End_log_pos Info
49-
master-bin.000001 # Query # # use `test`; CREATE TABLE t1 ( i text )
50-
master-bin.000001 # Query # # BEGIN
51-
master-bin.000001 # Table_map # # table_id: # (test.t1)
52-
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
53-
master-bin.000001 # Query # # COMMIT
54-
master-bin.000001 # Query # # use `test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `ttmp1`
55-
RESET MASTER;
56-
DROP TABLE t1;
54+
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE temp_needs_logging(a INT) ENGINE=InnoDB
55+
master-bin.000001 # Query # # use `test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `temp_needs_logging`
5756
#
5857
# BUG#21638823: ASSERTION FAILED:
5958
# THD->GET_TRANSACTION()->IS_EMPTY(TRANSACTION_CTX::STMT) || THD
@@ -80,7 +79,6 @@ XA END 'idle_at_disconnect';
8079
# the temp table (row)
8180
include/show_binlog_events.inc
8281
Log_name Pos Event_type Server_id End_log_pos Info
83-
master-bin.000001 # Query # # use `test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `temp`
8482
#
8583
# Start XA txn and leave in XA_idle
8684
XA START 'idle_when_drop_temp';

mysql-test/suite/binlog/r/binlog_row_mix_innodb_myisam.result

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ set autocommit=0;
261261
create table t2 (n int) engine=innodb;
262262
insert into t2 values (3);
263263
include/save_binlog_position.inc
264-
include/assert_binlog_events.inc [(Anonymous_)?Gtid # !Q(DROP.*TEMPORARY.*) # (Anonymous_)?Gtid # !Q(DROP.*TEMPORARY.*)]
265264
select get_lock("lock1",60);
266265
get_lock("lock1",60)
267266
1
@@ -298,8 +297,6 @@ master-bin.000001 # Table_map # # table_id: # (test.t0)
298297
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
299298
master-bin.000001 # Query # # COMMIT
300299
master-bin.000001 # Query # # use `test`; create table t2 (n int) engine=innodb
301-
master-bin.000001 # Query # # use `test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `ti`
302-
master-bin.000001 # Query # # use `test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `t1`
303300
do release_lock("lock1");
304301
drop table t0,t2;
305302
set autocommit=0;

mysql-test/suite/binlog/r/binlog_stm_drop_tmp_tbl.result

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,29 @@ master-bin.000001 # Table_map # # table_id: # (test.t1)
6060
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
6161
master-bin.000001 # Query # # COMMIT
6262
master-bin.000001 # Query # # use `test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `ttmp1`
63-
RESET MASTER;
6463
DROP TABLE t1;
64+
RESET MASTER;
65+
#
66+
# Bug 83003: Using temporary tables on slaves increases GTID sequence number
67+
#
68+
SET @saved_binlog_format= @@SESSION.binlog_format;
69+
SET SESSION binlog_format= STATEMENT;
70+
CREATE TEMPORARY TABLE temp_needs_logging(a INT) ENGINE=InnoDB;
71+
SET SESSION binlog_format= @saved_binlog_format;
72+
CREATE TEMPORARY TABLE temp_trx(a INT) ENGINE=InnoDB;
73+
CREATE TEMPORARY TABLE temp_non_trx(a INT) ENGINE=MyISAM;
74+
CREATE TEMPORARY TABLE temp_needs_logging_in_stmt(a INT) ENGINE=InnoDB;
75+
SET SESSION sql_log_bin= 0;
76+
CREATE TEMPORARY TABLE temp_binlog_disabled(a INT) ENGINE=InnoDB;
77+
SET SESSION sql_log_bin= 1;
78+
include/show_binlog_events.inc
79+
Log_name Pos Event_type Server_id End_log_pos Info
80+
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE temp_needs_logging(a INT) ENGINE=InnoDB
81+
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE temp_trx(a INT) ENGINE=InnoDB
82+
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE temp_non_trx(a INT) ENGINE=MyISAM
83+
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE temp_needs_logging_in_stmt(a INT) ENGINE=InnoDB
84+
master-bin.000001 # Query # # use `test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `temp_needs_logging_in_stmt`,`temp_trx`,`temp_needs_logging`
85+
master-bin.000001 # Query # # use `test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `temp_non_trx`
6586
#
6687
# BUG#21638823: ASSERTION FAILED:
6788
# THD->GET_TRANSACTION()->IS_EMPTY(TRANSACTION_CTX::STMT) || THD
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# ====== Purpose =======
2+
#
3+
# This test verifies that DROP for a temporary table created
4+
# in Row mode is not logged in binlog at session disconnect.
5+
#
6+
# ====== Implementation ======
7+
#
8+
# Create temporary tables in Row mode using different engines,
9+
# also create a temporary table in Statement mode, now when you connect to the session
10+
# after a disconnect print the output of show binlog events.
11+
# This will verify that the DROP for temporary table created in statement
12+
# mode is written to binary log at session disconnect, but for the temporary table
13+
# created in Row mode no DROP statement for temporary table is logged at session
14+
# disconnect.
15+
#
16+
# ====== References =======
17+
#
18+
# Bug#28606948:BACKPORT OF BUG #24670909 TO 5.7.22
19+
#
20+
# The name of this file has row_mix even though we are just testing in row
21+
# format because we want the name of tests to be consistent in 5.7 and 8.0
22+
23+
--source include/have_log_bin.inc
24+
--source include/have_myisam.inc
25+
--source include/have_binlog_format_row.inc
26+
27+
RESET MASTER;
28+
29+
CREATE TABLE t1(a INT) ENGINE=InnoDB;
30+
CREATE TABLE t2(a INT) ENGINE=MyISAM;
31+
32+
--source include/count_sessions.inc
33+
34+
--connect(con1,localhost,root)
35+
36+
SET @saved_binlog_format= @@SESSION.binlog_format;
37+
# A DROP for tmp10 should be binlogged because CREATE TABLE is
38+
# created in Statement mode
39+
40+
SET SESSION binlog_format= 'STATEMENT';
41+
CREATE TEMPORARY TABLE tmp10 (a INT);
42+
SET SESSION binlog_format= @saved_binlog_format;
43+
44+
# No DROP should be logged for any of the statements below
45+
CREATE TEMPORARY TABLE tmp1 ENGINE=InnoDB SELECT * FROM t1;
46+
CREATE TEMPORARY TABLE tmp2 ENGINE=MyISAM SELECT * FROM t2;
47+
CREATE TEMPORARY TABLE tmp3 ENGINE=MyISAM SELECT * FROM t1;
48+
CREATE TEMPORARY TABLE tmp4 ENGINE=InnoDB SELECT * FROM t2;
49+
CREATE TEMPORARY TABLE tmp5 (a INT) ENGINE=InnoDB;
50+
CREATE TEMPORARY TABLE tmp6 (a INT) ENGINE=MyISAM;
51+
CREATE TEMPORARY TABLE tmp7 LIKE t1;
52+
CREATE TEMPORARY TABLE tmp8 LIKE t2;
53+
54+
--disconnect con1
55+
--connection default
56+
--source include/wait_until_count_sessions.inc
57+
58+
--source include/show_binlog_events.inc
59+
60+
DROP TABLE t1, t2;

0 commit comments

Comments
 (0)