mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
4c16ec3e77
In any test that uses wait_all_purged.inc, ensure that InnoDB tables
will be created without persistent statistics.
This is a follow-up to commit cd04673a17
after a similar failure was observed in the innodb_zip.blob test.
19 lines
788 B
Text
19 lines
788 B
Text
SET @save_debug=@@GLOBAL.INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG;
|
|
SET @save_scrub=@@GLOBAL.INNODB_IMMEDIATE_SCRUB_DATA_UNCOMPRESSED;
|
|
SET GLOBAL INNODB_IMMEDIATE_SCRUB_DATA_UNCOMPRESSED=1;
|
|
SET GLOBAL INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG=2;
|
|
CREATE TABLE t1(f1 INT AUTO_INCREMENT PRIMARY KEY,
|
|
f2 VARCHAR(256) GENERATED ALWAYS as('repairman'),
|
|
INDEX idx(f2))ENGINE= InnoDB STATS_PERSISTENT=0;
|
|
INSERT INTO t1(f1) SELECT seq FROM seq_1_to_50;
|
|
FLUSH TABLE t1 FOR EXPORT;
|
|
FOUND 108 /repairman/ in t1.ibd
|
|
UNLOCK TABLES;
|
|
ALTER TABLE t1 DROP INDEX idx;
|
|
InnoDB 0 transactions not purged
|
|
FLUSH TABLE t1 FOR EXPORT;
|
|
NOT FOUND /repairman/ in t1.ibd
|
|
UNLOCK TABLES;
|
|
DROP TABLE t1;
|
|
SET GLOBAL INNODB_LIMIT_OPTIMISTIC_INSERT_DEBUG=@save_debug;
|
|
SET GLOBAL INNODB_IMMEDIATE_SCRUB_DATA_UNCOMPRESSED=@save_scrub;
|