mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-26753 Assertion state == TRX_STATE_PREPARED ||... failed
dict_stats_save(): Do not attempt to commit an already committed transaction.
This commit is contained in:
@ -15,3 +15,17 @@ select * from t1;
|
||||
drop table t1;
|
||||
rename table mysql.table_stats_save to mysql.table_stats;
|
||||
flush tables;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-26753 Assertion state == TRX_STATE_PREPARED ||... failed
|
||||
--echo #
|
||||
CREATE TABLE t1(a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||
XA START 'test';
|
||||
SELECT COUNT(*)>0 FROM mysql.innodb_index_stats LOCK IN SHARE MODE;
|
||||
INSERT INTO t1 VALUES (1),(2);
|
||||
UPDATE mysql.innodb_table_stats SET last_update=NULL WHERE table_name='t1';
|
||||
XA END 'test';
|
||||
XA ROLLBACK 'test';
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo # End of 10.6 tests
|
||||
|
Reference in New Issue
Block a user