summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/innodb_gis/t/rtree_purge.test
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 18:00:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 18:00:34 +0000
commit3f619478f796eddbba6e39502fe941b285dd97b1 (patch)
treee2c7b5777f728320e5b5542b6213fd3591ba51e2 /mysql-test/suite/innodb_gis/t/rtree_purge.test
parentInitial commit. (diff)
downloadmariadb-upstream.tar.xz
mariadb-upstream.zip
Adding upstream version 1:10.11.6.upstream/1%10.11.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'mysql-test/suite/innodb_gis/t/rtree_purge.test')
-rw-r--r--mysql-test/suite/innodb_gis/t/rtree_purge.test28
1 files changed, 28 insertions, 0 deletions
diff --git a/mysql-test/suite/innodb_gis/t/rtree_purge.test b/mysql-test/suite/innodb_gis/t/rtree_purge.test
new file mode 100644
index 00000000..cab86aa6
--- /dev/null
+++ b/mysql-test/suite/innodb_gis/t/rtree_purge.test
@@ -0,0 +1,28 @@
+# This test case will test R-tree purge.
+
+--source include/innodb_page_size.inc
+--source include/have_sequence.inc
+--source include/not_valgrind.inc
+# This test often times out with MSAN
+--source include/not_msan.inc
+
+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 select @p,@p from seq_1_to_130;
+delete from t;
+commit;
+dec $n;
+}
+--enable_query_log
+
+--source ../../innodb/include/wait_all_purged.inc
+
+# Clean up.
+drop table t;