My Project
|
Public Member Functions | |
Plan_change_watchdog (const JOIN_TAB *tab_arg, const bool no_changes_arg) |
It is not obvious to see that test_if_skip_sort_order() never changes the plan if no_changes is true. So we double-check: creating an instance of this class saves some important access-path-related information of the current table; when the instance is destroyed, the latest access-path information is compared with saved data.
Plan_change_watchdog::Plan_change_watchdog | ( | const JOIN_TAB * | tab_arg, |
const bool | no_changes_arg | ||
) | [inline] |
tab_arg | table whose access path is being determined |
no_changes | whether a change to the access path is allowed |