diff options
author | Sergey Petrunya <psergey@askmonty.org> | 2009-08-13 03:43:02 +0400 |
---|---|---|
committer | Sergey Petrunya <psergey@askmonty.org> | 2009-08-13 03:43:02 +0400 |
commit | 54c4bd3635c619652367db501fb98f399875b66b (patch) | |
tree | 003a21bdeadf9a70866e1f0b279d4f8350d09dd5 /sql/opt_table_elimination.cc | |
parent | b47cfd81e28042c813a7ddf9c3e4b7aaca66a666 (diff) | |
download | mariadb-git-54c4bd3635c619652367db501fb98f399875b66b.tar.gz |
MWL#17: Table elimination
- Continue addressing review feedback: remove "unusable KEYUSEs"
extension as it is no longer needed.
sql/item.h:
MWL#17: Table elimination
- Code cleanup
sql/opt_table_elimination.cc:
MWL#17: Table elimination
- Code cleanup
Diffstat (limited to 'sql/opt_table_elimination.cc')
-rw-r--r-- | sql/opt_table_elimination.cc | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/sql/opt_table_elimination.cc b/sql/opt_table_elimination.cc index e5829b1eb96..25f8d926ac6 100644 --- a/sql/opt_table_elimination.cc +++ b/sql/opt_table_elimination.cc @@ -1119,7 +1119,6 @@ void eliminate_tables(JOIN *join) case Func_dep::FD_OUTER_JOIN: { Outer_join_dep *outer_join_dep= (Outer_join_dep*)bound_dep; - /* TODO what do here? Stop if eliminated the top-level? */ mark_as_eliminated(te.join, outer_join_dep->table_list); Outer_join_dep *parent= outer_join_dep->parent; if (parent && @@ -1236,38 +1235,6 @@ void dbug_print_deps(Table_elimination *te) #endif -/***********************************************************************************************/ - -#if 0 -static void dbug_print_fdep(FUNC_DEP *fd) -{ - switch (fd->type) { - case FUNC_DEP::FD_OUTER_JOIN: - { - fprintf(DBUG_FILE, "outer_join("); - if (fd->table_list->nested_join) - { - bool first= TRUE; - List_iterator<TABLE_LIST> it(fd->table_list->nested_join->join_list); - TABLE_LIST *tbl; - while ((tbl= it++)) - { - fprintf(DBUG_FILE, "%s%s", first?"":" ", - tbl->table? tbl->table->alias : "..."); - first= FALSE; - } - fprintf(DBUG_FILE, ")"); - } - else - fprintf(DBUG_FILE, "%s", fd->table_list->table->alias); - fprintf(DBUG_FILE, ")"); - break; - } - } -} - -#endif - /** @} (end of group Table_Elimination) */ |