Skip to content

Commit

Permalink
Make Explain_node::children protected
Browse files Browse the repository at this point in the history
  • Loading branch information
spetrunia committed Oct 8, 2021
1 parent 4780201 commit 26eb666
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/sql_explain.h
Expand Up @@ -121,11 +121,13 @@ class Explain_node : public Sql_alloc
*/
enum explain_connection_type connection_type;

protected:
/*
A node may have children nodes. When a node's explain structure is
created, children nodes may not yet have QPFs. This is why we store ids.
*/
Dynamic_array<int> children;
public:
void add_child(int select_no)
{
children.append(select_no);
Expand Down

0 comments on commit 26eb666

Please sign in to comment.