Skip to content

Commit dd72d66

Browse files
temeoJan Lindström
authored andcommitted
MW-373 Wait for wsrep_ready at startup when provider is loaded
Conflicts: mysql-test/include/kill_and_restart_mysqld.inc
1 parent 224ae57 commit dd72d66

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

mysql-test/include/restart_mysqld.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ if (!$restart_parameters)
5050
# Call script that will poll the server waiting for it to be back online again
5151
--source include/wait_until_connected_again.inc
5252

53+
# Wait for wsrep
54+
--source include/wait_wsrep_ready.inc
55+
5356
# Turn off reconnect again
5457
--disable_reconnect
5558

mysql-test/include/start_mysqld.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ if (!$restart_parameters)
1616
# Call script that will poll the server waiting for it to be back online again
1717
--source include/wait_until_connected_again.inc
1818

19+
# Wait for wsrep
20+
--source include/wait_wsrep_ready.inc
21+
1922
# Turn off reconnect again
2023
--disable_reconnect
2124

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#
2+
# If the wsrep plugin is loaded, wait until the wsrep provider becomes
3+
# ready for use.
4+
#
5+
6+
--disable_query_log
7+
--disable_result_log
8+
9+
if (`SELECT COUNT(*)=1 FROM INFORMATION_SCHEMA.PLUGINS WHERE PLUGIN_NAME = 'wsrep' AND PLUGIN_STATUS='ACTIVE'`)
10+
{
11+
--source include/galera_wait_ready.inc
12+
}
13+
14+
--enable_query_log
15+
--enable_result_log

0 commit comments

Comments
 (0)