List:Commits« Previous MessageNext Message »
From:jonas Date:April 25 2006 2:04pm
Subject:bk commit into 5.1 tree (jonas:1.2354)
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
  1.2354 06/04/25 16:04:45 jonas@stripped +1 -0
  Merge joreland@stripped:/home/bk/mysql-5.1-new-ndb
  into  perch.ndb.mysql.com:/home/jonas/src/mysql-5.1-new-ndb

  storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp
    1.128 06/04/25 16:04:40 jonas@stripped +0 -0
    Auto merged

# 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/mysql-5.1-new-ndb/RESYNC

--- 1.127/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp	2006-04-24 11:11:39 +02:00
+++ 1.128/storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp	2006-04-25 16:04:40 +02:00
@@ -2112,15 +2112,15 @@
 
   if(tableDesc->ReplicaDataLen > 0)
   {
-    Uint16 replicaCount = tableDesc->ReplicaData[0];
-    Uint16 fragCount = tableDesc->ReplicaData[1];
+    Uint16 replicaCount = ntohs(tableDesc->ReplicaData[0]);
+    Uint16 fragCount = ntohs(tableDesc->ReplicaData[1]);
 
     impl->m_replicaCount = replicaCount;
     impl->m_fragmentCount = fragCount;
     DBUG_PRINT("info", ("replicaCount=%x , fragCount=%x",replicaCount,fragCount));
     for(i = 0; i < (Uint32) (fragCount*replicaCount); i++)
     {
-      impl->m_fragments.push_back(tableDesc->ReplicaData[i+2]);
+      impl->m_fragments.push_back(ntohs(tableDesc->ReplicaData[i+2]));
     }
 
     Uint32 topBit = (1 << 31);
Thread
bk commit into 5.1 tree (jonas:1.2354)jonas25 Apr