mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Backport of:
---------------------------------------------------------- revno: 2617.69.24 committer: Konstantin Osipov <kostja@sun.com> branch nick: 5.4-42546 timestamp: Fri 2009-08-14 19:22:05 +0400 message: A pre-requisite for a fix for Bug#42546 "Backup: RESTORE fails, thinking it finds an existing table" Back-port from WL 148 "Foreign keys" feature tree a patch that introduced Prelocking_strategy class -- a way to parameterize open_tables() behaviour, implemented by Dmitry Lenev. (Part of WL#4284).
This commit is contained in:
@ -454,10 +454,10 @@ public:
|
||||
|
||||
/*
|
||||
This method is intended for attributes of a routine which need
|
||||
to propagate upwards to the LEX of the caller (when a property of a
|
||||
sp_head needs to "taint" the caller).
|
||||
to propagate upwards to the Query_tables_list of the caller (when
|
||||
a property of a sp_head needs to "taint" the calling statement).
|
||||
*/
|
||||
void propagate_attributes(LEX *lex)
|
||||
void propagate_attributes(Query_tables_list *prelocking_ctx)
|
||||
{
|
||||
/*
|
||||
If this routine needs row-based binary logging, the entire top statement
|
||||
@ -466,7 +466,7 @@ public:
|
||||
the substatements not).
|
||||
*/
|
||||
if (m_flags & BINLOG_ROW_BASED_IF_MIXED)
|
||||
lex->set_stmt_unsafe();
|
||||
prelocking_ctx->set_stmt_unsafe();
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user