Skip to content

Commit

Permalink
de-virtualize redundantly virtual Item method
Browse files Browse the repository at this point in the history
and remove a couple of useless MY_TEST's
  • Loading branch information
vuvova committed Sep 10, 2020
1 parent d2bf1ed commit 5ad36aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sql/item.h
Expand Up @@ -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)
{
Expand Down
4 changes: 2 additions & 2 deletions sql/opt_index_cond_pushdown.cc
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 5ad36aa

Please sign in to comment.