Skip to content

Commit

Permalink
Removing sp_head::is_stored_procedure. This code was dead after MDEV-…
Browse files Browse the repository at this point in the history
…15991
  • Loading branch information
abarkov committed Jun 26, 2018
1 parent fe76e68 commit 1d6bc0f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
1 change: 0 additions & 1 deletion sql/sp_head.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2736,7 +2736,6 @@ sp_head::restore_thd_mem_root(THD *thd)
Item *flist= free_list; // The old list
set_query_arena(thd); // Get new free_list and mem_root
state= STMT_INITIALIZED_FOR_SP;
is_stored_procedure= true;

DBUG_PRINT("info", ("mem_root %p returned from thd mem root %p",
&mem_root, &thd->mem_root));
Expand Down
1 change: 0 additions & 1 deletion sql/sql_class.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3809,7 +3809,6 @@ void Query_arena::set_query_arena(Query_arena *set)
mem_root= set->mem_root;
free_list= set->free_list;
state= set->state;
is_stored_procedure= set->is_stored_procedure;
}


Expand Down
7 changes: 1 addition & 6 deletions sql/sql_class.h
Original file line number Diff line number Diff line change
Expand Up @@ -974,10 +974,6 @@ class Query_arena

enum_state state;

protected:
friend class sp_head;
bool is_stored_procedure;

public:
/* We build without RTTI, so dynamic_cast can't be used. */
enum Type
Expand All @@ -986,8 +982,7 @@ class Query_arena
};

Query_arena(MEM_ROOT *mem_root_arg, enum enum_state state_arg) :
free_list(0), mem_root(mem_root_arg), state(state_arg),
is_stored_procedure(state_arg == STMT_INITIALIZED_FOR_SP ? true : false)
free_list(0), mem_root(mem_root_arg), state(state_arg)
{ INIT_ARENA_DBUG_INFO; }
/*
This constructor is used only when Query_arena is created as
Expand Down

0 comments on commit 1d6bc0f

Please sign in to comment.