Skip to content

Commit

Permalink
MDEV-22466 : Galera missing .test or .result files
Browse files Browse the repository at this point in the history
Add missing .test and .result files.
  • Loading branch information
Jan Lindström committed May 7, 2020
1 parent 8d3795f commit 057a700
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 25 deletions.
25 changes: 0 additions & 25 deletions mysql-test/suite/galera/r/MW-328C.result

This file was deleted.

15 changes: 15 additions & 0 deletions mysql-test/suite/galera/r/galera_v1_row_events.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
connection node_2;
connection node_1;
CREATE TABLE t1 (f1 INT PRIMARY KEY) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1);
connection node_2;
SELECT COUNT(*) = 1 FROM t1;
COUNT(*) = 1
1
connection node_1;
UPDATE t1 SET f1 = 2 WHERE f1 = 1;
connection node_2;
SELECT COUNT(*) = 1 FROM t1 WHERE f1 = 2;
COUNT(*) = 1
1
DROP TABLE t1;
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
#

--source include/galera_cluster.inc
--source include/have_debug.inc
--source include/have_debug_sync.inc
--source include/galera_have_debug_sync.inc

--let $node_1=node_1
--let $node_2=node_2
Expand Down
27 changes: 27 additions & 0 deletions mysql-test/suite/galera_sr/t/galera_sr_v1_row_events.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#
# Test that Galera SR continues to run even with --log-bin-use-v1-row-events=1
#

--source include/galera_cluster.inc
--source include/have_innodb.inc

CREATE TABLE t1 (f1 INT PRIMARY KEY) ENGINE=InnoDB;

SET AUTOCOMMIT=OFF;
START TRANSACTION;
INSERT INTO t1 VALUES (1);

--connection node_2
SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
SELECT COUNT(*) = 1 FROM t1;

--connection node_1
COMMIT;

SET AUTOCOMMIT=ON;
UPDATE t1 SET f1 = 2 WHERE f1 = 1;

--connection node_2
SELECT COUNT(*) = 1 FROM t1 WHERE f1 = 2;

DROP TABLE t1;

0 comments on commit 057a700

Please sign in to comment.