mirror of
https://github.com/MariaDB/server.git
synced 2025-12-01 17:39:21 +03:00
trx_t::commit_in_memory(): Invoke mod_tables.clear(). trx_free_at_shutdown(): Invoke mod_tables.clear() for transactions that are discarded on shutdown. Everywhere else, assert mod_tables.empty() on freed transaction objects.
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
#
|
|
# MDEV-24715 Assertion !node->table->skip_alter_undo
|
|
#
|
|
CREATE TABLE t (a INT UNIQUE) ENGINE=InnoDB
|
|
REPLACE SELECT 1 AS a, 2 AS b UNION SELECT 1 AS a, 3 AS c;
|
|
SELECT * FROM t;
|
|
a b
|
|
1 3
|
|
DROP TABLE t;
|
|
CREATE TEMPORARY TABLE t (a INT UNIQUE) ENGINE=InnoDB
|
|
REPLACE SELECT 1 AS a, 2 AS b UNION SELECT 1 AS a, 3 AS c;
|
|
SELECT * FROM t;
|
|
a b
|
|
1 3
|
|
DROP TEMPORARY TABLE t;
|
|
#
|
|
# MDEV-24720 AHI removal during bulk index rollback
|
|
#
|
|
SET @save_ahi = @@global.innodb_adaptive_hash_index;
|
|
SET GLOBAL innodb_adaptive_hash_index = 1;
|
|
CREATE TABLE t1(f1 INT NOT NULL)ENGINE=InnoDB;
|
|
BEGIN;
|
|
INSERT INTO t1 SELECT * FROM seq_1_to_65536;
|
|
ROLLBACK;
|
|
CHECK TABLE t1;
|
|
Table Op Msg_type Msg_text
|
|
test.t1 check status OK
|
|
#
|
|
# MDEV-24832 Root page AHI Removal fails fails during
|
|
# bulk index rollback
|
|
#
|
|
BEGIN;
|
|
INSERT INTO t1 SELECT * FROM seq_1_to_500;
|
|
ROLLBACK;
|
|
DROP TABLE t1;
|
|
SET GLOBAL innodb_adaptive_hash_index = @save_ahi;
|
|
#
|
|
# MDEV-24951 Assertion m.first->second.valid(trx->undo_no) failed
|
|
# in trx_undo_report_row_operation
|
|
#
|
|
CREATE TEMPORARY TABLE t (c INT) ENGINE=InnoDB;
|
|
CREATE TEMPORARY TABLE t2 (c INT) ENGINE=InnoDB;
|
|
SET tx_read_only=1;
|
|
BEGIN;
|
|
INSERT INTO t2 VALUES(0);
|
|
INSERT INTO t VALUES(0);
|
|
COMMIT;
|
|
INSERT INTO t VALUES(0);
|
|
DROP TEMPORARY TABLE t,t2;
|
|
ERROR 25006: Cannot execute statement in a READ ONLY transaction
|
|
SET tx_read_only=0;
|
|
DROP TEMPORARY TABLE t,t2;
|