diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2015-03-17 13:26:33 +0300 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2015-03-17 13:26:33 +0300 |
commit | c020d362b68d0cfad03cabdeef508ca22e26d485 (patch) | |
tree | 1b066e35cb7a1a40a6fd80462671dc4e2d78bfca /sql/opt_subselect.h | |
parent | 5a3bf84468b386d4a784c468d32e7beaa0bef7d1 (diff) | |
download | mariadb-git-c020d362b68d0cfad03cabdeef508ca22e26d485.tar.gz |
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.
Diffstat (limited to 'sql/opt_subselect.h')
-rw-r--r-- | sql/opt_subselect.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_subselect.h b/sql/opt_subselect.h index 0a74abec68b..e4d679fa377 100644 --- a/sql/opt_subselect.h +++ b/sql/opt_subselect.h @@ -298,7 +298,7 @@ public: }; -extern void advance_sj_state(JOIN *join, table_map remaining_tables, uint idx, +void advance_sj_state(JOIN *join, table_map remaining_tables, uint idx, double *current_record_count, double *current_read_time, POSITION *loose_scan_pos); void restore_prev_sj_state(const table_map remaining_tables, |