-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move join->emb_smj_nest setting to choose_plan()
This cleans up the interface for choose_plan() as it is not depending on setting join->emb_sj_nest. choose_plan() now sets up join->emb_sj_nest and join->allowed_tables before calling optimize_straight_join() and best_extension_by_limited_search(). Other things: - Converted some 'if' to DBUG_ASSERT() as these should always be true. - Calculate 'allowed_tables' in choose_plan() as this never changes in the childs. - Added assert to check that next_emb->nested_join->n_tables doesn't get to a wrong value. - Documented some variables in sql_select.h
- Loading branch information
Showing
4 changed files
with
53 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters