List:Commits« Previous MessageNext Message »
From:jonas Date:April 14 2007 9:35am
Subject:bk commit into 5.1 tree (jonas:1.2532)
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@stripped, 2007-04-14 09:35:13+02:00, jonas@stripped +1 -0
  ndb - rp
    make sure null fields dont affect alignment

  storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp@stripped, 2007-04-14 09:35:11+02:00, jonas@stripped +11 -3
    make sure null fields dont affect alignment

# 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/51-telco-rp

--- 1.45/storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp	2007-04-14 09:35:19 +02:00
+++ 1.46/storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp	2007-04-14 09:35:19 +02:00
@@ -2361,6 +2361,7 @@
           ndbassert((outPos & 3) == 0);
         }
         
+        Uint32 save[2] = { outPos, outBits };
         switch(AttributeDescriptor::getSize(attrDesc1)){
         case 0: // bit
           outPos = (outPos + 3) & ~(Uint32)3;
@@ -2375,6 +2376,10 @@
           outPos = ((outPos + 3) & ~(Uint32)3) + 4 * ((outBits + 31) >> 5);
           outBits = 0;
           break;
+#ifdef VM_TRACE
+        default:
+          ndbrequire(false);
+#endif
         }
         
         req_struct->out_buf_index = outPos;
@@ -2384,6 +2389,10 @@
         {
           jam();
           BitmaskImpl::set(masksz, dstmask, maskpos);
+
+          outPos = req_struct->out_buf_index;
+          outBits = req_struct->out_buf_bits;
+
           if (nullable.get(attrId))
           {
             jam();
@@ -2392,11 +2401,10 @@
             {
               jam();
               BitmaskImpl::set(masksz, dstmask, maskpos);
+              outPos = save[0];
+              outBits = save[1];
             }
           }
-          outPos = req_struct->out_buf_index;
-          outBits = req_struct->out_buf_bits;
-          
           continue;
         } else {
           goto error;
Thread
bk commit into 5.1 tree (jonas:1.2532)jonas14 Apr