summaryrefslogtreecommitdiff
path: root/mysql-test/t/rpl_relayrotate.test
diff options
context:
space:
mode:
authordlenev@jabberwock.localdomain <>2004-04-02 00:47:20 +0400
committerdlenev@jabberwock.localdomain <>2004-04-02 00:47:20 +0400
commita80f46bfdf6e84d04a9af5d27b6985299e1d225c (patch)
treedfc52e593ad673b6bc6c3758338f9b94e68f3daa /mysql-test/t/rpl_relayrotate.test
parentad7e09dec4a3d05170ca4e86a9c285f4d3fac05e (diff)
downloadmariadb-git-a80f46bfdf6e84d04a9af5d27b6985299e1d225c.tar.gz
WL#775 "Add status variable identifying binlog_cache_size shortage"
Added two status variables: binlog_cache_use - counts number of transactions that used somehow transaction temporary binary log. binlog_cache_disk_use - counts number of transactions that required disk I/O for storing info in this this binary log.
Diffstat (limited to 'mysql-test/t/rpl_relayrotate.test')
-rw-r--r--mysql-test/t/rpl_relayrotate.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/t/rpl_relayrotate.test b/mysql-test/t/rpl_relayrotate.test
index 0e198d23517..ca3bff81608 100644
--- a/mysql-test/t/rpl_relayrotate.test
+++ b/mysql-test/t/rpl_relayrotate.test
@@ -58,6 +58,24 @@ start slave;
select master_pos_wait('master-bin.001',3000)>=0;
select * from t1 where a=8000;
+connection master;
+
+# binlog_cache_use and binlog_cache_disk_use status vars test
+# This test uses the previous test. Namely, it needs the long
+# transaction that adds 8000 lines to the t1 table.
+
+show status like "binlog_cache_use";
+show status like "binlog_cache_disk_use";
+
+# transaction which should not be flushed to disk and so should not
+# increase binlog_cache_disk_use
+begin;
+delete from t1;
+commit;
+
+show status like "binlog_cache_use";
+show status like "binlog_cache_disk_use";
+
# The following DROP is a very important cleaning task:
# imagine the next test is run with --skip-innodb: it will do
# DROP TABLE IF EXISTS t1; but this will delete the frm and leave
@@ -68,3 +86,7 @@ select * from t1 where a=8000;
# InnoDB: Error: table t1 already exists in InnoDB internal
# InnoDB: data dictionary. Have you deleted the .frm file etc
drop table t1;
+# wait until this drop is executed on slave
+save_master_pos;
+connection slave;
+sync_with_master;