1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-32050 fixup: Stabilize tests

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.
This commit is contained in:
Marko Mäkelä
2023-11-21 12:42:00 +02:00
parent 9c5600adde
commit 4c16ec3e77
76 changed files with 207 additions and 47 deletions

View File

@ -1,4 +1,4 @@
CREATE TABLE t1 (g MULTIPOINT NOT NULL) ENGINE=InnoDB;
CREATE TABLE t1 (g MULTIPOINT NOT NULL) ENGINE=InnoDB STATS_PERSISTENT=0;
INSERT INTO t1 VALUES ('');
connect purge_control,localhost,root;
START TRANSACTION WITH CONSISTENT SNAPSHOT;

View File

@ -1,4 +1,6 @@
create table t1 (c1 int, c2 geometry not null, spatial index (c2))engine=innodb ROW_FORMAT=COMPRESSED;
create table t1 (c1 int, c2 geometry not null, spatial index (c2))engine=innodb ROW_FORMAT=COMPRESSED STATS_PERSISTENT=0;
lock tables t1 write;
start transaction;
insert into t1 values(1, Point(1,1));
insert into t1 values(2, Point(2,2));
insert into t1 values(3, Point(3,3));
@ -18,6 +20,8 @@ insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
insert into t1 select * from t1;
commit;
unlock tables;
start transaction;
insert into t1 select * from t1;
select count(*) from t1;

View File

@ -1,5 +1,5 @@
create table t (
b point not null,d point not null, spatial key (d),spatial key (b)
) engine=innodb;
) engine=innodb stats_persistent=0;
InnoDB 0 transactions not purged
drop table t;

File diff suppressed because one or more lines are too long