2017-10-12 16:21:21 +03:00
|
|
|
# This test case will test R-tree purge.
|
|
|
|
|
2018-01-04 19:16:59 +02:00
|
|
|
--source include/innodb_page_size.inc
|
2021-02-07 14:31:48 +02:00
|
|
|
--source include/have_sequence.inc
|
2017-10-12 16:21:21 +03:00
|
|
|
--source include/not_valgrind.inc
|
|
|
|
|
2018-01-04 19:16:59 +02:00
|
|
|
SET @saved_frequency = @@GLOBAL.innodb_purge_rseg_truncate_frequency;
|
|
|
|
SET GLOBAL innodb_purge_rseg_truncate_frequency = 1;
|
2017-10-12 16:21:21 +03:00
|
|
|
|
|
|
|
create table t (
|
2018-01-04 19:16:59 +02:00
|
|
|
b point not null,d point not null, spatial key (d),spatial key (b)
|
2017-10-12 16:21:21 +03:00
|
|
|
) engine=innodb;
|
|
|
|
|
2018-01-04 19:16:59 +02:00
|
|
|
--disable_query_log
|
|
|
|
set @p=point(1,1);
|
|
|
|
let $n=200;
|
|
|
|
while ($n) {
|
|
|
|
begin;
|
2021-02-07 14:31:48 +02:00
|
|
|
insert into t select @p,@p from seq_1_to_130;
|
2018-01-04 19:16:59 +02:00
|
|
|
delete from t;
|
|
|
|
commit;
|
|
|
|
dec $n;
|
|
|
|
}
|
|
|
|
--enable_query_log
|
2017-10-12 16:21:21 +03:00
|
|
|
|
2018-01-04 19:16:59 +02:00
|
|
|
--source ../../innodb/include/wait_all_purged.inc
|
2017-10-12 16:21:21 +03:00
|
|
|
|
|
|
|
# Clean up.
|
|
|
|
drop table t;
|
2018-01-04 19:16:59 +02:00
|
|
|
SET GLOBAL innodb_purge_rseg_truncate_frequency = @saved_frequency;
|