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
dc3185c7
Commit
dc3185c7
authored
Mar 24, 2020
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: pk_is_clustering_key() -> is_clustering_key()
where PK is neither required nor implied
parent
27bf97aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
sql/handler.cc
sql/handler.cc
+1
-1
sql/multi_range_read.cc
sql/multi_range_read.cc
+1
-1
No files found.
sql/handler.cc
View file @
dc3185c7
...
...
@@ -2813,7 +2813,7 @@ double handler::keyread_time(uint index, uint ranges, ha_rows rows)
{
DBUG_ASSERT
(
ranges
==
0
||
ranges
==
1
);
size_t
len
=
table
->
key_info
[
index
].
key_length
+
ref_length
;
if
(
table
->
file
->
pk_
is_clustering_key
(
index
))
if
(
table
->
file
->
is_clustering_key
(
index
))
len
=
table
->
s
->
stored_rec_length
;
double
cost
=
(
double
)
rows
*
len
/
(
stats
.
block_size
+
1
)
*
IDX_BLOCK_COPY_COST
;
if
(
ranges
)
...
...
sql/multi_range_read.cc
View file @
dc3185c7
...
...
@@ -385,7 +385,7 @@ ha_rows handler::multi_range_read_info(uint keyno, uint n_ranges, uint n_rows,
cost
->
reset
();
/* Produce the same cost as non-MRR code does */
if
(
!
pk_
is_clustering_key
(
keyno
))
if
(
!
is_clustering_key
(
keyno
))
{
/*
idx_io_count could potentially be increased with the number of
...
...
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