mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-24861 Assertion `trx->rsegs.m_redo.rseg' failed in innodb_prepare_commit_versioned
trx_t::commit_tables(): Ensure that mod_tables will be empty.
This was broken in commit b08448de64
where the query cache invalidation was moved from lock_release().
This commit is contained in:
@@ -92,3 +92,19 @@ ALTER TABLE t1 FORCE;
|
||||
--error ER_TRUNCATE_ILLEGAL_FK
|
||||
TRUNCATE TABLE t1;
|
||||
DROP TABLE t2, t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-24861 Assertion `trx->rsegs.m_redo.rseg' failed
|
||||
--echo # in innodb_prepare_commit_versioned
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (id INT PRIMARY KEY, f TEXT UNIQUE,
|
||||
s BIGINT UNSIGNED AS ROW START, e BIGINT UNSIGNED AS ROW END,
|
||||
PERIOD FOR SYSTEM_TIME(s,e))
|
||||
ENGINE=InnoDB WITH SYSTEM VERSIONING;
|
||||
CREATE TABLE t2 (id INT PRIMARY KEY) ENGINE=InnoDB;
|
||||
ALTER TABLE t1 FORCE;
|
||||
TRUNCATE TABLE t2;
|
||||
DROP TABLE t1, t2;
|
||||
|
||||
--echo # End of 10.6 tests
|
||||
|
Reference in New Issue
Block a user