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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
caf4291d
Commit
caf4291d
authored
Jun 18, 2015
by
Sergei Petrunia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove garbage comment
parent
eb2c170b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
104 deletions
+0
-104
sql/sql_analyze_stmt.h
sql/sql_analyze_stmt.h
+0
-104
No files found.
sql/sql_analyze_stmt.h
View file @
caf4291d
...
...
@@ -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
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