MySQL Lists are EOL. Please join:

List:Internals« Previous MessageNext Message »
From:sanja Date:August 13 2005 8:16am
Subject:bk commit into 5.0 tree (sanja:1.1990)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of sanja. When sanja 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.1990 05/08/13 11:16:26 sanja@stripped +1 -0
  Merge abelkin@stripped:/home/bk/mysql-5.0
  into  hasky.mysql.fi:/home/sanja/work-merge-5.0

  sql/sql_parse.cc
    1.469 05/08/13 11:16:19 sanja@stripped +0 -0
    Auto merged

# 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:	sanja
# Host:	hasky.mysql.fi
# Root:	/home/sanja/work-merge-5.0/RESYNC

--- 1.468/sql/sql_parse.cc	2005-08-12 23:56:14 +03:00
+++ 1.469/sql/sql_parse.cc	2005-08-13 11:16:19 +03:00
@@ -2316,11 +2316,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, all_tables))
     {
Thread
bk commit into 5.0 tree (sanja:1.1990)sanja13 Aug