summaryrefslogtreecommitdiff
path: root/sql/sql_explain.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2015-04-08 20:14:48 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2015-04-09 14:51:23 +0200
commitb05383cb1440d2a6508d5254e0617e0dccf49898 (patch)
tree643f7efaaa07049f839b58e059da7ffa708fd448 /sql/sql_explain.cc
parent697194461ad2031420bc1aaf8a03432dbf2acd66 (diff)
downloadmariadb-git-b05383cb1440d2a6508d5254e0617e0dccf49898.tar.gz
MDEV-7835: ANALYZE FORMAT=JSON should show buffer sizes
Diffstat (limited to 'sql/sql_explain.cc')
-rw-r--r--sql/sql_explain.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_explain.cc b/sql/sql_explain.cc
index 3fbb720e6c5..2f421a22c40 100644
--- a/sql/sql_explain.cc
+++ b/sql/sql_explain.cc
@@ -1360,6 +1360,7 @@ void Explain_table_access::print_explain_json(Explain_query *query,
writer->end_object(); // "block-nl-join"
writer->add_member("buffer_type").add_str(bka_type.incremental?
"incremental":"flat");
+ writer->add_member("buffer_size").add_size(bka_type.join_buffer_size);
writer->add_member("join_type").add_str(bka_type.join_alg);
if (bka_type.mrr_type.length())
writer->add_member("mrr_type").add_str(bka_type.mrr_type);