summaryrefslogtreecommitdiff
path: root/sql/sql_analyze_stmt.cc
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2016-03-28 12:02:56 +0300
committerSergei Petrunia <psergey@askmonty.org>2016-03-28 12:02:56 +0300
commit44fdb56c977259b2801c612116813beda403df78 (patch)
treee4fb8f41f72bb5d9022648bedc4513c9d09bd5ec /sql/sql_analyze_stmt.cc
parent24cd633fd856d0ca7e4149b49cb7eb3b4c890601 (diff)
downloadmariadb-git-44fdb56c977259b2801c612116813beda403df78.tar.gz
MDEV-8646: Re-engineer the code for post-join operations
- Make EXPLAIN code use the post-join operations - Remove Sort_and_group_tracker that was used for that purpose
Diffstat (limited to 'sql/sql_analyze_stmt.cc')
-rw-r--r--sql/sql_analyze_stmt.cc72
1 files changed, 0 insertions, 72 deletions
diff --git a/sql/sql_analyze_stmt.cc b/sql/sql_analyze_stmt.cc
index d11c93229b0..58f72d6b8de 100644
--- a/sql/sql_analyze_stmt.cc
+++ b/sql/sql_analyze_stmt.cc
@@ -69,75 +69,3 @@ void Filesort_tracker::print_json_members(Json_writer *writer)
}
}
-
-/*
- Report that we are doing a filesort.
- @return
- Tracker object to be used with filesort
-*/
-
-Filesort_tracker *Sort_and_group_tracker::report_sorting(THD *thd)
-{
- DBUG_ASSERT(cur_action < MAX_QEP_ACTIONS);
-
- if (total_actions)
- {
- /* This is not the first execution. Check */
- if (qep_actions[cur_action] != EXPL_ACTION_FILESORT)
- {
- varied_executions= true;
- cur_action++;
- if (!dummy_fsort_tracker)
- dummy_fsort_tracker= new (thd->mem_root) Filesort_tracker(is_analyze);
- return dummy_fsort_tracker;
- }
- return qep_actions_data[cur_action++].filesort_tracker;
- }
-
- Filesort_tracker *fs_tracker= new(thd->mem_root)Filesort_tracker(is_analyze);
- qep_actions_data[cur_action].filesort_tracker= fs_tracker;
- qep_actions[cur_action++]= EXPL_ACTION_FILESORT;
-
- return fs_tracker;
-}
-
-
-void Sort_and_group_tracker::report_tmp_table(TABLE *tbl)
-{
- DBUG_ASSERT(cur_action < MAX_QEP_ACTIONS);
- if (total_actions)
- {
- /* This is not the first execution. Check if the steps match. */
- // todo: should also check that tmp.table kinds are the same.
- if (qep_actions[cur_action] != EXPL_ACTION_TEMPTABLE)
- varied_executions= true;
- }
-
- if (!varied_executions)
- {
- qep_actions[cur_action]= EXPL_ACTION_TEMPTABLE;
- // qep_actions_data[cur_action]= ....
- }
-
- cur_action++;
-}
-
-
-void Sort_and_group_tracker::report_duplicate_removal()
-{
- DBUG_ASSERT(cur_action < MAX_QEP_ACTIONS);
- if (total_actions)
- {
- /* This is not the first execution. Check if the steps match. */
- if (qep_actions[cur_action] != EXPL_ACTION_REMOVE_DUPS)
- varied_executions= true;
- }
-
- if (!varied_executions)
- {
- qep_actions[cur_action]= EXPL_ACTION_REMOVE_DUPS;
- }
-
- cur_action++;
-}
-