Commit 1d6bc0f0 authored by Alexander Barkov's avatar Alexander Barkov

Removing sp_head::is_stored_procedure. This code was dead after MDEV-15991

parent fe76e68e
...@@ -2736,7 +2736,6 @@ sp_head::restore_thd_mem_root(THD *thd) ...@@ -2736,7 +2736,6 @@ sp_head::restore_thd_mem_root(THD *thd)
Item *flist= free_list; // The old list Item *flist= free_list; // The old list
set_query_arena(thd); // Get new free_list and mem_root set_query_arena(thd); // Get new free_list and mem_root
state= STMT_INITIALIZED_FOR_SP; state= STMT_INITIALIZED_FOR_SP;
is_stored_procedure= true;
DBUG_PRINT("info", ("mem_root %p returned from thd mem root %p", DBUG_PRINT("info", ("mem_root %p returned from thd mem root %p",
&mem_root, &thd->mem_root)); &mem_root, &thd->mem_root));
......
...@@ -3809,7 +3809,6 @@ void Query_arena::set_query_arena(Query_arena *set) ...@@ -3809,7 +3809,6 @@ void Query_arena::set_query_arena(Query_arena *set)
mem_root= set->mem_root; mem_root= set->mem_root;
free_list= set->free_list; free_list= set->free_list;
state= set->state; state= set->state;
is_stored_procedure= set->is_stored_procedure;
} }
......
...@@ -974,10 +974,6 @@ class Query_arena ...@@ -974,10 +974,6 @@ class Query_arena
enum_state state; enum_state state;
protected:
friend class sp_head;
bool is_stored_procedure;
public: public:
/* We build without RTTI, so dynamic_cast can't be used. */ /* We build without RTTI, so dynamic_cast can't be used. */
enum Type enum Type
...@@ -986,8 +982,7 @@ class Query_arena ...@@ -986,8 +982,7 @@ class Query_arena
}; };
Query_arena(MEM_ROOT *mem_root_arg, enum enum_state state_arg) : Query_arena(MEM_ROOT *mem_root_arg, enum enum_state state_arg) :
free_list(0), mem_root(mem_root_arg), 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)
{ INIT_ARENA_DBUG_INFO; } { INIT_ARENA_DBUG_INFO; }
/* /*
This constructor is used only when Query_arena is created as This constructor is used only when Query_arena is created as
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment