-
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.
Merge branch '10.2' into bb-10.2-mariarocks
- Loading branch information
Showing
101 changed files
with
1,452 additions
and
757 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
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 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
connect stop_purge, localhost, root,,; | ||
START TRANSACTION WITH CONSISTENT SNAPSHOT; | ||
connect delete, localhost, root,,; | ||
connection default; | ||
CREATE TABLE t1(a INT PRIMARY KEY, b INT UNIQUE) ENGINE=InnoDB; | ||
INSERT INTO t1 VALUES(1,1); | ||
DELETE FROM t1; | ||
SET DEBUG_SYNC='row_ins_sec_index_unique SIGNAL inserted WAIT_FOR locked'; | ||
BEGIN; | ||
INSERT INTO t1 VALUES(1,1); | ||
connection delete; | ||
SET DEBUG_SYNC='now WAIT_FOR inserted'; | ||
SET DEBUG_SYNC='innodb_row_search_for_mysql_exit SIGNAL locked'; | ||
SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED; | ||
BEGIN; | ||
DELETE FROM t1 WHERE b=1; | ||
connection default; | ||
connection delete; | ||
COMMIT; | ||
connection default; | ||
SET DEBUG_SYNC='RESET'; | ||
ROLLBACK; | ||
SET DEBUG_SYNC='row_ins_sec_index_unique SIGNAL inserted WAIT_FOR locked'; | ||
BEGIN; | ||
INSERT INTO t1 VALUES(1,1); | ||
connection delete; | ||
SET DEBUG_SYNC='now WAIT_FOR inserted'; | ||
SET DEBUG_SYNC='innodb_row_search_for_mysql_exit SIGNAL locked'; | ||
SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; | ||
BEGIN; | ||
DELETE FROM t1 WHERE b=1; | ||
connection default; | ||
connection delete; | ||
COMMIT; | ||
connection default; | ||
SET DEBUG_SYNC='RESET'; | ||
ROLLBACK; | ||
SET DEBUG_SYNC='row_ins_sec_index_unique SIGNAL inserted WAIT_FOR locked'; | ||
BEGIN; | ||
SET innodb_lock_wait_timeout=1; | ||
INSERT INTO t1 VALUES(1,1); | ||
connection delete; | ||
SET DEBUG_SYNC='now WAIT_FOR inserted'; | ||
SET DEBUG_SYNC='innodb_row_search_for_mysql_exit SIGNAL locked'; | ||
SET SESSION TRANSACTION ISOLATION LEVEL REPEATABLE READ; | ||
BEGIN; | ||
DELETE FROM t1 WHERE b=1; | ||
connection default; | ||
ERROR HY000: Lock wait timeout exceeded; try restarting transaction | ||
COMMIT; | ||
SET DEBUG_SYNC='RESET'; | ||
connection delete; | ||
COMMIT; | ||
disconnect delete; | ||
disconnect stop_purge; | ||
connection default; | ||
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,64 @@ | ||
# | ||
# MDEV-13797 InnoDB may hang if shutdown is initiated soon after startup | ||
# while rolling back recovered incomplete transactions | ||
# | ||
CREATE TABLE t (a INT) ENGINE=InnoDB; | ||
BEGIN; | ||
COMMIT; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t8 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t8 (a) SELECT NULL FROM t; | ||
UPDATE t8 SET a=a+100, b=a; | ||
DELETE FROM t8; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t7 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t7 (a) SELECT NULL FROM t; | ||
UPDATE t7 SET a=a+100, b=a; | ||
DELETE FROM t7; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t6 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t6 (a) SELECT NULL FROM t; | ||
UPDATE t6 SET a=a+100, b=a; | ||
DELETE FROM t6; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t5 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t5 (a) SELECT NULL FROM t; | ||
UPDATE t5 SET a=a+100, b=a; | ||
DELETE FROM t5; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t4 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t4 (a) SELECT NULL FROM t; | ||
UPDATE t4 SET a=a+100, b=a; | ||
DELETE FROM t4; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t3 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t3 (a) SELECT NULL FROM t; | ||
UPDATE t3 SET a=a+100, b=a; | ||
DELETE FROM t3; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t2 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t2 (a) SELECT NULL FROM t; | ||
UPDATE t2 SET a=a+100, b=a; | ||
DELETE FROM t2; | ||
connect con$c,localhost,root,,; | ||
CREATE TABLE t1 (a SERIAL, b INT UNIQUE, c INT UNIQUE) ENGINE=InnoDB; | ||
BEGIN; | ||
INSERT INTO t1 (a) SELECT NULL FROM t; | ||
UPDATE t1 SET a=a+100, b=a; | ||
DELETE FROM t1; | ||
INSERT INTO t1(a) SELECT NULL FROM t; | ||
INSERT INTO t1(a) SELECT NULL FROM t1; | ||
INSERT INTO t1(a) SELECT NULL FROM t1; | ||
INSERT INTO t1(a) SELECT NULL FROM t1; | ||
INSERT INTO t1(a) SELECT NULL FROM t1; | ||
connection default; | ||
SET GLOBAL innodb_flush_log_at_trx_commit=1; | ||
CREATE TABLE u(a SERIAL) ENGINE=INNODB; | ||
DROP TABLE t,u; |
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
Oops, something went wrong.