| 1 |
# |
| 2 |
# A simple test that confirms that Galera works with log-bin enabled, that is |
| 3 |
# when MySQL's binlog is in effect rather than the Galera 'dummy' implementation. |
| 4 |
# |
| 5 |
|
| 6 |
--source include/galera_cluster.inc |
| 7 |
--source include/have_innodb.inc |
| 8 |
|
| 9 |
CREATE TABLE t1 (f1 INT PRIMARY KEY) ENGINE=InnoDB; |
| 10 |
|
| 11 |
INSERT INTO t1 VALUES (1); |
| 12 |
|
| 13 |
--connection node_2 |
| 14 |
SELECT COUNT(*) = 1 FROM t1; |
| 15 |
|
| 16 |
--connection node_1 |
| 17 |
UPDATE t1 SET f1 = 2 WHERE f1 = 1; |
| 18 |
|
| 19 |
--connection node_2 |
| 20 |
SELECT COUNT(*) = 1 FROM t1 WHERE f1 = 2; |
| 21 |
|
| 22 |
DROP TABLE t1; |