List:Commits« Previous MessageNext Message »
From:Martin Zaun Date:February 21 2011 5:43pm
Subject:bzr push into mysql-5.1-telco-7.0 branch (martin.zaun:4211 to 4212)
View as plain text  
 4212 Martin Zaun	2011-02-21 [merge]
      merge from ndb-6.3 to ndb-7.0

    modified:
      storage/ndb/include/util/NdbTypesUtil.hpp
 4211 Jonas Oreland	2011-02-21
      ndb - fix testDict -n FailAddPartition which failed (err 4050) with more than 2 nodes...this as error insert was sent to a node, that new partitions didn't end up on...Fix by adding #db-nodes partitions instead of 2

    modified:
      storage/ndb/test/ndbapi/testDict.cpp
=== modified file 'storage/ndb/include/util/NdbTypesUtil.hpp'
--- a/storage/ndb/include/util/NdbTypesUtil.hpp	2011-02-19 02:47:10 +0000
+++ b/storage/ndb/include/util/NdbTypesUtil.hpp	2011-02-21 17:39:23 +0000
@@ -435,13 +435,11 @@ NDB_SPECIALIZE_NUM_TYPE_HELPER(Huint64, 
 // specialize the Helper template members for non-standard numeric types
 #define NDB_SPECIALIZE_NON_STD_NUM_TYPE_HELPER( H, T, INT3KORR )        \
   template<> inline void H::load(T * t, const char * s) {               \
-    assert(t); assert(s);                                               \
-    assert(t > (const T *)s);                                           \
+    assert(t); assert(s); assert(t != (const T *)s);                    \
     *t = (INT3KORR(s));                                                 \
   }                                                                     \
   template<> inline void H::store(char * t, const T * s) {              \
-    assert(t); assert(s);                                               \
-    assert(((T *)t > s) || ((T *)t < s));                               \
+    assert(t); assert(s); assert((const T *)t != s);                    \
     int3store(t, (*s));                                                 \
   }
 


Attachment: [text/bzr-bundle] bzr/martin.zaun@oracle.com-20110221174027-exh49d4r69wjb3oh.bundle
Thread
bzr push into mysql-5.1-telco-7.0 branch (martin.zaun:4211 to 4212) Martin Zaun21 Feb