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
9fe1e83d
Commit
9fe1e83d
authored
Feb 08, 2019
by
Igor Babaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-16188 Post merge fixes: more for TokuDB
parent
651347b6
Changes
19
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
58 additions
and
42 deletions
+58
-42
mysql-test/suite/heap/heap_btree.result
mysql-test/suite/heap/heap_btree.result
+1
-1
mysql-test/suite/heap/heap_btree.test
mysql-test/suite/heap/heap_btree.test
+1
-0
mysql-test/suite/heap/heap_hash.result
mysql-test/suite/heap/heap_hash.result
+3
-2
mysql-test/suite/heap/heap_hash.test
mysql-test/suite/heap/heap_hash.test
+2
-2
mysql-test/suite/innodb/r/mdev-117.result
mysql-test/suite/innodb/r/mdev-117.result
+0
-2
mysql-test/suite/sys_vars/r/sysvars_server_notembedded,32bit.rdiff
...t/suite/sys_vars/r/sysvars_server_notembedded,32bit.rdiff
+9
-0
sql/sql_explain.cc
sql/sql_explain.cc
+2
-1
storage/sequence/mysql-test/sequence/simple.result
storage/sequence/mysql-test/sequence/simple.result
+2
-2
storage/sequence/mysql-test/sequence/simple.test
storage/sequence/mysql-test/sequence/simple.test
+1
-1
storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_with_lock_sps.result
...mysql-test/tokudb_alter_table/r/hcad_with_lock_sps.result
+6
-6
storage/tokudb/mysql-test/tokudb_bugs/r/2970.result
storage/tokudb/mysql-test/tokudb_bugs/r/2970.result
+1
-1
storage/tokudb/mysql-test/tokudb_bugs/r/5733_innodb.result
storage/tokudb/mysql-test/tokudb_bugs/r/5733_innodb.result
+4
-4
storage/tokudb/mysql-test/tokudb_bugs/r/5733_tokudb.result
storage/tokudb/mysql-test/tokudb_bugs/r/5733_tokudb.result
+1
-1
storage/tokudb/mysql-test/tokudb_bugs/r/bulk_fetch.result
storage/tokudb/mysql-test/tokudb_bugs/r/bulk_fetch.result
+3
-5
storage/tokudb/mysql-test/tokudb_bugs/r/index_read.result
storage/tokudb/mysql-test/tokudb_bugs/r/index_read.result
+2
-4
storage/tokudb/mysql-test/tokudb_bugs/t/bulk_fetch.test
storage/tokudb/mysql-test/tokudb_bugs/t/bulk_fetch.test
+2
-2
storage/tokudb/mysql-test/tokudb_bugs/t/index_read.test
storage/tokudb/mysql-test/tokudb_bugs/t/index_read.test
+2
-2
storage/tokudb/mysql-test/tokudb_mariadb/r/clustering.result
storage/tokudb/mysql-test/tokudb_mariadb/r/clustering.result
+13
-4
storage/tokudb/mysql-test/tokudb_mariadb/t/clustering.test
storage/tokudb/mysql-test/tokudb_mariadb/t/clustering.test
+3
-2
No files found.
mysql-test/suite/heap/heap_btree.result
View file @
9fe1e83d
...
...
@@ -48,8 +48,8 @@ a
alter table t1 add unique uniq_id using BTREE (a);
select * from t1 where a > 736494;
a
869751
802616
869751
select * from t1 where a = 736494;
a
736494
...
...
mysql-test/suite/heap/heap_btree.test
View file @
9fe1e83d
...
...
@@ -37,6 +37,7 @@ create table t1 (a int not null) engine=heap;
insert
into
t1
values
(
869751
),(
736494
),(
226312
),(
802616
),(
728912
);
select
*
from
t1
where
a
>
736494
;
alter
table
t1
add
unique
uniq_id
using
BTREE
(
a
);
--
sorted_result
select
*
from
t1
where
a
>
736494
;
select
*
from
t1
where
a
=
736494
;
select
*
from
t1
where
a
=
869751
or
a
=
736494
;
...
...
mysql-test/suite/heap/heap_hash.result
View file @
9fe1e83d
...
...
@@ -426,13 +426,14 @@ select 0+a from t1 where a=869751 or a=736494;
explain select 0+a from t1 where a=869751 or a=736494;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 range uniq_id uniq_id 8 NULL 2 Using where
select 0+a from t1 where a in (869751,736494,226312,802616);
select 0+a from t1 where a in (869751,736494,226312,802616
,728912
);
0+a
869751
736494
226312
802616
explain select 0+a from t1 where a in (869751,736494,226312,802616);
728912
explain select 0+a from t1 where a in (869751,736494,226312,802616,728912);
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL uniq_id NULL NULL NULL 5 Using where
drop table t1;
...
...
mysql-test/suite/heap/heap_hash.test
View file @
9fe1e83d
...
...
@@ -313,8 +313,8 @@ select 0+a from t1 where a = 736494;
explain
select
0
+
a
from
t1
where
a
=
736494
;
select
0
+
a
from
t1
where
a
=
869751
or
a
=
736494
;
explain
select
0
+
a
from
t1
where
a
=
869751
or
a
=
736494
;
select
0
+
a
from
t1
where
a
in
(
869751
,
736494
,
226312
,
802616
);
explain
select
0
+
a
from
t1
where
a
in
(
869751
,
736494
,
226312
,
802616
);
select
0
+
a
from
t1
where
a
in
(
869751
,
736494
,
226312
,
802616
,
728912
);
explain
select
0
+
a
from
t1
where
a
in
(
869751
,
736494
,
226312
,
802616
,
728912
);
drop
table
t1
;
--
echo
End
of
5.3
tests
...
...
mysql-test/suite/innodb/r/mdev-117.result
View file @
9fe1e83d
...
...
@@ -12,8 +12,6 @@ DELETE IGNORE FROM t1;;
connection con1;
DELETE FROM t1 WHERE col_int_key IN (1, 40000000);
connection default;
Warnings:
Warning 1205 Lock wait timeout exceeded; try restarting transaction
disconnect con1;
drop table t1;
SET GLOBAL innodb_lock_wait_timeout=default;
...
...
mysql-test/suite/sys_vars/r/sysvars_server_notembedded,32bit.rdiff
View file @
9fe1e83d
...
...
@@ -507,6 +507,15 @@
VARIABLE_COMMENT Maximum stored procedure recursion depth
NUMERIC_MIN_VALUE 0
NUMERIC_MAX_VALUE 255
@@ -2485,7 +2485,7 @@
VARIABLE_TYPE BIGINT UNSIGNED
VARIABLE_COMMENT The maximum size of the container of a rowid filter
NUMERIC_MIN_VALUE 1024
-NUMERIC_MAX_VALUE 18446744073709551615
+NUMERIC_MAX_VALUE 4294967295
NUMERIC_BLOCK_SIZE 1
ENUM_VALUE_LIST NULL
READ_ONLY NO
@@ -2494,7 +2494,7 @@
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE 32
...
...
sql/sql_explain.cc
View file @
9fe1e83d
...
...
@@ -1357,7 +1357,8 @@ int Explain_table_access::print_explain(select_result_sink *output, uint8 explai
if
(
rowid_filter
)
{
r_rows_str
.
append
(
" ("
);
r_rows_str
.
append_ulonglong
(
rowid_filter
->
tracker
->
get_r_selectivity_pct
()
*
100.0
);
r_rows_str
.
append_ulonglong
(
(
ulonglong
)
(
rowid_filter
->
tracker
->
get_r_selectivity_pct
()
*
100.0
));
r_rows_str
.
append
(
"%)"
);
}
item_list
.
push_back
(
new
(
mem_root
)
...
...
storage/sequence/mysql-test/sequence/simple.result
View file @
9fe1e83d
...
...
@@ -124,9 +124,9 @@ Tables_in_test
explain select * from seq_1_to_15_step_2;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE seq_1_to_15_step_2 index NULL PRIMARY 8 NULL 8 Using index
explain select * from seq_1_to_15_step_2 where seq >
4
;
explain select * from seq_1_to_15_step_2 where seq >
10
;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE seq_1_to_15_step_2 range PRIMARY PRIMARY 8 NULL
6
Using where; Using index
1 SIMPLE seq_1_to_15_step_2 range PRIMARY PRIMARY 8 NULL
3
Using where; Using index
explain select * from seq_1_to_15_step_2 where seq between 4 and 9;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE seq_1_to_15_step_2 range PRIMARY PRIMARY 8 NULL 3 Using where; Using index
...
...
storage/sequence/mysql-test/sequence/simple.test
View file @
9fe1e83d
...
...
@@ -52,7 +52,7 @@ show open tables from test;
show
tables
;
# row estimates
explain
select
*
from
seq_1_to_15_step_2
;
explain
select
*
from
seq_1_to_15_step_2
where
seq
>
4
;
explain
select
*
from
seq_1_to_15_step_2
where
seq
>
10
;
explain
select
*
from
seq_1_to_15_step_2
where
seq
between
4
and
9
;
explain
select
*
from
seq_1_to_15_step_2
where
seq
between
20
and
30
;
explain
select
*
from
seq_1_to_15_step_2
where
seq
between
4
and
6
;
...
...
storage/tokudb/mysql-test/tokudb_alter_table/r/hcad_with_lock_sps.result
View file @
9fe1e83d
...
...
@@ -20,7 +20,7 @@ z a b c
999 4 40 400
explain select * from foo where b > 20;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE foo
range b b 5 NULL 2
Using where; Using index
1 SIMPLE foo
index b b 5 NULL 4
Using where; Using index
select* from foo where b > 10;
z a b c
999 2 20 200
...
...
@@ -40,7 +40,7 @@ a b c
4 40 400
explain select * from foo where b > 20;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE foo
range b b 5 NULL 2
Using where; Using index
1 SIMPLE foo
index b b 5 NULL 4
Using where; Using index
select* from foo where b > 10;
a b c
2 20 200
...
...
@@ -59,7 +59,7 @@ a b c z
4 40 400 NULL
explain select * from foo where b > 20;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE foo
range b b 5 NULL 2
Using where; Using index
1 SIMPLE foo
index b b 5 NULL 4
Using where; Using index
select* from foo where b > 10;
a b c z
2 20 200 NULL
...
...
@@ -94,7 +94,7 @@ a b c
3 30 300
4 40 400
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE foo
range b b 5 NULL 2
Using where; Using index
1 SIMPLE foo
index b b 5 NULL 4
Using where; Using index
a b c
2 20 200
3 30 300
...
...
@@ -110,7 +110,7 @@ a b c
4 40 400
explain select * from foo where b > 20;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE foo
range b b 5 NULL 2
Using where; Using index
1 SIMPLE foo
index b b 5 NULL 4
Using where; Using index
select* from foo where b > 10;
a b c
2 20 200
...
...
@@ -154,7 +154,7 @@ a b c g
4 40 400 NULL
5 50 500 NULL
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE foo
range b b 5 NULL 3
Using where; Using index
1 SIMPLE foo
index b b 5 NULL 5
Using where; Using index
set autocommit=on;
explain select * from foo;
id select_type table type possible_keys key key_len ref rows Extra
...
...
storage/tokudb/mysql-test/tokudb_bugs/r/2970.result
View file @
9fe1e83d
...
...
@@ -6,5 +6,5 @@ create table t2970 (a int, b int, c int, d int, key(a), key(a,b));
insert into t2970 values (1,1,1,1),(1,2,3,4);
explain select a,count(b),max(b) from t2970 where a > 0 group by a order by a;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t2970
index a,a_2 a_2 10
NULL 2 Using where; Using index
1 SIMPLE t2970
range a,a_2 a_2 5
NULL 2 Using where; Using index
drop table t2970;
storage/tokudb/mysql-test/tokudb_bugs/r/5733_innodb.result
View file @
9fe1e83d
...
...
@@ -10003,25 +10003,25 @@ insert into t values (9998,0);
insert into t values (9999,0);
explain select id from t where id>0 limit 10;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t
range
PRIMARY PRIMARY 8 NULL # Using where; Using index
1 SIMPLE t
index
PRIMARY PRIMARY 8 NULL # Using where; Using index
explain select * from t where id>0 limit 10;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t range PRIMARY PRIMARY 8 NULL # Using where
explain select id from t where id>1000 limit 10;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t
range
PRIMARY PRIMARY 8 NULL # Using where; Using index
1 SIMPLE t
index
PRIMARY PRIMARY 8 NULL # Using where; Using index
explain select * from t where id>1000 limit 10;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t range PRIMARY PRIMARY 8 NULL # Using where
explain select id from t where id>5000 limit 10;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t
range
PRIMARY PRIMARY 8 NULL # Using where; Using index
1 SIMPLE t
index
PRIMARY PRIMARY 8 NULL # Using where; Using index
explain select * from t where id>5000 limit 10;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t range PRIMARY PRIMARY 8 NULL # Using where
explain select id from t where id>6000 limit 10;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t
range
PRIMARY PRIMARY 8 NULL # Using where; Using index
1 SIMPLE t
index
PRIMARY PRIMARY 8 NULL # Using where; Using index
explain select * from t where id>6000 limit 10;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t range PRIMARY PRIMARY 8 NULL # Using where
...
...
storage/tokudb/mysql-test/tokudb_bugs/r/5733_tokudb.result
View file @
9fe1e83d
...
...
@@ -10009,7 +10009,7 @@ id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t range PRIMARY PRIMARY 8 NULL # Using where
explain select id from t where id>1000 limit 10;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t
range
PRIMARY PRIMARY 8 NULL # Using where; Using index
1 SIMPLE t
index
PRIMARY PRIMARY 8 NULL # Using where; Using index
explain select * from t where id>1000 limit 10;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t range PRIMARY PRIMARY 8 NULL # Using where
...
...
storage/tokudb/mysql-test/tokudb_bugs/r/bulk_fetch.result
View file @
9fe1e83d
...
...
@@ -60,13 +60,11 @@ c
400
500
600
explain select * from foo where c >
3
00;
explain select * from foo where c >
5
00;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE foo range c c 5 NULL
3
Using where; Using index
select * from foo where c >
3
00;
1 SIMPLE foo range c c 5 NULL
1
Using where; Using index
select * from foo where c >
5
00;
a b c
4 40 400
5 50 500
6 60 600
drop table foo;
create table foo (a int, b int);
...
...
storage/tokudb/mysql-test/tokudb_bugs/r/index_read.result
View file @
9fe1e83d
...
...
@@ -150,13 +150,11 @@ a b c
2 20 200
1 100 100
1 10 100
explain select * from foo where a>=
4
;
explain select * from foo where a>=
5
;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE foo range a a 4 NULL NULL; Using where
select * from foo where a>=
4
;
select * from foo where a>=
5
;
a b c
4 40 400
4 400 400
5 50 500
5 500 500
6 60 600
...
...
storage/tokudb/mysql-test/tokudb_bugs/t/bulk_fetch.test
View file @
9fe1e83d
...
...
@@ -26,8 +26,8 @@ alter table foo drop index b;
alter
table
foo
add
index
c
(
c
)
clustering
=
yes
;
select
c
from
foo
;
explain
select
*
from
foo
where
c
>
3
00
;
select
*
from
foo
where
c
>
3
00
;
explain
select
*
from
foo
where
c
>
5
00
;
select
*
from
foo
where
c
>
5
00
;
drop
table
foo
;
# simple test on hidden primary key
...
...
storage/tokudb/mysql-test/tokudb_bugs/t/index_read.test
View file @
9fe1e83d
...
...
@@ -117,8 +117,8 @@ select * from foo where a<3 order by a desc;
#HA_READ_KEY_OR_NEXT
# ignore rows column
--
replace_column
9
NULL
;
explain
select
*
from
foo
where
a
>=
4
;
select
*
from
foo
where
a
>=
4
;
explain
select
*
from
foo
where
a
>=
5
;
select
*
from
foo
where
a
>=
5
;
#HA_READ_KEY_OR_PREV not used anymore
...
...
storage/tokudb/mysql-test/tokudb_mariadb/r/clustering.result
View file @
9fe1e83d
...
...
@@ -12,6 +12,7 @@ insert t1 values (1, 1, 1);
insert t1 select a+1, a+1, a+1 from t1;
insert t1 select a+2, a+2, a+2 from t1;
insert t1 select a+4, a+4, a+4 from t1;
insert t1 select a+8, a+8, a+8 from t1;
select * from t1;
a b c
1 1 1
...
...
@@ -22,10 +23,18 @@ a b c
6 6 6
7 7 7
8 8 8
explain select a,c from t1 where a > 2;
9 9 9
10 10 10
11 11 11
12 12 12
13 13 13
14 14 14
15 15 15
16 16 16
explain select a,c from t1 where a > 4;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1
range a a 5 NULL
6 Using where; Using index
explain select b,c from t1 where b >
2
;
1 SIMPLE t1
index a a 5 NULL 1
6 Using where; Using index
explain select b,c from t1 where b >
4
;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL b NULL NULL NULL
8
Using where
1 SIMPLE t1 ALL b NULL NULL NULL
16
Using where
drop table t1;
storage/tokudb/mysql-test/tokudb_mariadb/t/clustering.test
View file @
9fe1e83d
...
...
@@ -6,10 +6,11 @@ insert t1 values (1, 1, 1);
insert
t1
select
a
+
1
,
a
+
1
,
a
+
1
from
t1
;
insert
t1
select
a
+
2
,
a
+
2
,
a
+
2
from
t1
;
insert
t1
select
a
+
4
,
a
+
4
,
a
+
4
from
t1
;
insert
t1
select
a
+
8
,
a
+
8
,
a
+
8
from
t1
;
select
*
from
t1
;
explain
select
a
,
c
from
t1
where
a
>
2
;
explain
select
b
,
c
from
t1
where
b
>
2
;
explain
select
a
,
c
from
t1
where
a
>
4
;
explain
select
b
,
c
from
t1
where
b
>
4
;
drop
table
t1
;
...
...
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