List:Internals« Previous MessageNext Message »
From:tim Date:August 13 2005 5:08am
Subject:bk commit into 4.1 tree (tsmith:1.2376) BUG#12542
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of tsmith. When tsmith does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2376 05/08/13 05:08:29 tsmith@stripped +1 -0
  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
    1.459 05/08/13 05:04:31 tsmith@stripped +9 -4
    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 is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	tsmith
# Host:	production.mysql.com
# Root:	/nfstmp1/tsmith/41/a

--- 1.458/sql/sql_parse.cc	2005-08-09 17:35:31 +02:00
+++ 1.459/sql/sql_parse.cc	2005-08-13 05:04:31 +02:00
@@ -1975,11 +1975,16 @@
     /*
       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.
-      Exception is DROP TEMPORARY TABLE IF EXISTS: we always execute it
-      (otherwise we have stale files on slave caused by exclusion of one tmp
-      table).
+
+      Exceptions are:
+
+      - 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) &&
         all_tables_not_ok(thd,tables))
     {
Thread
bk commit into 4.1 tree (tsmith:1.2376) BUG#12542tim13 Aug