From: Jonas Oreland Date: April 15 2009 12:50pm Subject: bzr commit into mysql-5.1-telco-6.3 branch (jonas:2939) List-Archive: http://lists.mysql.com/commits/72154 Message-Id: <20090415125012.D3AE9940484@perch.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT #At file:///home/jonas/src/telco-6.3/ 2939 Jonas Oreland 2009-04-15 [merge] merge 62 to 63 modified: storage/ndb/test/ndbapi/testUpgrade.cpp === modified file 'storage/ndb/test/ndbapi/testUpgrade.cpp' --- a/storage/ndb/test/ndbapi/testUpgrade.cpp 2008-12-12 09:40:06 +0000 +++ b/storage/ndb/test/ndbapi/testUpgrade.cpp 2009-04-15 12:09:25 +0000 @@ -21,6 +21,12 @@ #include #include +struct NodeInfo +{ + int nodeId; + int processId; + int nodeGroup; +}; /** Test that one node at a time can be upgraded @@ -151,21 +157,31 @@ int runUpgrade_NR2(NDBT_Context* ctx, ND if (!atrt.getNdbds(clusterId, ndbds)) return NDBT_FAILED; + Vector nodes; + while (ndbds.next()) + { + struct NodeInfo n; + n.nodeId = ndbds.columnAsInt("node_id"); + n.processId = ndbds.columnAsInt("id"); + n.nodeGroup = restarter.getNodeGroup(n.nodeId); + nodes.push_back(n); + } + Bitmask<4> seen_groups; - while(ndbds.next()) + Bitmask<4> restarted_nodes; + for (Uint32 i = 0; i nodes; + while (ndbds.next()) + { + struct NodeInfo n; + n.nodeId = ndbds.columnAsInt("node_id"); + n.processId = ndbds.columnAsInt("id"); + n.nodeGroup = restarter.getNodeGroup(n.nodeId); + nodes.push_back(n); + } + + int nodesarray[256]; int cnt= 0; Bitmask<4> seen_groups; - while(ndbds.next()) + Bitmask<4> restarted_nodes; + for (Uint32 i = 0; istopTest(); @@ -395,3 +421,4 @@ int main(int argc, const char** argv){ return testUpgrade.execute(argc, argv); } +template class Vector;