summaryrefslogtreecommitdiff
path: root/sql/sql_explain.h
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2015-07-01 20:03:29 +0300
committerSergei Petrunia <psergey@askmonty.org>2015-07-01 20:03:29 +0300
commit9d2aa2b3093e315f02e42943589f47447c67bbd8 (patch)
treef2f73397e7d6b26e76971e702fbd6a6a01b95521 /sql/sql_explain.h
parentc6aee27b73232fc6ba3e8b55adbb0abba4f0171b (diff)
downloadmariadb-git-9d2aa2b3093e315f02e42943589f47447c67bbd8.tar.gz
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
Diffstat (limited to 'sql/sql_explain.h')
-rw-r--r--sql/sql_explain.h6
1 files changed, 3 insertions, 3 deletions
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(){}
};