List:Internals« Previous MessageNext Message »
From:Sergei Golubchik Date:June 15 2005 10:50pm
Subject:bk commit into 4.1 tree (serg:1.2293) BUG#11167
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 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.2293 05/06/15 22:49:52 serg@stripped +1 -0
  cleanup for bug#11167.
  portability alignment issues.

  sql/sql_select.cc
    1.410 05/06/15 22:49:36 serg@stripped +5 -5
    cleanup for bug#11167.
    portability alignment issues.

# 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-4.1

--- 1.409/sql/sql_select.cc	Mon Jun 13 14:59:20 2005
+++ 1.410/sql/sql_select.cc	Wed Jun 15 22:49:36 2005
@@ -8112,9 +8112,9 @@ store_record_in_cache(JOIN_CACHE *cache)
 	     end > str && end[-1] == ' ' ;
 	     end--) ;
 	length=(uint) (end-str);
-	memcpy(pos+sizeof(uint), str, length);
-	*((uint *) pos)= length;
-	pos+= length+sizeof(uint);
+	memcpy(pos+2, str, length);
+	int2store(pos, length);
+	pos+= length+2;
       }
       else
       {
@@ -8177,9 +8177,9 @@ read_cached_record(JOIN_TAB *tab)
     {
       if (copy->strip)
       {
-	memcpy(copy->str, pos+sizeof(uint), length= *((uint *) pos));
+	memcpy(copy->str, pos+2, length= uint2korr(pos));
 	memset(copy->str+length, ' ', copy->length-length);
-	pos+= sizeof(uint)+length;
+	pos+= 2+length;
       }
       else
       {
Thread
bk commit into 4.1 tree (serg:1.2293) BUG#11167Sergei Golubchik15 Jun