Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
179 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--source include/have_innodb.inc | ||
|
||
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; | ||
--source ../../innodb/include/wait_all_purged.inc | ||
DROP TABLE t1; | ||
SET GLOBAL innodb_purge_rseg_truncate_frequency = @saved_frequency; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters