List:Commits« Previous MessageNext Message »
From:ahristov Date:August 21 2006 3:16pm
Subject:bk commit into 5.1 tree (andrey:1.2281)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of andrey. When andrey 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-08-21 17:16:46+02:00, andrey@stripped +2 -0
  Minor change - fixed function documentation and added
  const for two parameters.

  sql/event_db_repository.cc@stripped, 2006-08-21 17:16:42+02:00, andrey@stripped +5 -2
    add a missing documentation of a parameter
    add const to two parameters

  sql/event_db_repository.h@stripped, 2006-08-21 17:16:42+02:00, andrey@stripped +2 -2
    Added const to two parameters

# 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:	andrey
# Host:	example.com
# Root:	/work/mysql-5.1-wl3337-tree2

--- 1.14/sql/event_db_repository.cc	2006-08-21 17:16:55 +02:00
+++ 1.15/sql/event_db_repository.cc	2006-08-21 17:16:55 +02:00
@@ -253,6 +253,7 @@ err_truncate:
       thd          Thread
       schema_table The I_S.EVENTS table
       event_table  The event table to use for loading (mysql.event)
+      db           For which schema to do an index scan.
 
   RETURN VALUE
     0  OK
@@ -261,7 +262,8 @@ err_truncate:
 
 bool
 Event_db_repository::index_read_for_db_for_i_s(THD *thd, TABLE *schema_table,
-                                               TABLE *event_table, char *db)
+                                               TABLE *event_table,
+                                               const char *db)
 {
   int ret=0;
   CHARSET_INFO *scs= system_charset_info;
@@ -369,7 +371,8 @@ Event_db_repository::table_scan_all_for_
 */
 
 int
-Event_db_repository::fill_schema_events(THD *thd, TABLE_LIST *tables, char *db)
+Event_db_repository::fill_schema_events(THD *thd, TABLE_LIST *tables,
+                                        const char *db)
 {
   TABLE *schema_table= tables->table;
   TABLE *event_table= NULL;

--- 1.9/sql/event_db_repository.h	2006-08-21 17:16:55 +02:00
+++ 1.10/sql/event_db_repository.h	2006-08-21 17:16:55 +02:00
@@ -80,7 +80,7 @@ public:
   open_event_table(THD *thd, enum thr_lock_type lock_type, TABLE **table);
 
   int
-  fill_schema_events(THD *thd, TABLE_LIST *tables, char *db);
+  fill_schema_events(THD *thd, TABLE_LIST *tables, const char *db);
 
 private:
   void
@@ -88,7 +88,7 @@ private:
                        LEX_STRING field_value);
   bool
   index_read_for_db_for_i_s(THD *thd, TABLE *schema_table, TABLE *event_table,
-                            char *db);
+                            const char *db);
 
   bool
   table_scan_all_for_i_s(THD *thd, TABLE *schema_table, TABLE *event_table);
Thread
bk commit into 5.1 tree (andrey:1.2281)ahristov21 Aug