From 9d2aa2b3093e315f02e42943589f47447c67bbd8 Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Wed, 1 Jul 2015 20:03:29 +0300 Subject: MDEV-7811: EXPLAIN/ANALYZE FORMAT=JSON should show subquery cache Fixes over the original patch: - Fix variable/class/other names - Fix the JSON output to be in line with the output of other JSON constructs we produce --- sql/sql_explain.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sql/sql_explain.h') diff --git a/sql/sql_explain.h b/sql/sql_explain.h index 427553c1088..1b6a1be5649 100644 --- a/sql/sql_explain.h +++ b/sql/sql_explain.h @@ -85,7 +85,7 @@ class Explain_node : public Sql_alloc { public: Explain_node(MEM_ROOT *root) : - cache_stat(NULL), + cache_tracker(NULL), connection_type(EXPLAIN_NODE_OTHER), children(root) {} @@ -113,7 +113,7 @@ public: /** expression cache statistics */ - Expression_cache_stat* cache_stat; + Expression_cache_tracker* cache_tracker; /* How this node is connected to its parent. @@ -140,7 +140,7 @@ public: uint8 explain_flags, bool is_analyze); void print_explain_json_for_children(Explain_query *query, Json_writer *writer, bool is_analyze); - void print_explain_json_cache(Json_writer *writer, bool is_analyze); + bool print_explain_json_cache(Json_writer *writer, bool is_analyze); virtual ~Explain_node(){} }; -- cgit v1.2.1