mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
b7b5f6f1ab
includes: * remove some remnants of "Bug#14521864: MYSQL 5.1 TO 5.5 BUGS PARTITIONING" * introduce LOCK_share, now LOCK_ha_data is strictly for engines * rea_create_table() always creates .par file (even in "frm-only" mode) * fix a 5.6 bug, temp file leak on dummy ALTER TABLE
44 lines
1.5 KiB
Text
44 lines
1.5 KiB
Text
include/master-slave.inc
|
|
[connection master]
|
|
create database if not exists mysqltest;
|
|
use mysqltest;
|
|
create temporary table mysqltest.t1 (n int)ENGINE=MyISAM;
|
|
create temporary table mysqltest.t2 (n int)ENGINE=MyISAM;
|
|
show status like 'Slave_open_temp_tables';
|
|
Variable_name Value
|
|
Slave_open_temp_tables 0
|
|
drop database mysqltest;
|
|
DROP TEMPORARY TABLE IF EXISTS tmp1;
|
|
Warnings:
|
|
Note 1051 Unknown table 'test.tmp1'
|
|
CREATE TEMPORARY TABLE t1 ( a int );
|
|
DROP TEMPORARY TABLE t1, t2;
|
|
ERROR 42S02: Unknown table 'test.t2'
|
|
DROP TEMPORARY TABLE tmp2;
|
|
ERROR 42S02: Unknown table 'test.tmp2'
|
|
stop slave;
|
|
**** On Master ****
|
|
CREATE TEMPORARY TABLE tmp3 (a int);
|
|
DROP TEMPORARY TABLE tmp3;
|
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=1;
|
|
START SLAVE;
|
|
include/rpl_reset.inc
|
|
CREATE TABLE t1 ( i INT );
|
|
SHOW STATUS LIKE 'Slave_open_temp_tables';
|
|
Variable_name Value
|
|
Slave_open_temp_tables 0
|
|
CREATE TEMPORARY TABLE ttmp1 ( i INT );
|
|
SET SESSION binlog_format=ROW;
|
|
SHOW STATUS LIKE 'Slave_open_temp_tables';
|
|
Variable_name Value
|
|
Slave_open_temp_tables 0
|
|
include/show_binlog_events.inc
|
|
Log_name Pos Event_type Server_id End_log_pos Info
|
|
master-bin.000001 # Gtid # # GTID #-#-#
|
|
master-bin.000001 # Query # # use `test`; CREATE TABLE t1 ( i INT )
|
|
master-bin.000001 # Gtid # # GTID #-#-#
|
|
master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE ttmp1 ( i INT )
|
|
master-bin.000001 # Gtid # # GTID #-#-#
|
|
master-bin.000001 # Query # # use `test`; DROP /*!40005 TEMPORARY */ TABLE IF EXISTS `ttmp1`
|
|
DROP TABLE t1;
|
|
include/rpl_end.inc
|