mirror of
https://github.com/MariaDB/server.git
synced 2025-01-30 18:41:56 +01:00
14 lines
505 B
Text
14 lines
505 B
Text
|
SET @saved_frequency = @@GLOBAL.innodb_purge_rseg_truncate_frequency;
|
||
|
SET GLOBAL innodb_purge_rseg_truncate_frequency = 1;
|
||
|
CREATE TABLE t1 (g MULTIPOINT NOT NULL) ENGINE=InnoDB;
|
||
|
INSERT INTO t1 VALUES ('');
|
||
|
connect purge_control,localhost,root;
|
||
|
START TRANSACTION WITH CONSISTENT SNAPSHOT;
|
||
|
connection default;
|
||
|
DELETE FROM t1;
|
||
|
ALTER TABLE t1 ADD SPATIAL INDEX (g);
|
||
|
disconnect purge_control;
|
||
|
InnoDB 0 transactions not purged
|
||
|
DROP TABLE t1;
|
||
|
SET GLOBAL innodb_purge_rseg_truncate_frequency = @saved_frequency;
|