forked from facebook/mysql-5.6
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Force manual compaction through drop_index_thread to remove dropped i…
…ndex. Summary: We now use manual compactions to compact away indexes which were dropped. This is done in the drop_index_thread. The eliminating of rows from drop indexes is done in the compaction filter which is called when manual compaction is done on the range covering the dropped index. @update-submodule: rocksdb Differential Revision: https://reviews.facebook.net/D52449
- Loading branch information
Showing
46 changed files
with
396 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
DROP TABLE IF EXISTS t1; | ||
DROP TABLE IF EXISTS t2; | ||
DROP TABLE IF EXISTS t3; | ||
DROP TABLE IF EXISTS t4; | ||
DROP TABLE IF EXISTS t5; | ||
set global rocksdb_compact_cf = 'cf1'; | ||
set global rocksdb_compact_cf = 'rev:cf2'; | ||
set global rocksdb_signal_drop_index_thread = 1; | ||
CREATE TABLE t1 ( | ||
a int not null, | ||
b int not null, | ||
primary key (a,b) comment 'cf1', | ||
key (b) comment 'rev:cf2' | ||
) ENGINE=RocksDB; | ||
CREATE TABLE t2 ( | ||
a int not null, | ||
b int not null, | ||
primary key (a,b) comment 'cf1', | ||
key (b) comment 'rev:cf2' | ||
) ENGINE=RocksDB; | ||
CREATE TABLE t3 ( | ||
a int not null, | ||
b int not null, | ||
primary key (a,b) comment 'cf1', | ||
key (b) comment 'rev:cf2' | ||
) ENGINE=RocksDB; | ||
CREATE TABLE t4 ( | ||
a int not null, | ||
b int not null, | ||
primary key (a,b) comment 'cf1', | ||
key (b) comment 'rev:cf2' | ||
) ENGINE=RocksDB; | ||
DELETE FROM t1; | ||
DELETE FROM t2; | ||
DELETE FROM t3; | ||
DELETE FROM t4; | ||
DELETE FROM t1; | ||
DELETE FROM t4; | ||
DELETE FROM t1; | ||
DELETE FROM t4; | ||
CREATE TABLE t5 ( | ||
a int not null, | ||
b int not null, | ||
primary key (a,b) comment 'cf1', | ||
key (b) comment 'rev:cf2' | ||
) ENGINE=RocksDB; | ||
DELETE FROM t5; | ||
drop table t1; | ||
drop table t2; | ||
drop table t3; | ||
drop table t4; | ||
drop table t5; | ||
Compacted |
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
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
Oops, something went wrong.