summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2015-03-13 18:46:12 +0300
committerSergei Petrunia <psergey@askmonty.org>2015-03-13 18:46:12 +0300
commitdb71ea247d8e6f470a04e789599565638380d4b3 (patch)
tree773dfc61e3ffa0347305ce8690e0d431ecc51071 /sql/sql_select.cc
parented04c40b01c122436eda6552c550d62ce8a3920b (diff)
downloadmariadb-git-bb-10.0-mdev7474.tar.gz
MDEV-7474: Semi-Join's DuplicateWeedout strategy skipped ...bb-10.0-mdev7474
JOIN::cur_dups_producing_tables was not maintained correctly in the cases of greedy optimization (search_depth > n_tables). Moved it to POSITION structure where it will be maintained automatically. Removed POSITION::prefix_dups_producing_tables since its value can now be calculated.
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index eb222b2f95a..7d75c12b04c 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -6466,7 +6466,6 @@ choose_plan(JOIN *join, table_map join_tables)
DBUG_ENTER("choose_plan");
join->cur_embedding_map= 0;
- join->cur_dups_producing_tables= 0;
reset_nj_counters(join, join->join_list);
qsort2_cmp jtab_sort_func;