summaryrefslogtreecommitdiffstats
path: root/mysql-test/include/wsrep_wait_membership.inc
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/include/wsrep_wait_membership.inc')
-rw-r--r--mysql-test/include/wsrep_wait_membership.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/include/wsrep_wait_membership.inc b/mysql-test/include/wsrep_wait_membership.inc
new file mode 100644
index 00000000..8bc1920d
--- /dev/null
+++ b/mysql-test/include/wsrep_wait_membership.inc
@@ -0,0 +1,10 @@
+# Waits for N members in the cluster
+#
+# Usage:
+# --let $members=1
+# --source wsrep_wait_membership.inc
+#
+
+let $wait_condition = SELECT VARIABLE_VALUE = $members FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
+
+--source include/wsrep_wait_condition.inc