summaryrefslogtreecommitdiffstats
path: root/mysql-test/include/galera_cluster.inc
blob: 48b5bc631db4ed6d333d0b632f2a0b16156c3120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# galera_cluster.inc
# ==================
#
# Description
# -----------
# Configure galera cluster with $galera_cluster_size (default: 2) nodes.
#

if (!$galera_cluster_size)
{
#  --die ERROR IN TEST: $galera_cluster_size variable must be set
  --let $galera_cluster_size = 2
}

--source include/galera_init.inc
--source include/have_innodb.inc
--source include/galera_wait_ready.inc


--let $_galera_node= $galera_cluster_size

while ($_galera_node != 1)
{
  --connection node_$_galera_node
  --source include/galera_wait_ready.inc
  --source include/have_innodb.inc

  --dec $_galera_node
}

--connection node_1