mirror of
https://github.com/MariaDB/server.git
synced 2025-07-21 21:22:27 +03:00
Fix and enable some of the tests; some remain disabled. The tests innodb_gis.rtree_old and innodb_gis.row_format duplicated some versions of the test main.gis-rtree. Instead of duplicating, source that test, in a new test innodb_gis.innodb_gis_rtree. Introduce innodb_row_format.combinations. Due to this, ROW_FORMAT=COMPRESSED will not be covered in some tests where it is covered in MySQL 5.7.
33 lines
777 B
Plaintext
33 lines
777 B
Plaintext
# This test case will test R-tree purge.
|
|
|
|
--source include/innodb_page_size.inc
|
|
# Valgrind takes too much time on PB2 even in the --big-test runs.
|
|
--source include/not_valgrind.inc
|
|
|
|
SET @saved_frequency = @@GLOBAL.innodb_purge_rseg_truncate_frequency;
|
|
SET GLOBAL innodb_purge_rseg_truncate_frequency = 1;
|
|
|
|
create table t (
|
|
b point not null,d point not null, spatial key (d),spatial key (b)
|
|
) engine=innodb;
|
|
|
|
--disable_query_log
|
|
set @p=point(1,1);
|
|
let $n=200;
|
|
while ($n) {
|
|
begin;
|
|
insert into t values(@p,@p),(@p,@p);
|
|
insert into t select @p,@p
|
|
from t a,t b,t c,t d,t e,t f,t g;
|
|
delete from t;
|
|
commit;
|
|
dec $n;
|
|
}
|
|
--enable_query_log
|
|
|
|
--source ../../innodb/include/wait_all_purged.inc
|
|
|
|
# Clean up.
|
|
drop table t;
|
|
SET GLOBAL innodb_purge_rseg_truncate_frequency = @saved_frequency;
|