diff options
author | sergefp@mysql.com <> | 2005-08-03 03:47:07 +0000 |
---|---|---|
committer | sergefp@mysql.com <> | 2005-08-03 03:47:07 +0000 |
commit | f595847ec08e59199302b22ff71e63ce3164a809 (patch) | |
tree | 551d1a44fe7c14ba73b87378e84fb04d7228ab30 /sql/sp_head.h | |
parent | 2b70615913c3369867932011728d320e4a5a1a0b (diff) | |
parent | b6a6fe0849a3cba46c4ed6446612bfdb29d162ba (diff) | |
download | mariadb-git-f595847ec08e59199302b22ff71e63ce3164a809.tar.gz |
Manual merge
Diffstat (limited to 'sql/sp_head.h')
-rw-r--r-- | sql/sp_head.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h index 09b9c8f47a1..e15b68be158 100644 --- a/sql/sp_head.h +++ b/sql/sp_head.h @@ -282,6 +282,10 @@ private: /* Multi-set representing optimized list of tables to be locked by this routine. Does not include tables which are used by invoked routines. + + Note: for prelocking-free SPs this multiset is constructed too. + We do so because the same instance of sp_head may be called both + in prelocked mode and in non-prelocked mode. */ HASH m_sptabs; @@ -383,7 +387,8 @@ class sp_lex_keeper public: sp_lex_keeper(LEX *lex, bool lex_resp) - : m_lex(lex), m_lex_resp(lex_resp) + : m_lex(lex), m_lex_resp(lex_resp), + lex_query_tables_own_last(NULL) { lex->sp_lex_in_use= TRUE; } @@ -418,6 +423,25 @@ private: for LEX deletion. */ bool m_lex_resp; + + /* + Support for being able to execute this statement in two modes: + a) inside prelocked mode set by the calling procedure or its ancestor. + b) outside of prelocked mode, when this statement enters/leaves + prelocked mode itself. + */ + + /* + List of additional tables this statement needs to lock when it + enters/leaves prelocked mode on its own. + */ + TABLE_LIST *prelocking_tables; + + /* + The value m_lex->query_tables_own_last should be set to this when the + statement enters/leaves prelocked mode on its own. + */ + TABLE_LIST **lex_query_tables_own_last; }; |