summaryrefslogtreecommitdiff
path: root/mysql-test/include/wait_wsrep_ready.inc
blob: 2dd1ef7f1abbd523cf5764f107e666731203b413 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#
# If the wsrep plugin is loaded, wait until the wsrep provider becomes
# ready for use.
#

--disable_query_log
--disable_result_log

if (`SELECT COUNT(*)=1 FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_NAME = 'wsrep' AND PLUGIN_STATUS='ACTIVE'`)
{
  if (`SELECT @@GLOBAL.WSREP_ON`)
  {
    --source include/galera_wait_ready.inc
  }
}

--enable_query_log
--enable_result_log