-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDEV-22466 : Galera missing .test or .result files
Add missing .test and .result files.
- Loading branch information
Jan Lindström
committed
May 7, 2020
1 parent
8d3795f
commit 057a700
Showing
4 changed files
with
44 additions
and
25 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |