1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-21217 innodb_force_recovery=2 may wrongly abort rollback

trx_roll_must_shutdown(): Correct the condition that detects
the start of shutdown.
This commit is contained in:
Marko Mäkelä
2020-06-13 14:45:52 +03:00
parent 2fd2fd77e7
commit b68f1d847f
3 changed files with 52 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
FLUSH TABLES;
#
# MDEV-21217 innodb_force_recovery=2 may wrongly abort the rollback
# of recovered transactions
#
connect con0,localhost,root;
CREATE TABLE t0 (a INT PRIMARY KEY) ENGINE=InnoDB;
BEGIN;
INSERT INTO t0 SELECT * FROM seq_1_to_1000;
connection default;
SET GLOBAL innodb_flush_log_at_trx_commit=1;
CREATE TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
disconnect con0;
connection default;
SELECT * FROM t0 LOCK IN SHARE MODE;
a
DROP TABLE t0,t1;