| 1 |
# This test verifies the basic functionalities of the channel service interface. |
| 2 |
# Using the example plugin, we execute several of the interface methods, |
| 3 |
# verifying the result. |
| 4 |
|
| 5 |
--source include/have_debug.inc |
| 6 |
--source include/have_binlog_format_mixed.inc |
| 7 |
# Test requires master-info-repository=TABLE, relay-log-info-repository=TABLE |
| 8 |
--source include/have_slave_repository_type_table.inc |
| 9 |
--source include/have_replication_observers_example_plugin.inc |
| 10 |
|
| 11 |
# Install the replication observers example plugin |
| 12 |
|
| 13 |
--source include/install_replication_observers_example.inc |
| 14 |
|
| 15 |
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB; |
| 16 |
|
| 17 |
# Execute a query that on a server hook will execute a test against the several |
| 18 |
# method of the channel interface |
| 19 |
|
| 20 |
SET @debug_saved= @@GLOBAL.DEBUG; |
| 21 |
SET @@GLOBAL.DEBUG= '+d,validate_replication_observers_plugin_server_channels'; |
| 22 |
|
| 23 |
--eval INSERT INTO t1 VALUES(1) |
| 24 |
|
| 25 |
# Clean |
| 26 |
|
| 27 |
SET @@GLOBAL.DEBUG= @debug_saved; |
| 28 |
DROP TABLE t1; |
| 29 |
|
| 30 |
--source include/uninstall_replication_observers_example.inc |