summaryrefslogtreecommitdiff
path: root/mysql-test/extra
diff options
context:
space:
mode:
authorMats Kindahl <mats@sun.com>2008-10-02 21:13:15 +0200
committerMats Kindahl <mats@sun.com>2008-10-02 21:13:15 +0200
commit690fd28adf016032677b8a8131f156ff66886cc2 (patch)
treeba156dce34433950a5cc57d2897ae8dc24d3f3e9 /mysql-test/extra
parent8d9cf89e96fa7606ed76ae5314a6dd0b4ee7fb44 (diff)
downloadmariadb-git-690fd28adf016032677b8a8131f156ff66886cc2.tar.gz
Bug #38360: BLACKHOLE replication with RBR is broken
Incremental patch to add comments to test cases.
Diffstat (limited to 'mysql-test/extra')
-rw-r--r--mysql-test/extra/rpl_tests/rpl_blackhole.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/extra/rpl_tests/rpl_blackhole.test b/mysql-test/extra/rpl_tests/rpl_blackhole.test
index 594acbee020..1a0eeb3cf15 100644
--- a/mysql-test/extra/rpl_tests/rpl_blackhole.test
+++ b/mysql-test/extra/rpl_tests/rpl_blackhole.test
@@ -1,3 +1,16 @@
+# Check replication of one statement assuming that the engine on the
+# slave is a blackhole engine.
+
+# Input:
+# $statement Statement to evaluate, it is assumed to change t1
+
+# 1. Evaluate statement on master, it is assumed to change t1
+# 2. Wait for statement to be processed on slave
+# 3. SELECT from table t1 to see what was written
+# 4. Compare position on slave before executing statement and after
+# executing statement. If difference is >0, then something was
+# written to the binary log on the slave.
+
connection slave;
let $before = query_get_value("SHOW MASTER STATUS", Position, 1);