Skip to content

Commit

Permalink
Force manual compaction through drop_index_thread to remove dropped i…
Browse files Browse the repository at this point in the history
…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
rven1 authored and inikep committed Mar 28, 2023
1 parent 1b42fcb commit b7e8dde
Show file tree
Hide file tree
Showing 46 changed files with 396 additions and 86 deletions.
8 changes: 0 additions & 8 deletions mysql-test/suite/rocksdb/r/drop_table.result
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ drop table t5;
set global rocksdb_compact_cf = 'cf1';
set global rocksdb_compact_cf = 'rev:cf2';
set global rocksdb_signal_drop_index_thread = 1;
Compacted+ 0: 1000
Compacted+ 1: 1000
Compacted+ 1: 1000
Compacted+ 1: 1000
Compacted+ 1: 50000
Compacted+ 1: 50000
Compacted+ 1: 1000
Compacted+ 1: 1000
Begin filtering dropped index+ 0
Begin filtering dropped index+ 1
Begin filtering dropped index+ 1
Expand Down
53 changes: 53 additions & 0 deletions mysql-test/suite/rocksdb/r/drop_table2.result
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
20 changes: 10 additions & 10 deletions mysql-test/suite/rocksdb/r/index.result
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ KEY (a)
) ENGINE=rocksdb;
SHOW KEYS IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 a 1 a A 500 NULL NULL YES BTREE
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 a 1 a A # NULL NULL YES BTREE
DROP TABLE t1;
CREATE TABLE t1 (a INT,
b CHAR(8),
Expand All @@ -15,9 +15,9 @@ KEY a_b (a,b) COMMENT 'a_b index'
) ENGINE=rocksdb;
SHOW KEYS IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 a_b 1 a A 250 NULL NULL YES BTREE a_b index
t1 1 a_b 2 b A 500 NULL NULL YES BTREE a_b index
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 a_b 1 a A # NULL NULL YES BTREE a_b index
t1 1 a_b 2 b A # NULL NULL YES BTREE a_b index
DROP TABLE t1;
CREATE TABLE t1 (a INT,
b CHAR(8),
Expand All @@ -27,16 +27,16 @@ KEY (b)
) ENGINE=rocksdb;
SHOW KEYS IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 a 1 a A 500 NULL NULL YES BTREE
t1 1 b 1 b A 500 NULL NULL YES BTREE
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 a 1 a A # NULL NULL YES BTREE
t1 1 b 1 b A # NULL NULL YES BTREE
DROP TABLE t1;
CREATE TABLE t1 (a INT, b CHAR(8), pk INT AUTO_INCREMENT PRIMARY KEY) ENGINE=rocksdb;
INSERT INTO t1 (a,b) VALUES (100,'z');
ALTER TABLE t1 ADD KEY (a) COMMENT 'simple index on a';
SHOW INDEX FROM t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 a 1 a A 500 NULL NULL YES BTREE simple index on a
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 a 1 a A # NULL NULL YES BTREE simple index on a
ALTER TABLE t1 DROP KEY a;
DROP TABLE t1;
20 changes: 10 additions & 10 deletions mysql-test/suite/rocksdb/r/index_key_block_size.result
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ KEY (a) KEY_BLOCK_SIZE=8
) ENGINE=rocksdb;
SHOW KEYS IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 a 1 a A 500 NULL NULL YES BTREE
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 a 1 a A # NULL NULL YES BTREE
DROP TABLE t1;
CREATE TABLE t1 (a INT,
b CHAR(8),
Expand All @@ -16,16 +16,16 @@ KEY ind1(b ASC) KEY_BLOCK_SIZE=0
) ENGINE=rocksdb;
SHOW INDEX IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 ind1 1 b A 500 NULL NULL YES BTREE
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 ind1 1 b A # NULL NULL YES BTREE
DROP TABLE t1;
CREATE TABLE t1 (a INT,
b CHAR(8),
PRIMARY KEY ind2(b(1) DESC) KEY_BLOCK_SIZE=32768 COMMENT 'big key_block_size value'
) ENGINE=rocksdb;
SHOW INDEX IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 b A 1000 1 NULL BTREE big key_block_size value
t1 0 PRIMARY 1 b A # 1 NULL BTREE big key_block_size value
DROP TABLE t1;
CREATE TABLE t1 (a INT,
b CHAR(8),
Expand All @@ -34,9 +34,9 @@ KEY a_b(a,b) KEY_BLOCK_SIZE=8192
) ENGINE=rocksdb;
SHOW INDEX IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 a_b 1 a A 250 NULL NULL YES BTREE
t1 1 a_b 2 b A 500 NULL NULL YES BTREE
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 a_b 1 a A # NULL NULL YES BTREE
t1 1 a_b 2 b A # NULL NULL YES BTREE
DROP TABLE t1;
CREATE TABLE t1 (a INT,
b CHAR(8),
Expand All @@ -46,6 +46,6 @@ INSERT INTO t1 (a,b) VALUES (100,'z');
ALTER TABLE t1 ADD KEY(a) KEY_BLOCK_SIZE 8192;
SHOW INDEX FROM t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 b A 1000 NULL NULL BTREE
t1 1 a 1 a A 500 NULL NULL YES BTREE
t1 0 PRIMARY 1 b A # NULL NULL BTREE
t1 1 a 1 a A # NULL NULL YES BTREE
DROP TABLE t1;
14 changes: 7 additions & 7 deletions mysql-test/suite/rocksdb/r/index_primary.result
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ b CHAR(8)
) ENGINE=rocksdb;
SHOW KEYS IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 a A 1000 NULL NULL BTREE
t1 0 PRIMARY 1 a A # NULL NULL BTREE
INSERT INTO t1 (a,b) VALUES (1,'a'),(2,'b');
INSERT INTO t1 (a,b) VALUES (1,'c');
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
Expand All @@ -19,8 +19,8 @@ PRIMARY KEY (a,b)
) ENGINE=rocksdb;
SHOW INDEX IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 a A 500 NULL NULL BTREE
t1 0 PRIMARY 2 b A 1000 NULL NULL BTREE
t1 0 PRIMARY 1 a A # NULL NULL BTREE
t1 0 PRIMARY 2 b A # NULL NULL BTREE
INSERT INTO t1 (a,b) VALUES (1,'a'),(1,'b'),(2,'a'),(2,'b');
INSERT INTO t1 (a,b) VALUES (1,'b');
ERROR 23000: Duplicate entry '1-b' for key 'PRIMARY'
Expand All @@ -31,22 +31,22 @@ KEY (b)
) ENGINE=rocksdb;
SHOW INDEX IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 a A 1000 NULL NULL BTREE
t1 1 b 1 b A 500 NULL NULL YES BTREE
t1 0 PRIMARY 1 a A # NULL NULL BTREE
t1 1 b 1 b A # NULL NULL YES BTREE
DROP TABLE t1;
CREATE TABLE t1 (a INT,
b CHAR(8) PRIMARY KEY
) ENGINE=rocksdb;
SHOW INDEX IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 b A 1000 NULL NULL BTREE
t1 0 PRIMARY 1 b A # NULL NULL BTREE
ALTER TABLE t1 DROP INDEX `PRIMARY`;
ERROR 42000: This table type requires a primary key
ALTER TABLE t1 ADD CONSTRAINT PRIMARY KEY pk (a);
ERROR 42000: Multiple primary key defined
SHOW KEYS IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 b A 1000 NULL NULL BTREE
t1 0 PRIMARY 1 b A # NULL NULL BTREE
ALTER TABLE t1 DROP PRIMARY KEY;
ERROR 42000: This table type requires a primary key
DROP TABLE t1;
20 changes: 10 additions & 10 deletions mysql-test/suite/rocksdb/r/index_type_btree.result
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ KEY USING BTREE (a)
) ENGINE=rocksdb;
SHOW KEYS IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 a 1 a A 500 NULL NULL YES BTREE
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 a 1 a A # NULL NULL YES BTREE
DROP TABLE t1;
CREATE TABLE t1 (a INT,
b CHAR(8),
Expand All @@ -15,9 +15,9 @@ KEY a_b USING BTREE (a,b) COMMENT 'a_b index'
) ENGINE=rocksdb;
SHOW KEYS IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 a_b 1 a A 250 NULL NULL YES BTREE a_b index
t1 1 a_b 2 b A 500 NULL NULL YES BTREE a_b index
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 a_b 1 a A # NULL NULL YES BTREE a_b index
t1 1 a_b 2 b A # NULL NULL YES BTREE a_b index
DROP TABLE t1;
CREATE TABLE t1 (a INT,
b CHAR(8),
Expand All @@ -27,16 +27,16 @@ KEY USING BTREE (b)
) ENGINE=rocksdb;
SHOW KEYS IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 a 1 a A 500 NULL NULL YES BTREE
t1 1 b 1 b A 500 NULL NULL YES BTREE
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 a 1 a A # NULL NULL YES BTREE
t1 1 b 1 b A # NULL NULL YES BTREE
DROP TABLE t1;
CREATE TABLE t1 (a INT, b CHAR(8), pk INT AUTO_INCREMENT PRIMARY KEY) ENGINE=rocksdb;
INSERT INTO t1 (a,b) VALUES (100,'z');
ALTER TABLE t1 ADD KEY (a) USING BTREE COMMENT 'simple index on a';
SHOW INDEX FROM t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 a 1 a A 500 NULL NULL YES BTREE simple index on a
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 a 1 a A # NULL NULL YES BTREE simple index on a
ALTER TABLE t1 DROP KEY a;
DROP TABLE t1;
20 changes: 10 additions & 10 deletions mysql-test/suite/rocksdb/r/index_type_hash.result
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ KEY USING HASH (a)
) ENGINE=rocksdb;
SHOW KEYS IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 a 1 a A 500 NULL NULL YES BTREE
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 a 1 a A # NULL NULL YES BTREE
DROP TABLE t1;
CREATE TABLE t1 (a INT,
b CHAR(8),
Expand All @@ -15,9 +15,9 @@ KEY a_b USING HASH (a,b) COMMENT 'a_b index'
) ENGINE=rocksdb;
SHOW KEYS IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 a_b 1 a A 250 NULL NULL YES BTREE a_b index
t1 1 a_b 2 b A 500 NULL NULL YES BTREE a_b index
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 a_b 1 a A # NULL NULL YES BTREE a_b index
t1 1 a_b 2 b A # NULL NULL YES BTREE a_b index
DROP TABLE t1;
CREATE TABLE t1 (a INT,
b CHAR(8),
Expand All @@ -27,16 +27,16 @@ KEY USING HASH (b)
) ENGINE=rocksdb;
SHOW KEYS IN t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 a 1 a A 500 NULL NULL YES BTREE
t1 1 b 1 b A 500 NULL NULL YES BTREE
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 a 1 a A # NULL NULL YES BTREE
t1 1 b 1 b A # NULL NULL YES BTREE
DROP TABLE t1;
CREATE TABLE t1 (a INT, b CHAR(8), pk INT AUTO_INCREMENT PRIMARY KEY) ENGINE=rocksdb;
INSERT INTO t1 (a,b) VALUES (100,'z');
ALTER TABLE t1 ADD KEY (a) USING HASH COMMENT 'simple index on a';
SHOW INDEX FROM t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1000 NULL NULL BTREE
t1 1 a 1 a A 500 NULL NULL YES BTREE simple index on a
t1 0 PRIMARY 1 pk A # NULL NULL BTREE
t1 1 a 1 a A # NULL NULL YES BTREE simple index on a
ALTER TABLE t1 DROP KEY a;
DROP TABLE t1;
8 changes: 7 additions & 1 deletion mysql-test/suite/rocksdb/r/rocksdb.result
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ drop table if exists t11,t12,t13,t14,t15,t16,t17,t18,t19,t20;
drop table if exists t21,t22,t23,t24,t25,t26,t27,t28,t29;
drop table if exists t30,t31,t32,t33,t34,t35,t36,t37,t38,t39;
drop table if exists t40,t41,t42,t43,t44,t45,t46,t47,t48,t49;
SET @ORIG_PAUSE_BACKGROUND_WORK = @@ROCKSDB_PAUSE_BACKGROUND_WORK;
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK = 1;
#
# Issue #1: Don't update indexes if index values have not changed
#
Expand Down Expand Up @@ -904,7 +906,7 @@ rocksdb_max_total_wal_size 0
rocksdb_no_block_cache OFF
rocksdb_override_cf_options
rocksdb_paranoid_checks ON
rocksdb_pause_background_work OFF
rocksdb_pause_background_work ON
rocksdb_perf_context_level 1
rocksdb_rate_limiter_bytes_per_sec 0
rocksdb_records_in_range 0
Expand Down Expand Up @@ -1314,6 +1316,9 @@ drop table t2;
create table t1 (i int primary key auto_increment) engine=RocksDB;
insert into t1 values (null);
insert into t1 values (null);
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK = @ORIG_PAUSE_BACKGROUND_WORK;
SET @ORIG_PAUSE_BACKGROUND_WORK = @@ROCKSDB_PAUSE_BACKGROUND_WORK;
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK = 1;
insert into t1 values (null);
select * from t1;
i
Expand Down Expand Up @@ -2167,3 +2172,4 @@ insert into t2
select concat('v-', 100 + A.a*100 + B.a), 12345 from t1 A, t1 B;
update t2 set a=concat('x-', a) where a between 'v-1002' and 'v-1004';
drop table t1,t2;
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK = @ORIG_PAUSE_BACKGROUND_WORK;
3 changes: 3 additions & 0 deletions mysql-test/suite/rocksdb/r/type_binary_indexes.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SET @ORIG_PAUSE_BACKGROUND_WORK = @@ROCKSDB_PAUSE_BACKGROUND_WORK;
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK = 1;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (b BINARY,
b20 BINARY(20) PRIMARY KEY,
Expand Down Expand Up @@ -75,3 +77,4 @@ HEX(SUBSTRING(v16,7,3))
723461
723461
DROP TABLE t1;
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK = @ORIG_PAUSE_BACKGROUND_WORK;
3 changes: 3 additions & 0 deletions mysql-test/suite/rocksdb/r/type_bit_indexes.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SET @ORIG_PAUSE_BACKGROUND_WORK = @@ROCKSDB_PAUSE_BACKGROUND_WORK;
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK = 1;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (
a BIT,
Expand Down Expand Up @@ -53,3 +55,4 @@ a+0
0
1
DROP TABLE t1;
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK = @ORIG_PAUSE_BACKGROUND_WORK;
3 changes: 3 additions & 0 deletions mysql-test/suite/rocksdb/r/type_blob_indexes.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SET @ORIG_PAUSE_BACKGROUND_WORK = @@ROCKSDB_PAUSE_BACKGROUND_WORK;
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK = 1;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (b BLOB <CUSTOM_COL_OPTIONS>,
t TINYBLOB <CUSTOM_COL_OPTIONS>,
Expand Down Expand Up @@ -150,3 +152,4 @@ id select_type table type possible_keys key key_len ref rows Extra
SELECT SUBSTRING(m,128) AS f FROM t1 IGNORE INDEX FOR ORDER BY (m) WHERE m = 'test1' ORDER BY f DESC;
f
DROP TABLE t1;
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK = @ORIG_PAUSE_BACKGROUND_WORK;
3 changes: 3 additions & 0 deletions mysql-test/suite/rocksdb/r/type_char_indexes.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SET @ORIG_PAUSE_BACKGROUND_WORK = @@ROCKSDB_PAUSE_BACKGROUND_WORK;
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK = 1;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (
c CHAR,
Expand Down Expand Up @@ -68,3 +70,4 @@ a char1 varchar1a varchar1b
b char3 varchar1a varchar1b
c char4 varchar3a varchar3b
DROP TABLE t1;
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK = @ORIG_PAUSE_BACKGROUND_WORK;
3 changes: 3 additions & 0 deletions mysql-test/suite/rocksdb/r/type_date_time_indexes.result
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
SET @ORIG_PAUSE_BACKGROUND_WORK = @@ROCKSDB_PAUSE_BACKGROUND_WORK;
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK = 1;
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (
d DATE,
Expand Down Expand Up @@ -114,3 +116,4 @@ y COUNT(*)
2001 1
2012 1
DROP TABLE t1;
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK = @ORIG_PAUSE_BACKGROUND_WORK;
Loading

0 comments on commit b7e8dde

Please sign in to comment.