List:Commits« Previous MessageNext Message »
From:kpettersson Date:December 4 2006 9:19am
Subject:bk commit into 5.0 tree (Kristofer.Pettersson:1.2360)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of Kristofer Pettersson. When Kristofer Pettersson 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@stripped, 2006-12-04 10:18:51+01:00, Kristofer.Pettersson@naruto. +1 -0
  Merge naruto.:C:/cpp/bug17733/my50-bug17733
  into  naruto.:C:/cpp/mysql-5.0-maint
  MERGE: 1.2248.180.1

  sql/sql_parse.cc@stripped, 2006-12-04 10:18:44+01:00, Kristofer.Pettersson@naruto. +0 -0
    Auto merged
    MERGE: 1.587.3.1

# 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:	Kristofer.Pettersson
# Host:	naruto.
# Root:	C:/cpp/mysql-5.0-maint/RESYNC

--- 1.594/sql/sql_parse.cc	2006-12-04 10:19:13 +01:00
+++ 1.595/sql/sql_parse.cc	2006-12-04 10:19:13 +01:00
@@ -4040,8 +4040,9 @@ end_with_restore_list:
   case SQLCOM_FLUSH:
   {
     bool write_to_binlog;
-    if (check_global_access(thd,RELOAD_ACL) || check_db_used(thd, all_tables))
+    if (check_global_access(thd,RELOAD_ACL))
       goto error;
+
     /*
       reload_acl_and_cache() will tell us if we are allowed to write to the
       binlog or not.
@@ -4062,7 +4063,8 @@ end_with_restore_list:
         }
       }
       send_ok(thd);
-    }
+    } 
+    
     break;
   }
   case SQLCOM_KILL:
@@ -6732,7 +6734,10 @@ bool reload_acl_and_cache(THD *thd, ulon
     tmp_write_to_binlog= 0;
     mysql_log.new_file(1);
     mysql_slow_log.new_file(1);
-    mysql_bin_log.rotate_and_purge(RP_FORCE_ROTATE);
+    if( mysql_bin_log.is_open() )
+    {
+      mysql_bin_log.rotate_and_purge(RP_FORCE_ROTATE);
+    }
 #ifdef HAVE_REPLICATION
     pthread_mutex_lock(&LOCK_active_mi);
     rotate_relay_log(active_mi);


Thread
bk commit into 5.0 tree (Kristofer.Pettersson:1.2360)kpettersson4 Dec