List:Internals« Previous MessageNext Message »
From:Sergei Golubchik Date:June 1 2005 6:33pm
Subject:bk commit into 5.0 tree (serg:1.1944) BUG#10995
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of serg. When serg 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.1944 05/06/01 18:33:16 serg@stripped +3 -0
  more than 64 indexes per table. bugfixes. bug#10995

  tests/mysql_client_test.c
    1.121 05/06/01 18:33:06 serg@stripped +10 -6
    more than 64 indexes per table. bugfixes. bug#10995

  sql/sql_select.cc
    1.331 05/06/01 18:33:05 serg@stripped +1 -0
    more than 64 indexes per table. bugfixes. bug#10995

  sql/sql_bitmap.h
    1.8 05/06/01 18:33:05 serg@stripped +11 -12
    more than 64 indexes per table. bugfixes. bug#10995

# 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:	serg
# Host:	serg.mylan
# Root:	/usr/home/serg/Abk/mysql-5.0

--- 1.330/sql/sql_select.cc	Tue May 31 15:00:33 2005
+++ 1.331/sql/sql_select.cc	Wed Jun  1 18:33:05 2005
@@ -5792,6 +5792,7 @@
 	if (!table->no_keyread)
 	{
 	  if (tab->select && tab->select->quick &&
+              tab->select->quick->index != MAX_KEY && //not index_merge
 	      table->used_keys.is_set(tab->select->quick->index))
 	  {
 	    table->key_read=1;

--- 1.7/sql/sql_bitmap.h	Thu May  5 09:11:39 2005
+++ 1.8/sql/sql_bitmap.h	Wed Jun  1 18:33:05 2005
@@ -28,7 +28,7 @@
   uchar buffer[(default_width+7)/8];
 public:
   Bitmap() { init(); }
-  Bitmap(Bitmap& from) { *this=from; }
+  Bitmap(const Bitmap& from) { *this=from; }
   explicit Bitmap(uint prefix_to_set) { init(prefix_to_set); }
   void init() { bitmap_init(&map, buffer, default_width, 0); }
   void init(uint prefix_to_set) { init(); set_prefix(prefix_to_set); }
@@ -61,18 +61,17 @@
   my_bool operator==(const Bitmap& map2) const { return bitmap_cmp(&map,
&map2.map); }
   char *print(char *buf) const
   {
-    char *s=buf; int i;
-    for (i=sizeof(buffer)-1; i>=0 ; i--)
+    char *s=buf;
+    const uchar *e=buffer, *b=e+sizeof(buffer)-1;
+    while (!*b && b>e)
+      b--;
+    if ((*s=_dig_vec_upper[*b >> 4]) != '0')
+        s++;
+    *s++=_dig_vec_upper[*b & 15];
+    while (--b>=e)
     {
-      if ((*s=_dig_vec_upper[buffer[i] >> 4]) != '0')
-        break;
-      if ((*s=_dig_vec_upper[buffer[i] & 15]) != '0')
-        break;
-    }
-    for (s++, i-- ; i>=0 ; i--)
-    {
-      *s++=_dig_vec_upper[buffer[i] >> 4];
-      *s++=_dig_vec_upper[buffer[i] & 15];
+      *s++=_dig_vec_upper[*b >> 4];
+      *s++=_dig_vec_upper[*b & 15];
     }
     *s=0;
     return buf;

--- 1.120/tests/mysql_client_test.c	Fri May 27 15:00:12 2005
+++ 1.121/tests/mysql_client_test.c	Wed Jun  1 18:33:06 2005
@@ -7455,12 +7455,16 @@
   verify_prepare_field(result, 5, "key", "", MYSQL_TYPE_VAR_STRING,
                        "", "", "", NAME_LEN, 0);
 
-  verify_prepare_field(result, 6, "key_len", "",
-                       (mysql_get_server_version(mysql) <= 50000 ?
-                        MYSQL_TYPE_LONGLONG : MYSQL_TYPE_VAR_STRING),
-                       "", "", "",
-                       (mysql_get_server_version(mysql) <= 50000 ? 3 : 4096),
-                       0);
+  if (mysql_get_server_version(mysql) <= 50000)
+  {
+    verify_prepare_field(result, 6, "key_len", "", MYSQL_TYPE_LONGLONG, "",
+                         "", "", 3, 0);
+  }
+  else
+  {
+    verify_prepare_field(result, 6, "key_len", "", MYSQL_TYPE_VAR_STRING, "", 
+                         "", "", NAME_LEN*MAX_KEY, 0);
+  }
 
   verify_prepare_field(result, 7, "ref", "", MYSQL_TYPE_VAR_STRING,
                        "", "", "", NAME_LEN*16, 0);
Thread
bk commit into 5.0 tree (serg:1.1944) BUG#10995Sergei Golubchik1 Jun