Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
17 changed files
with
126 additions
and
22 deletions.
There are no files selected for viewing
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 |
|---|---|---|
| @@ -41,4 +41,3 @@ SET(WSREP_PROC_INFO ${WITH_WSREP}) | ||
| IF(WITH_WSREP) | ||
| SET(WSREP_PATCH_VERSION "wsrep_${WSREP_VERSION}") | ||
| ENDIF() | ||
|
|
||
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,22 @@ | ||
| CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; | ||
| INSERT INTO t1 VALUES (1); | ||
| INSERT INTO t1 SELECT * FROM t1; | ||
| INSERT INTO t1 SELECT * FROM t1; | ||
| INSERT INTO t1 SELECT * FROM t1; | ||
| INSERT INTO t1 SELECT * FROM t1; | ||
| INSERT INTO t1 SELECT * FROM t1; | ||
| SET GLOBAL wsrep_max_ws_rows = 2; | ||
| SET AUTOCOMMIT=OFF; | ||
| START TRANSACTION; | ||
| SELECT * FROM t1 GROUP BY f1; | ||
| f1 | ||
| 1 | ||
| SELECT * FROM t1 GROUP BY f1; | ||
| f1 | ||
| 1 | ||
| SELECT * FROM t1 GROUP BY f1; | ||
| f1 | ||
| 1 | ||
| SHOW STATUS LIKE '%wsrep%'; | ||
| SET GLOBAL wsrep_max_ws_rows = 0; | ||
| 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # | ||
| # MW-309 Regression: wsrep_max_ws_rows limit also applies to certain SELECT queries | ||
| # | ||
|
|
||
| --source include/galera_cluster.inc | ||
| --source include/have_innodb.inc | ||
|
|
||
| CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB; | ||
| INSERT INTO t1 VALUES (1); | ||
| INSERT INTO t1 SELECT * FROM t1; | ||
| INSERT INTO t1 SELECT * FROM t1; | ||
| INSERT INTO t1 SELECT * FROM t1; | ||
| INSERT INTO t1 SELECT * FROM t1; | ||
| INSERT INTO t1 SELECT * FROM t1; | ||
|
|
||
| SET GLOBAL wsrep_max_ws_rows = 2; | ||
|
|
||
| SET AUTOCOMMIT=OFF; | ||
| START TRANSACTION; | ||
| SELECT * FROM t1 GROUP BY f1; | ||
| SELECT * FROM t1 GROUP BY f1; | ||
|
|
||
| --error 0 | ||
| SELECT * FROM t1 GROUP BY f1; | ||
|
|
||
| --disable_result_log | ||
| --error 0 | ||
| SHOW STATUS LIKE '%wsrep%'; | ||
| --enable_result_log | ||
|
|
||
| SET GLOBAL wsrep_max_ws_rows = 0; | ||
| 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
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
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
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
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
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
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