List:Commits« Previous MessageNext Message »
From:jonas Date:March 7 2007 4:35pm
Subject:bk commit into 5.1 tree (jonas:1.2455)
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-03-07 17:35:35+01:00, jonas@stripped +1 -0
  Merge perch.ndb.mysql.com:/home/jonas/src/51-telco
  into  perch.ndb.mysql.com:/home/jonas/src/kjk
  MERGE: 1.2453.1.1

  storage/ndb/src/ndbapi/Ndb.cpp@stripped, 2007-03-07 17:35:32+01:00, jonas@stripped +0 -0
    Auto merged
    MERGE: 1.87.1.2

# 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/kjk/RESYNC

--- 1.90/storage/ndb/src/ndbapi/Ndb.cpp	2007-03-07 17:35:40 +01:00
+++ 1.91/storage/ndb/src/ndbapi/Ndb.cpp	2007-03-07 17:35:40 +01:00
@@ -314,7 +314,10 @@
   Uint32 sumlen = 0; // Needed len
   const NdbTableImpl* impl = &NdbTableImpl::getImpl(*table);
   const NdbColumnImpl* const * cols = impl->m_columns.getBase();
-  
+  Uint32 len;
+  NdbTransaction* trans;
+  char* pos;
+
   Uint32 colcnt = impl->m_columns.size();
   Uint32 parts = impl->m_noOfDistributionKeys;
   if (parts == 0)
@@ -389,7 +392,7 @@
     assert((UintPtr(buf) & 7) == 0);
   }
   
-  char* pos = (char*)buf;
+  pos = (char*)buf;
   for (Uint32 i = 0; i<parts; i++)
   {
     Uint32 lb, len;
@@ -433,10 +436,10 @@
       pos += len;
     }
   }
-  Uint32 len = UintPtr(pos) - UintPtr(buf);
+  len = UintPtr(pos) - UintPtr(buf);
   assert((len & 3) == 0);
     
-  NdbTransaction* trans = startTransaction(table, (char*)buf, len);
+  trans = startTransaction(table, (char*)buf, len);
 
   if (bufLen == 0)
     free(buf);
Thread
bk commit into 5.1 tree (jonas:1.2455)jonas7 Mar