List:Commits« Previous MessageNext Message »
From:Jonas Oreland Date:February 21 2011 3:08pm
Subject:bzr commit into mysql-5.1-telco-7.0 branch (jonas:4211)
View as plain text  
#At file:///home/jonas/src/telco-7.0/ based on revid:jonas@stripped

 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/test/ndbapi/testDict.cpp'
--- a/storage/ndb/test/ndbapi/testDict.cpp	2011-01-30 20:56:00 +0000
+++ b/storage/ndb/test/ndbapi/testDict.cpp	2011-02-21 15:08:51 +0000
@@ -7186,7 +7186,8 @@ runFailAddPartition(NDBT_Context* ctx, N
 
   const NdbDictionary::Table * org = pDic->getTable(tab.getName());
   NdbDictionary::Table altered = * org;
-  altered.setFragmentCount(org->getFragmentCount() + 2);
+  altered.setFragmentCount(org->getFragmentCount() +
+                           restarter.getNumDbNodes());
 
   if (pDic->beginSchemaTrans())
   {


Attachment: [text/bzr-bundle] bzr/jonas@mysql.com-20110221150851-sxbhxfbd82pmnpd7.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (jonas:4211) Jonas Oreland21 Feb