mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
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
This commit is contained in:
@@ -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(){}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user