summaryrefslogtreecommitdiff
path: root/sql/sql_base.h
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2019-06-12 22:54:46 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2019-06-12 22:54:46 +0200
commit5b65d61d9384a45ea1b8df79694493fbb1a14e4a (patch)
tree451255aa141e115baf97b867fb0752b8ce4dd9a9 /sql/sql_base.h
parent56c60b2fc5d006206f54b93be401570837f2f312 (diff)
parent7a7d9904e12335ee8b1eea9671138b3c469a3829 (diff)
downloadmariadb-git-5b65d61d9384a45ea1b8df79694493fbb1a14e4a.tar.gz
Merge branch '5.5' into 10.1
Diffstat (limited to 'sql/sql_base.h')
-rw-r--r--sql/sql_base.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/sql/sql_base.h b/sql/sql_base.h
index 445d537ba36..91eef7369ac 100644
--- a/sql/sql_base.h
+++ b/sql/sql_base.h
@@ -252,17 +252,7 @@ lock_table_names(THD *thd, TABLE_LIST *table_list,
}
bool open_tables(THD *thd, const DDL_options_st &options,
TABLE_LIST **tables, uint *counter,
- Sroutine_hash_entry **sroutine_to_open, uint flags,
- Prelocking_strategy *prelocking_strategy);
-
-static inline bool
-open_tables(THD *thd, const DDL_options_st &options, TABLE_LIST **tables,
- uint *counter, uint flags, Prelocking_strategy *prelocking_strategy)
-{
- return open_tables(thd, options, tables, counter,
- &thd->lex->sroutines_list.first, flags,
- prelocking_strategy);
-}
+ uint flags, Prelocking_strategy *prelocking_strategy);
static inline bool
open_tables(THD *thd, TABLE_LIST **tables, uint *counter, uint flags,
@@ -442,6 +432,7 @@ class Prelocking_strategy
public:
virtual ~Prelocking_strategy() { }
+ virtual void reset(THD *thd) { };
virtual bool handle_routine(THD *thd, Query_tables_list *prelocking_ctx,
Sroutine_hash_entry *rt, sp_head *sp,
bool *need_prelocking) = 0;
@@ -449,6 +440,7 @@ public:
TABLE_LIST *table_list, bool *need_prelocking) = 0;
virtual bool handle_view(THD *thd, Query_tables_list *prelocking_ctx,
TABLE_LIST *table_list, bool *need_prelocking)= 0;
+ virtual bool handle_end(THD *thd) { return 0; };
};