diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2019-06-14 22:10:50 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2019-06-14 22:10:50 +0200 |
commit | f66d1850ac30922eaa49c0131d89efc8357155ff (patch) | |
tree | cb69c43694146bb7993078e76e203ded4ca48a5e /sql/sql_base.h | |
parent | 772c5f3c78fcdaea2169ba435bac8d851c7945c7 (diff) | |
parent | 1135244a647e423f6a7b2122ad9c305253039399 (diff) | |
download | mariadb-git-f66d1850ac30922eaa49c0131d89efc8357155ff.tar.gz |
Merge branch '10.3' into 10.4
Diffstat (limited to 'sql/sql_base.h')
-rw-r--r-- | sql/sql_base.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/sql/sql_base.h b/sql/sql_base.h index 54c26fb595a..28a787c56dd 100644 --- a/sql/sql_base.h +++ b/sql/sql_base.h @@ -248,17 +248,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, @@ -400,6 +390,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; @@ -407,6 +398,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; }; }; |