From 71c57bcf8f87078772ccf5387583487bcd5d86f8 Mon Sep 17 00:00:00 2001 From: Varun Gupta Date: Tue, 10 Sep 2019 14:01:31 +0530 Subject: Moved the function trace_plan_prefix to the optimizer trace file Also added comments for trace_plan_prefix and the class Json_writer_temp_disable --- sql/opt_subselect.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sql/opt_subselect.cc') diff --git a/sql/opt_subselect.cc b/sql/opt_subselect.cc index e0873185461..c4cb9b81170 100644 --- a/sql/opt_subselect.cc +++ b/sql/opt_subselect.cc @@ -457,7 +457,6 @@ void best_access_path(JOIN *join, JOIN_TAB *s, table_map remaining_tables, uint idx, bool disable_jbuf, double record_count, POSITION *pos, POSITION *loose_scan_pos); -void trace_plan_prefix(JOIN *join, uint idx, table_map remaining_tables); static Item *create_subq_in_equalities(THD *thd, SJ_MATERIALIZATION_INFO *sjm, Item_in_subselect *subq_pred); @@ -3859,7 +3858,7 @@ void fix_semijoin_strategies_for_picked_join_order(JOIN *join) join->cur_sj_inner_tables= 0; Json_writer_object semijoin_strategy(thd); semijoin_strategy.add("semi_join_strategy","LooseScan"); - Json_writer_array semijoin_plan(thd, "join_order"); + Json_writer_array semijoin_plan(thd, "join_order"); for (idx= first; idx <= tablenr; idx++) { if (unlikely(thd->trace_started())) -- cgit v1.2.1