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
Merge pull request #659 from codership/MDEV-13549-fixes-for-galera_bf…
…_abort_for_update MDEV-13549 Fix and re-enable test galera.galera_bf_abort_for_update
- Loading branch information
Showing
3 changed files
with
53 additions
and
16 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
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 |
|---|---|---|
| @@ -1,10 +1,21 @@ | ||
| CREATE TABLE t1 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB; | ||
| SET AUTOCOMMIT=OFF; | ||
| START TRANSACTION; | ||
| INSERT INTO t1 VALUES (1); | ||
| INSERT INTO t1 VALUES (1); | ||
| CREATE TABLE t1 (f1 INTEGER PRIMARY KEY, f2 INT) ENGINE=InnoDB; | ||
| INSERT INTO t1 VALUES (1, 10); | ||
| BEGIN; | ||
| SELECT * FROM t1 FOR UPDATE; | ||
| f1 f2 | ||
| 1 10 | ||
| UPDATE t1 SET f1 = 2; | ||
| COMMIT; | ||
| ERROR 40001: Deadlock found when trying to get lock; try restarting transaction | ||
| wsrep_local_aborts_increment | ||
| wsrep_local_bf_aborts_diff | ||
| 1 | ||
| BEGIN; | ||
| SELECT * FROM t1 FOR UPDATE; | ||
| f1 f2 | ||
| 2 10 | ||
| UPDATE t1 SET f2 = 20; | ||
| COMMIT; | ||
| ERROR 40001: Deadlock found when trying to get lock; try restarting transaction | ||
| wsrep_local_bf_aborts_diff | ||
| 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