📄 flush_block_commit_notembedded.test
字号:
# Let's see if FLUSH TABLES WITH READ LOCK blocks COMMIT of existing# transactions.# We verify that we did not introduce a deadlock.# This is intended to mimick how mysqldump and innobackup work.-- source include/have_log_bin.inc# And it requires InnoDB-- source include/have_log_bin.inc-- source include/have_innodb.incconnect (con1,localhost,root,,);connect (con2,localhost,root,,);# FLUSH TABLES WITH READ LOCK should block writes to binlog tooconnection con1;create table t1 (a int) engine=innodb;reset master;set autocommit=0;insert t1 values (1);connection con2;flush tables with read lock;show master status;connection con1;send commit;connection con2;sleep 1;show master status;unlock tables;connection con1;reap;drop table t1;set autocommit=1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -