mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
sql_parse.cc:
Don't skip SET command even if --replicate-wild* says to. E.g., SET ONE_SHOT TIME_ZONE = 'XYZ' should be executed (BUG #12542) sql/sql_parse.cc: Don't skip SET command even if --replicate-wild* says to. E.g., SET ONE_SHOT TIME_ZONE = 'XYZ' should be executed (BUG #12542)
This commit is contained in:
@@ -1975,11 +1975,16 @@ mysql_execute_command(THD *thd)
|
|||||||
/*
|
/*
|
||||||
Skip if we are in the slave thread, some table rules have been
|
Skip if we are in the slave thread, some table rules have been
|
||||||
given and the table list says the query should not be replicated.
|
given and the table list says the query should not be replicated.
|
||||||
Exception is DROP TEMPORARY TABLE IF EXISTS: we always execute it
|
|
||||||
(otherwise we have stale files on slave caused by exclusion of one tmp
|
Exceptions are:
|
||||||
table).
|
|
||||||
|
- SET: we always execute it (e.g., SET ONE_SHOT TIME_ZONE = 'XYZ')
|
||||||
|
|
||||||
|
- DROP TEMPORARY TABLE IF EXISTS: we always execute it (otherwise we
|
||||||
|
have stale files on slave caused by exclusion of one tmp table).
|
||||||
*/
|
*/
|
||||||
if (!(lex->sql_command == SQLCOM_DROP_TABLE &&
|
if (lex->sql_command != SQLCOM_SET_OPTION &&
|
||||||
|
!(lex->sql_command == SQLCOM_DROP_TABLE &&
|
||||||
lex->drop_temporary && lex->drop_if_exists) &&
|
lex->drop_temporary && lex->drop_if_exists) &&
|
||||||
all_tables_not_ok(thd,tables))
|
all_tables_not_ok(thd,tables))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user