@@ -66,8 +66,7 @@ typedef struct st_lock_param_type ALTER_PARTITION_PARAM_TYPE;
6666/* *
6767 This flag is used in function get_all_tables() which fills
6868 I_S tables with data which are retrieved from frm files and storage engine.
69- The flag means that we need to open a view using
70- open_normal_and_derived_tables() function.
69+ The flag means that we need to open a view.
7170*/
7271#define OPEN_VIEW_FULL OPEN_VIEW_ONLY*2
7372/* *
@@ -287,7 +286,7 @@ bool lock_table_names(THD *thd, TABLE_LIST *table_list,
287286 uint flags);
288287bool open_tables (THD *thd, TABLE_LIST **tables, uint *counter, uint flags,
289288 Prelocking_strategy *prelocking_strategy);
290- /* open_and_lock_tables with optional derived handling */
289+ /* open_and_lock_tables */
291290bool open_and_lock_tables (THD *thd, TABLE_LIST *tables, uint flags,
292291 Prelocking_strategy *prelocking_strategy);
293292/* simple open_and_lock_tables for single table */
@@ -469,7 +468,7 @@ inline TABLE *open_n_lock_single_table(THD *thd, TABLE_LIST *table_l,
469468}
470469
471470
472- /* open_and_lock_tables with derived handling */
471+ // open_and_lock_tables with default prelocking strategy
473472inline bool open_and_lock_tables (THD *thd, TABLE_LIST *tables, uint flags)
474473{
475474 DML_prelocking_strategy prelocking_strategy;
0 commit comments