| 1 |
include/have_replication_observers_example_plugin.inc |
| 2 |
include/install_replication_observers_example.inc |
| 3 |
# |
| 4 |
# Cause an explicit transaction in order to Trans Observer to be called |
| 5 |
# |
| 6 |
CREATE TABLE t1 (c1 INT PRIMARY KEY) Engine=InnoDB; |
| 7 |
INSERT t1 VALUES(1); |
| 8 |
BEGIN; |
| 9 |
INSERT t1 VALUES(2); |
| 10 |
ROLLBACK; |
| 11 |
DROP TABLE t1; |
| 12 |
# |
| 13 |
# Cause an explicit restart in order to Server Observer to be called |
| 14 |
# |
| 15 |
# restart |
| 16 |
# |
| 17 |
# Verify that all Server Listening hooks were called |
| 18 |
# |
| 19 |
Matching lines are: |
| 20 |
replication_observers_example_plugin:before_server_shutdown' |
| 21 |
Occurrences of 'replication_observers_example_plugin:before_server_shutdown' in the input file: 1 |
| 22 |
Matching lines are: |
| 23 |
replication_observers_example_plugin:after_server_shutdown' |
| 24 |
Occurrences of 'replication_observers_example_plugin:after_server_shutdown' in the input file: 1 |
| 25 |
# |
| 26 |
# Verify that all Trans Listening hooks were called |
| 27 |
# |
| 28 |
Matching lines are: |
| 29 |
replication_observers_example_plugin:trans_before_dml' |
| 30 |
Occurrences of 'replication_observers_example_plugin:trans_before_dml' in the input file: 1 |
| 31 |
Matching lines are: |
| 32 |
replication_observers_example_plugin:trans_before_commit' |
| 33 |
Occurrences of 'replication_observers_example_plugin:trans_before_commit' in the input file: 1 |
| 34 |
Matching lines are: |
| 35 |
replication_observers_example_plugin:trans_before_rollback' |
| 36 |
Occurrences of 'replication_observers_example_plugin:trans_before_rollback' in the input file: 1 |
| 37 |
Matching lines are: |
| 38 |
replication_observers_example_plugin:trans_after_commit' |
| 39 |
Occurrences of 'replication_observers_example_plugin:trans_after_commit' in the input file: 1 |
| 40 |
Matching lines are: |
| 41 |
replication_observers_example_plugin:trans_after_rollback' |
| 42 |
Occurrences of 'replication_observers_example_plugin:trans_after_rollback' in the input file: 1 |
| 43 |
UNINSTALL PLUGIN replication_observers_example; |
| 44 |
End of test |