📄 rpl_trunc_temp.test
字号:
source include/master-slave.inc;## Bug#17137 Running "truncate table" on temporary table# leaves the table open on a slave#create temporary table t1 (n int);insert into t1 values(1);sync_slave_with_master;show status like 'Slave_open_temp_tables';# Perform a delete from temp tableconnection master;delete from t1;sync_slave_with_master;show status like 'Slave_open_temp_tables';# Perform truncate on temp tableconnection master;truncate t1;sync_slave_with_master;show status like 'Slave_open_temp_tables';# Disconnect the master, temp table on slave should dissapeardisconnect master;--real_sleep 3 # time for DROP to be read by slaveconnection slave;show status like 'Slave_open_temp_tables';# End of 4.1 tests
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -