List:Internals« Previous MessageNext Message »
From:jonas Date:September 27 2005 12:03pm
Subject:bk commit into 5.1 tree (jonas:1.2023)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of jonas. When jonas 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.2023 05/09/27 12:03:41 jonas@stripped +1 -0
  ndb - Allow tablespace/logfile group manipulations wo/ database
    (if correct acl ofcourse)
     
    this code is duplicated in may places (check for null db) maybe it should be added
    to is_schema_db macro instead

  sql/sql_parse.cc
    1.440 05/09/27 12:03:39 jonas@stripped +1 -6
    Allow tablespace/logfile group manipulations wo/ database
      (if correct acl ofcourse)

# 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:	jonas
# Host:	perch.ndb.mysql.com
# Root:	/home/jonas/src/mysql-5.1-ndb-dd

--- 1.439/sql/sql_parse.cc	2005-09-23 08:51:40 +02:00
+++ 1.440/sql/sql_parse.cc	2005-09-27 12:03:39 +02:00
@@ -4702,12 +4702,7 @@
     res= mysql_xa_recover(thd);
     break;
   case SQLCOM_ALTER_TABLESPACE:
-    if (thd->db == 0)
-    {
-      my_message(ER_NO_DB_ERROR, ER(ER_NO_DB_ERROR), MYF(0));
-      break;
-    }
-    if (check_access(thd, ALTER_ACL, thd->db, 0, 1, 0, is_schema_db(thd->db)))
+    if (check_access(thd, ALTER_ACL, thd->db, 0, 1, 0, thd->db ?
is_schema_db(thd->db) : 0))
       break;
     if (!(res= mysql_alter_tablespace(lex->alter_tablespace_info)))
       send_ok(thd);
Thread
bk commit into 5.1 tree (jonas:1.2023)jonas27 Sep