Commit ba03577a authored by Sergei Petrunia's avatar Sergei Petrunia

Post-merge fixes: make rocksdb.bulk_load_unsorted_rev to work.

parent 669e910a
--source include/have_partition.inc
--source include/count_sessions.inc --source include/count_sessions.inc
SET rocksdb_bulk_load_size=3; SET rocksdb_bulk_load_size=3;
......
...@@ -57,6 +57,7 @@ CREATE TABLE t2(a INT, b INT, PRIMARY KEY(b) COMMENT "rev:cf1") ...@@ -57,6 +57,7 @@ CREATE TABLE t2(a INT, b INT, PRIMARY KEY(b) COMMENT "rev:cf1")
ENGINE=ROCKSDB; ENGINE=ROCKSDB;
CREATE TABLE t3(a INT, b INT, PRIMARY KEY(a) COMMENT "rev:cf1") CREATE TABLE t3(a INT, b INT, PRIMARY KEY(a) COMMENT "rev:cf1")
ENGINE=ROCKSDB PARTITION BY KEY() PARTITIONS 4; ENGINE=ROCKSDB PARTITION BY KEY() PARTITIONS 4;
connect other,localhost,root,,;
set session transaction isolation level repeatable read; set session transaction isolation level repeatable read;
select * from information_schema.rocksdb_dbstats where stat_type='DB_NUM_SNAPSHOTS'; select * from information_schema.rocksdb_dbstats where stat_type='DB_NUM_SNAPSHOTS';
STAT_TYPE VALUE STAT_TYPE VALUE
...@@ -65,6 +66,7 @@ start transaction with consistent snapshot; ...@@ -65,6 +66,7 @@ start transaction with consistent snapshot;
select * from information_schema.rocksdb_dbstats where stat_type='DB_NUM_SNAPSHOTS'; select * from information_schema.rocksdb_dbstats where stat_type='DB_NUM_SNAPSHOTS';
STAT_TYPE VALUE STAT_TYPE VALUE
DB_NUM_SNAPSHOTS 1 DB_NUM_SNAPSHOTS 1
connection default;
set rocksdb_bulk_load=1; set rocksdb_bulk_load=1;
set rocksdb_bulk_load_size=100000; set rocksdb_bulk_load_size=100000;
LOAD DATA INFILE <input_file> INTO TABLE t1; LOAD DATA INFILE <input_file> INTO TABLE t1;
...@@ -114,4 +116,5 @@ a b ...@@ -114,4 +116,5 @@ a b
-4999998 5000000 -4999998 5000000
-4999996 4999998 -4999996 4999998
-4999994 4999996 -4999994 4999996
disconnect other;
DROP TABLE t1, t2, t3; DROP TABLE t1, t2, t3;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment