| 1 |
include/rpl_replication_observers_example_plugin_server_startup.inc |
| 2 |
# |
| 3 |
# Cause an explicit transaction in order to Trans Observer to be called |
| 4 |
# |
| 5 |
CREATE TABLE t1 (c1 INT PRIMARY KEY) Engine=InnoDB; |
| 6 |
INSERT t1 VALUES(1); |
| 7 |
BEGIN; |
| 8 |
INSERT t1 VALUES(2); |
| 9 |
ROLLBACK; |
| 10 |
DROP TABLE t1; |
| 11 |
# |
| 12 |
# Uninstall the Plugin to cause output of the hooks |
| 13 |
# |
| 14 |
# |
| 15 |
# Verify that all Server Listening hooks were called |
| 16 |
# |
| 17 |
Matching lines are: |
| 18 |
replication_observers_example_plugin:before_handle_connection' |
| 19 |
Occurrences of 'replication_observers_example_plugin:before_handle_connection' in the input file: 1 |
| 20 |
Matching lines are: |
| 21 |
replication_observers_example_plugin:before_recovery' |
| 22 |
Occurrences of 'replication_observers_example_plugin:before_recovery' in the input file: 1 |
| 23 |
Matching lines are: |
| 24 |
replication_observers_example_plugin:after_engine_recovery' |
| 25 |
Occurrences of 'replication_observers_example_plugin:after_engine_recovery' in the input file: 1 |
| 26 |
Matching lines are: |
| 27 |
replication_observers_example_plugin:after_recovery' |
| 28 |
Occurrences of 'replication_observers_example_plugin:after_recovery' in the input file: 1 |
| 29 |
# |
| 30 |
# Re-installing the Plugin |
| 31 |
# |
| 32 |
INSTALL PLUGIN replication_observers_example SONAME 'replication_observers_example_plugin.so'; |