1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-7919: main.explain_json* fail in buildbot with valgrind

Correctly initialize Explain_node::connection_type, remove unused
Explain_node constructor.
This commit is contained in:
Sergei Petrunia
2015-04-06 18:54:08 +03:00
parent 47c344b00f
commit 2936fb127d

View File

@@ -160,8 +160,9 @@ class Explain_query;
class Explain_node : public Sql_alloc class Explain_node : public Sql_alloc
{ {
public: public:
Explain_node(MEM_ROOT *root) Explain_node(MEM_ROOT *root) :
:children(root) connection_type(EXPLAIN_NODE_OTHER),
children(root)
{} {}
/* A type specifying what kind of node this is */ /* A type specifying what kind of node this is */
enum explain_node_type enum explain_node_type
@@ -181,7 +182,6 @@ public:
EXPLAIN_NODE_NON_MERGED_SJ /* aka JTBM semi-join */ 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 enum explain_node_type get_type()= 0;
virtual int get_select_id()= 0; virtual int get_select_id()= 0;