summaryrefslogtreecommitdiff
path: root/sql/sql_explain.h
diff options
context:
space:
mode:
authorSergei Petrunia <psergey@askmonty.org>2015-04-06 18:54:08 +0300
committerSergei Petrunia <psergey@askmonty.org>2015-04-06 18:54:08 +0300
commit2936fb127d551a1abd6f30bdfd50a8a9bcf4e41b (patch)
treeb3ef80b90ca70bef01ec141f9cffc9e63ad61d54 /sql/sql_explain.h
parent47c344b00fa6878e5d1ce4235f8016a1ec995967 (diff)
downloadmariadb-git-2936fb127d551a1abd6f30bdfd50a8a9bcf4e41b.tar.gz
MDEV-7919: main.explain_json* fail in buildbot with valgrind
Correctly initialize Explain_node::connection_type, remove unused Explain_node constructor.
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 97a04573361..c93b00747ea 100644
--- a/sql/sql_explain.h
+++ b/sql/sql_explain.h
@@ -160,8 +160,9 @@ class Explain_query;
class Explain_node : public Sql_alloc
{
public:
- Explain_node(MEM_ROOT *root)
- :children(root)
+ Explain_node(MEM_ROOT *root) :
+ connection_type(EXPLAIN_NODE_OTHER),
+ children(root)
{}
/* A type specifying what kind of node this is */
enum explain_node_type
@@ -181,7 +182,6 @@ public:
EXPLAIN_NODE_NON_MERGED_SJ /* aka JTBM semi-join */
};
- Explain_node() : connection_type(EXPLAIN_NODE_OTHER) {}
virtual enum explain_node_type get_type()= 0;
virtual int get_select_id()= 0;