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.
Browse files
MDEV-25740 �Assertion `!wsrep_has_changes(thd) || (thd->lex->sql_comm…
…and == SQLCOM_CREATE_TABLE && !thd->is_current_stmt_binlog_format_row())' failed in void wsrep_commit_empty(THD*, bool) Using ROLLBACK with `completion_type = CHAIN` result in start of transaction and implicit commit before previous WSREP internal data is cleared. Reviewed-by: Jan Lindström <jan.lindstrom@mariadb.com>
- Loading branch information
mkaruza
authored and
Jan Lindström
committed
Jul 28, 2021
1 parent
eb26e20
commit 386ac12
Showing
3 changed files
with
28 additions
and
0 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 |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| connection node_2; | ||
| connection node_1; | ||
| SET AUTOCOMMIT = OFF; | ||
| SET completion_type = CHAIN; | ||
| CREATE TABLE t1(f1 INT) ENGINE=InnoDB; | ||
| BEGIN; | ||
| INSERT INTO t1 VALUES (1); | ||
| ROLLBACK; | ||
| 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,14 @@ | ||
| # | ||
| # When `completion_type = CHAIN` is used, transaction started should not have previous writeset. | ||
| # | ||
|
|
||
| --source include/galera_cluster.inc | ||
| --source include/have_innodb.inc | ||
|
|
||
| SET AUTOCOMMIT = OFF; | ||
| SET completion_type = CHAIN; | ||
| CREATE TABLE t1(f1 INT) ENGINE=InnoDB; | ||
| BEGIN; | ||
| INSERT INTO t1 VALUES (1); | ||
| ROLLBACK; | ||
| 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