mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
22 lines
615 B
Text
22 lines
615 B
Text
#
|
|
# Test wsrep_node_address . The galera_var_node_address.cnf contains various settings for
|
|
# wsrep_node_address, so in this test we simply confirm that the cluster has started up correctly.
|
|
#
|
|
|
|
--source include/galera_cluster.inc
|
|
--source include/have_innodb.inc
|
|
|
|
SELECT VARIABLE_VALUE = 4 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_cluster_size';
|
|
|
|
--connection node_1
|
|
CREATE TABLE t1 (f1 INTEGER);
|
|
|
|
--connection node_2
|
|
INSERT INTO t1 VALUES (1);
|
|
|
|
--connect node_3, 127.0.0.1, root, , test, $NODE_MYPORT_3
|
|
--connection node_3
|
|
SELECT COUNT(*) = 1 FROM t1;
|
|
|
|
--connection node_1
|
|
DROP TABLE t1;
|