# 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.
# And it requires InnoDB--sourceinclude/not_embedded.inc--sourceinclude/have_innodb.incconnect(con1,localhost,root,,);connect(con2,localhost,root,,);# FLUSH TABLES WITH READ LOCK should block writes to binlog tooconnectioncon1;createtablet1(aint)engine=innodb;resetmaster;setautocommit=0;insertt1values(1);connectioncon2;flushtableswithreadlock;showmasterstatus;connectioncon1;sendcommit;connectioncon2;sleep1;showmasterstatus;unlocktables;connectioncon1;reap;droptablet1;setautocommit=1;