mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
19 lines
629 B
Text
19 lines
629 B
Text
|
--source include/galera_cluster.inc
|
||
|
--source include/have_innodb.inc
|
||
|
|
||
|
#
|
||
|
# A simple test for the wsrep_cluster_* status variables
|
||
|
#
|
||
|
|
||
|
--connection node_1
|
||
|
|
||
|
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
||
|
SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
|
||
|
|
||
|
--connection node_2
|
||
|
|
||
|
SELECT VARIABLE_VALUE = 2 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
||
|
SELECT VARIABLE_VALUE = 'Primary' FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_status';
|
||
|
|
||
|
|