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
5ad36aa3
Commit
5ad36aa3
authored
Sep 08, 2020
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
de-virtualize redundantly virtual Item method
and remove a couple of useless MY_TEST's
parent
d2bf1ed0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
sql/item.h
sql/item.h
+1
-1
sql/opt_index_cond_pushdown.cc
sql/opt_index_cond_pushdown.cc
+2
-2
No files found.
sql/item.h
View file @
5ad36aa3
...
...
@@ -2392,7 +2392,7 @@ class Item: public Value_source,
if
(
join_tab_idx_arg
<
join_tab_idx
)
join_tab_idx
=
join_tab_idx_arg
;
}
virtual
uint
get_join_tab_idx
()
{
return
join_tab_idx
;
}
uint
get_join_tab_idx
()
const
{
return
join_tab_idx
;
}
table_map
view_used_tables
(
TABLE_LIST
*
view
)
{
...
...
sql/opt_index_cond_pushdown.cc
View file @
5ad36aa3
...
...
@@ -206,7 +206,7 @@ static Item *make_cond_for_index(THD *thd, Item *cond, TABLE *table, uint keyno,
new_cond
->
argument_list
()
->
push_back
(
fix
,
thd
->
mem_root
);
used_tables
|=
fix
->
used_tables
();
}
if
(
MY_TEST
(
item
->
marker
==
ICP_COND_USES_INDEX_ONLY
)
)
if
(
item
->
marker
==
ICP_COND_USES_INDEX_ONLY
)
{
n_marked
++
;
item
->
marker
=
0
;
...
...
@@ -239,7 +239,7 @@ static Item *make_cond_for_index(THD *thd, Item *cond, TABLE *table, uint keyno,
if
(
!
fix
)
return
(
COND
*
)
0
;
new_cond
->
argument_list
()
->
push_back
(
fix
,
thd
->
mem_root
);
if
(
MY_TEST
(
item
->
marker
==
ICP_COND_USES_INDEX_ONLY
)
)
if
(
item
->
marker
==
ICP_COND_USES_INDEX_ONLY
)
{
n_marked
++
;
item
->
marker
=
0
;
...
...
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