Commit caf4291d authored by Sergei Petrunia's avatar Sergei Petrunia

Remove garbage comment

parent eb2c170b
......@@ -435,107 +435,3 @@ public:
};
};
#if 0
class Sort_and_group_tracker : public Sql_alloc
{
enum { MAX_QEP_ACTIONS = 5 };
/* Query actions in the order they were made */
enum_qep_action qep_actions[MAX_QEP_ACTIONS];
/* Index in filesort_tracker or tmp_table_kind arrays */
int qep_action_idx[MAX_QEP_ACTIONS];
uint n_actions;
/*
Trackers for filesort operation. JOIN::exec() may need at most two sorting
operations.
*/
Filesort_tracker filesort_tracker[2];
int cur_tracker;
/* Information about temporary tables */
enum_tmp_table_use tmp_table_kind[2];
int cur_tmp_table;
//friend class Explain_select;
public:
Sort_and_group_tracker() :
n_actions(0),
cur_tracker(0),
cur_tmp_table(0)
{}
/*************** Reporting interface ***************/
/* Report that join execution is started */
void report_join_start()
{
n_actions= 0;
cur_tracker= 0;
cur_tmp_table= 0;
}
/*
Report that a temporary table is created. The next step is to write to the
this tmp. table
*/
void report_tmp_table(TABLE *tbl)
{
DBUG_ASSERT(n_actions < MAX_QEP_ACTIONS);
qep_actions[n_actions++]= EXPL_ACTION_TEMPTABLE;
DBUG_ASSERT(cur_tmp_table < 2);
cur_tmp_table++;
}
/* Report that we are doing a filesort. */
Filesort_tracker *report_sorting()
{
DBUG_ASSERT(n_actions < MAX_QEP_ACTIONS);
qep_actions[n_actions++]= EXPL_ACTION_FILESORT;
DBUG_ASSERT(cur_tracker < 2);
return &filesort_tracker[cur_tracker++];
}
friend class Iterator;
/*************** Statistics retrieval interface ***************/
// need to iterate over steps
#if 0
class Iterator
{
Sort_and_group_tracker *owner;
uint idx;
int fs_tracker_idx;
//int tmp_table_idx;
public:
Iterator(Sort_and_group_tracker *owner_arg) :
owner(owner_arg), idx(0), fs_tracker_idx(0)//, tmp_table_idx(0)
{}
enum_qep_action get_next(Filesort_tracker **tracker/*,
enum_tmp_table_use *tmp_table_use*/)
{
/* Walk back through the array... */
if (idx >= owner->n_actions)
return EXPL_ACTION_EOF;
switch (owner->qep_actions[idx])
{
case EXPL_ACTION_FILESORT:
*tracker= &owner->filesort_tracker[fs_tracker_idx++];
break;
case EXPL_ACTION_TEMPTABLE:
//*tmp_table_use= tmp_table_kind[tmp_table_idx++];
break;
default:
break;
}
return owner->qep_actions[idx++];
}
};
#endif
//enum_tmp_table_use get_tmp_table_type() { return join_result_tmp_table; }
};
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment