Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
e7efc793
Commit
e7efc793
authored
Apr 09, 2018
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make rocksdb.information_schema test stable
parent
34ff2967
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
storage/rocksdb/mysql-test/rocksdb/r/information_schema.result
...ge/rocksdb/mysql-test/rocksdb/r/information_schema.result
+3
-4
storage/rocksdb/mysql-test/rocksdb/t/information_schema.test
storage/rocksdb/mysql-test/rocksdb/t/information_schema.test
+2
-2
No files found.
storage/rocksdb/mysql-test/rocksdb/r/information_schema.result
View file @
e7efc793
...
...
@@ -4,15 +4,14 @@ DROP TABLE IF EXISTS t3;
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK=1;
create table t1 (a int) engine=rocksdb;
drop table t1;
select * from INFORMATION_SCHEMA.ROCKSDB_GLOBAL_INFO;
select * from INFORMATION_SCHEMA.ROCKSDB_GLOBAL_INFO
where type<>'DDL_DROP_INDEX_ONGOING'
;
TYPE NAME VALUE
MAX_INDEX_ID MAX_INDEX_ID max_index_id
CF_FLAGS 0 default [0]
CF_FLAGS 1 __system__ [0]
DDL_DROP_INDEX_ONGOING cf_id:0,index_id:max_index_id
select count(*) from INFORMATION_SCHEMA.ROCKSDB_GLOBAL_INFO;
select count(*) from INFORMATION_SCHEMA.ROCKSDB_GLOBAL_INFO where type<>'DDL_DROP_INDEX_ONGOING';
count(*)
4
3
SET GLOBAL ROCKSDB_PAUSE_BACKGROUND_WORK=0;
select VALUE into @keysIn from INFORMATION_SCHEMA.ROCKSDB_COMPACTION_STATS where CF_NAME = 'default' and LEVEL = 'Sum' and TYPE = 'KeyIn';
CREATE TABLE t1 (i1 INT, i2 INT, PRIMARY KEY (i1)) ENGINE = ROCKSDB;
...
...
storage/rocksdb/mysql-test/rocksdb/t/information_schema.test
View file @
e7efc793
...
...
@@ -19,8 +19,8 @@ drop table t1;
--
let
$max_index_id
=
query_get_value
(
SELECT
*
from
INFORMATION_SCHEMA
.
ROCKSDB_GLOBAL_INFO
where
type
=
'MAX_INDEX_ID'
,
VALUE
,
1
)
--
replace_result
$max_index_id
max_index_id
select
*
from
INFORMATION_SCHEMA
.
ROCKSDB_GLOBAL_INFO
;
select
count
(
*
)
from
INFORMATION_SCHEMA
.
ROCKSDB_GLOBAL_INFO
;
select
*
from
INFORMATION_SCHEMA
.
ROCKSDB_GLOBAL_INFO
where
type
<>
'DDL_DROP_INDEX_ONGOING'
;
select
count
(
*
)
from
INFORMATION_SCHEMA
.
ROCKSDB_GLOBAL_INFO
where
type
<>
'DDL_DROP_INDEX_ONGOING'
;
SET
GLOBAL
ROCKSDB_PAUSE_BACKGROUND_WORK
=
0
;
select
VALUE
into
@
keysIn
from
INFORMATION_SCHEMA
.
ROCKSDB_COMPACTION_STATS
where
CF_NAME
=
'default'
and
LEVEL
=
'Sum'
and
TYPE
=
'KeyIn'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment