List:Internals« Previous MessageNext Message »
From:sinisa Date:February 2 2004 7:20pm
Subject:bk commit into 4.1 tree (Sinisa:1.1671)
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of Sinisa. When Sinisa 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://www.mysql.com/doc/I/n/Installing_source_tree.html

ChangeSet
  1.1671 04/02/02 21:20:10 Sinisa@stripped +1 -0
  sql_table.cc:
    Fix for a bug #2557 which caused that MySQL 4.1.2 does not replicate CREATE TABLE ... LIKE ..

  sql/sql_table.cc
    1.190 04/02/02 21:18:18 Sinisa@stripped +14 -0
    Fix for a bug #2557 which caused that MySQL 4.1.2 does not replicate CREATE TABLE ... LIKE ..

# 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:	Sinisa
# Host:	sinisa.nasamreza.org
# Root:	/mnt/work/mysql-4.1

--- 1.189/sql/sql_table.cc	Fri Jan 23 17:55:35 2004
+++ 1.190/sql/sql_table.cc	Mon Feb  2 21:18:18 2004
@@ -1845,6 +1845,20 @@
                           table_name); /* purecov: inspected */
     DBUG_RETURN(-1);       /* purecov: inspected */
   }
+  else
+  {
+    // Must be written before unlock
+    mysql_update_log.write(thd,thd->query, thd->query_length);
+    if (mysql_bin_log.is_open())
+    {
+      thd->clear_error();
+      Query_log_event qinfo(thd, thd->query, thd->query_length,
+			    test(create_info->options &
+				 HA_LEX_CREATE_TMP_TABLE));
+      mysql_bin_log.write(&qinfo);
+    }
+  }
+
   DBUG_RETURN(0);
   
 table_exists:
Thread
bk commit into 4.1 tree (Sinisa:1.1671)sinisa2 Feb