MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:tim Date:July 26 2006 7:24pm
Subject:bk commit into 4.1 tree (tsmith:1.2518) BUG#20402
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of tim. When tim 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-07-26 13:24:05-06:00, tsmith@stripped +2 -0
  Bug #20402: DROP USER failure logged as ERROR rather than WARNING
  
  slave.cc, sql_acl.cc:
    Remove sql_print_error() calls for events which are not server errors

  sql/slave.cc@stripped, 2006-07-26 13:22:56-06:00, tsmith@stripped +0 -2
    Remove sql_print_error() calls for events which are not server errors

  sql/sql_acl.cc@stripped, 2006-07-26 13:22:57-06:00, tsmith@stripped +0 -15
    Remove sql_print_error() calls for events which are not server errors

# 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:	siva.hindu.god
# Root:	/usr/home/tim/m/bk/b20402-41

--- 1.279/sql/slave.cc	2006-07-26 13:24:10 -06:00
+++ 1.280/sql/slave.cc	2006-07-26 13:24:10 -06:00
@@ -2946,8 +2946,6 @@ static int exec_relay_log_event(THD* thd
       rli->is_until_satisfied()) 
   {
     char buf[22];
-    sql_print_error("Slave SQL thread stopped because it reached its"
-                    " UNTIL position %s", llstr(rli->until_pos(), buf));
     /* 
       Setting abort_slave flag because we do not want additional message about
       error in query execution to be printed.

--- 1.176/sql/sql_acl.cc	2006-07-26 13:24:11 -06:00
+++ 1.177/sql/sql_acl.cc	2006-07-26 13:24:11 -06:00
@@ -3671,17 +3671,11 @@ int mysql_drop_user(THD *thd, List <LEX_
   {
     if (!(acl_user= check_acl_user(user_name, &counter)))
     {
-      sql_print_error("DROP USER: Can't drop user: '%s'@'%s'; No such user",
-		      user_name->user.str,
-		      user_name->host.str);
       result= -1;
       continue;
     }
     if ((acl_user->access & ~0))
     {
-      sql_print_error("DROP USER: Can't drop user: '%s'@'%s'; Global privileges exists",
-		      user_name->user.str,
-		      user_name->host.str);
       result= -1;
       continue;
     }
@@ -3702,9 +3696,6 @@ int mysql_drop_user(THD *thd, List <LEX_
     }
     if (counter != acl_dbs.elements)
     {
-      sql_print_error("DROP USER: Can't drop user: '%s'@'%s'; Database privileges exists",
-		      user_name->user.str,
-		      user_name->host.str);
       result= -1;
       continue;
     }
@@ -3725,9 +3716,6 @@ int mysql_drop_user(THD *thd, List <LEX_
     }
     if (counter != column_priv_hash.records)
     {
-      sql_print_error("DROP USER: Can't drop user: '%s'@'%s';  Table privileges exists",
-		      user_name->user.str,
-		      user_name->host.str);
       result= -1;
       continue;
     }
@@ -3793,9 +3781,6 @@ int mysql_revoke_all(THD *thd,  List <LE
   {
     if (!check_acl_user(lex_user, &counter))
     {
-      sql_print_error("REVOKE ALL PRIVILEGES, GRANT: User '%s'@'%s' not exists",
-		      lex_user->user.str,
-		      lex_user->host.str);
       result= -1;
       continue;
     }
Thread
bk commit into 4.1 tree (tsmith:1.2518) BUG#20402tim26 Jul