mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-7474: Semi-Join's DuplicateWeedout strategy skipped ...
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.
This commit is contained in:
@ -6143,7 +6143,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;
|
||||
|
||||
|
Reference in New Issue
Block a user