mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +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.
34 lines
883 B
Text
34 lines
883 B
Text
--source include/have_innodb.inc
|
|
--source include/maybe_debug.inc
|
|
if ($have_debug) {
|
|
--source include/have_debug_sync.inc
|
|
}
|
|
|
|
--source include/wait_all_purged.inc
|
|
|
|
--echo #
|
|
--echo # MDEV-17793 Crash in purge after instant DROP and emptying the table
|
|
--echo #
|
|
|
|
connect (prevent_purge,localhost,root);
|
|
START TRANSACTION WITH CONSISTENT SNAPSHOT;
|
|
|
|
connection default;
|
|
CREATE TABLE t1 (f1 INT, f2 INT) ENGINE=InnoDB STATS_PERSISTENT=0;
|
|
INSERT INTO t1 () VALUES ();
|
|
ALTER TABLE t1 DROP f2, ADD COLUMN f2 INT;
|
|
ALTER TABLE t1 DROP f1;
|
|
DELETE FROM t1;
|
|
|
|
connection prevent_purge;
|
|
COMMIT;
|
|
START TRANSACTION WITH CONSISTENT SNAPSHOT;
|
|
connection default;
|
|
|
|
ALTER TABLE t1 ADD COLUMN extra TINYINT UNSIGNED NOT NULL DEFAULT 42;
|
|
SET GLOBAL innodb_max_purge_lag_wait=1;
|
|
ALTER TABLE t1 DROP extra;
|
|
disconnect prevent_purge;
|
|
let $wait_all_purged= 0;
|
|
--source include/wait_all_purged.inc
|
|
DROP TABLE t1;
|