Skip to content

Commit 5ad36aa

Browse files
committed
de-virtualize redundantly virtual Item method
and remove a couple of useless MY_TEST's
1 parent d2bf1ed commit 5ad36aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sql/item.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2392,7 +2392,7 @@ class Item: public Value_source,
23922392
if (join_tab_idx_arg < join_tab_idx)
23932393
join_tab_idx= join_tab_idx_arg;
23942394
}
2395-
virtual uint get_join_tab_idx() { return join_tab_idx; }
2395+
uint get_join_tab_idx() const { return join_tab_idx; }
23962396

23972397
table_map view_used_tables(TABLE_LIST *view)
23982398
{

sql/opt_index_cond_pushdown.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ static Item *make_cond_for_index(THD *thd, Item *cond, TABLE *table, uint keyno,
206206
new_cond->argument_list()->push_back(fix, thd->mem_root);
207207
used_tables|= fix->used_tables();
208208
}
209-
if (MY_TEST(item->marker == ICP_COND_USES_INDEX_ONLY))
209+
if (item->marker == ICP_COND_USES_INDEX_ONLY)
210210
{
211211
n_marked++;
212212
item->marker= 0;
@@ -239,7 +239,7 @@ static Item *make_cond_for_index(THD *thd, Item *cond, TABLE *table, uint keyno,
239239
if (!fix)
240240
return (COND*) 0;
241241
new_cond->argument_list()->push_back(fix, thd->mem_root);
242-
if (MY_TEST(item->marker == ICP_COND_USES_INDEX_ONLY))
242+
if (item->marker == ICP_COND_USES_INDEX_ONLY)
243243
{
244244
n_marked++;
245245
item->marker= 0;

0 commit comments

Comments
 (0)