summaryrefslogtreecommitdiff
path: root/sql/opt_subselect.cc
diff options
context:
space:
mode:
authorSergey Petrunya <psergey@askmonty.org>2011-05-29 01:47:24 +0400
committerSergey Petrunya <psergey@askmonty.org>2011-05-29 01:47:24 +0400
commitded7342daaed1c6c41dc628f7ffcb7a772afedcc (patch)
tree4220d33c2cc9ab8428c70a5806e6d14cc3f0e04c /sql/opt_subselect.cc
parent6f17421c27fe9602e4e6720b04760832de55d977 (diff)
downloadmariadb-git-ded7342daaed1c6c41dc628f7ffcb7a772afedcc.tar.gz
- Update test results (trivial)
- Code cleanup: remove garbage comments
Diffstat (limited to 'sql/opt_subselect.cc')
-rw-r--r--sql/opt_subselect.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/sql/opt_subselect.cc b/sql/opt_subselect.cc
index 95c30a873b3..9d00b5ba89b 100644
--- a/sql/opt_subselect.cc
+++ b/sql/opt_subselect.cc
@@ -890,8 +890,6 @@ void get_delayed_table_estimates(TABLE *table,
{
Item_in_subselect *item= table->pos_in_table_list->jtbm_subselect;
- //psergey-merge: moving off here: item->optimize(&rows, &read_time);
-
DBUG_ASSERT(item->engine->engine_type() ==
subselect_engine::HASH_SJ_ENGINE);
@@ -1322,12 +1320,9 @@ static bool convert_subq_to_jtbm(JOIN *parent_join,
TABLE_LIST *tl;
DBUG_ENTER("convert_subq_to_jtbm");
- //if (subq_pred->setup_engine(TRUE))
- // DBUG_RETURN(TRUE);
double rows;
double read_time;
- // psergey-merge: disable IN->EXISTS for JTBM subqueries, for now.
subq_pred->in_strategy &= ~SUBS_IN_TO_EXISTS;
subq_pred->optimize(&rows, &read_time);
@@ -1335,12 +1330,6 @@ static bool convert_subq_to_jtbm(JOIN *parent_join,
subq_pred->jtbm_record_count=rows;
subq_pred->is_jtbm_merged= TRUE;
- //psergey-merge: The following is called inside optimize() call:
-#if 0
- if (subq_pred->setup_mat_engine())
- DBUG_RETURN(TRUE);
-#endif
-
if (subq_pred->engine->engine_type() != subselect_engine::HASH_SJ_ENGINE)
{
*remove_item= FALSE;