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-22055: Assertion `active() == false' failed in wsrep::transactio…
…n::start_transaction upon ROLLBACK AND CHAIN The optional AND CHAIN clause is a convenience for initiating a new transaction as soon as the old transaction terminates. Therefore, do not start new transaction if it is already started at wsrep_start_transaction.
- Loading branch information
Jan Lindström
committed
Aug 25, 2020
1 parent
2000d05
commit a16f492
Showing
3 changed files
with
42 additions
and
3 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,18 @@ | ||
| connection node_2; | ||
| connection node_1; | ||
| ROLLBACK AND CHAIN; | ||
| CREATE TABLE t1(a int not null primary key) engine=innodb; | ||
| INSERT INTO t1 values (1); | ||
| BEGIN; | ||
| INSERT INTO t1 values (2); | ||
| ROLLBACK AND CHAIN; | ||
| SELECT * FROM t1; | ||
| a | ||
| 1 | ||
| connection node_2; | ||
| SET SESSION wsrep_sync_wait=15; | ||
| SELECT * FROM t1; | ||
| a | ||
| 1 | ||
| connection node_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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --source include/galera_cluster.inc | ||
|
|
||
| ROLLBACK AND CHAIN; | ||
|
|
||
| CREATE TABLE t1(a int not null primary key) engine=innodb; | ||
| INSERT INTO t1 values (1); | ||
|
|
||
| BEGIN; | ||
| INSERT INTO t1 values (2); | ||
| ROLLBACK AND CHAIN; | ||
|
|
||
| SELECT * FROM t1; | ||
|
|
||
| --connection node_2 | ||
| SET SESSION wsrep_sync_wait=15; | ||
| SELECT * FROM t1; | ||
|
|
||
| --connection node_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