1--let $include_filename= have_group_replication_plugin.inc
2--let $_previous_include_silent= $include_silent
3--let $include_silent= 1
4--source include/begin_include_file.inc
5
6# Synchronous replication will work only for RBR mode of replication thus tests
7# using it are restricted to this mode only.
8--source include/have_log_bin.inc
9--source include/have_binlog_format_row.inc
10--source include/not_embedded.inc
11--source include/have_innodb.inc
12--source include/have_gtid.inc
13
14#
15# Check if server has support for loading plugins
16#
17if (`SELECT @@have_dynamic_loading != 'YES'`) {
18  --skip Requires dynamic loading
19}
20
21if (!$GROUP_REPLICATION)
22{
23  --skip Need Group Replication plugin
24}
25
26if (!`select count(*) from information_schema.plugins where PLUGIN_NAME like 'group_replication'`)
27{
28  --skip Need Group Replication plugin
29}
30
31# Allow $SERVER_MYPORT_1 as alias for $MASTER_MYPORT
32# necessary for the rpl_group_replication_default_connections.inc file.
33if (!$SERVER_MYPORT_1)
34{
35  --let SERVER_MYPORT_1= $MASTER_MYPORT
36}
37
38# Allow $SERVER_MYPORT_2 as alias for $SLAVE_MYPORT
39# necessary for the rpl_group_replication_default_connections.inc file.
40if (!$SERVER_MYPORT_2)
41{
42  --let SERVER_MYPORT_2= $SLAVE_MYPORT
43}
44
45--source include/rpl_group_replication_default_connections.inc
46
47--let $include_filename= have_group_replication_plugin.inc
48--let $include_silent= $_previous_include_silent
49--source include/end_include_file.inc
50